4984 Commits

Author SHA1 Message Date
Jeffrey C. Ollie
65bf22af99 add keybind actions docs to manpages 2024-01-21 19:50:15 -06:00
Jeffrey C. Ollie
f41f70c977 Use keybind actions help strings in +list-keybinds. 2024-01-21 19:48:48 -06:00
Jeffrey C. Ollie
cab28c3940 Generate help strings for keybind actions. 2024-01-21 19:47:36 -06:00
Mitchell Hashimoto
81532c0b56 macos: support reading service result text into terminal 2024-01-21 17:26:41 -08:00
Mitchell Hashimoto
4dbd10c913 apprt/embedded: support asking for selection text, existence 2024-01-21 17:22:44 -08:00
Mitchell Hashimoto
4c9fc452b6 macos: register that we accept/send text types for services 2024-01-21 17:07:24 -08:00
Mitchell Hashimoto
8b11d20cb0 macos: register a services menu 2024-01-21 16:39:52 -08:00
Mitchell Hashimoto
d96c2e7507 Merge pull request #1347 from jcollie/generate-manpages
Generate manpages (and other documentation) using help strings.
2024-01-21 14:58:03 -08:00
Mitchell Hashimoto
daac7943f3 mdgen stylistic changes 2024-01-21 14:53:34 -08:00
Mitchell Hashimoto
d569334fe9 ci: make sure to explicitly always test docgen 2024-01-21 14:50:43 -08:00
Mitchell Hashimoto
c40fc51f2a build: only default emit-docs to true if pandoc is on PATH 2024-01-21 14:49:45 -08:00
Mitchell Hashimoto
ba98aa3aeb build: shuffle files around for mdgen 2024-01-21 14:40:48 -08:00
Mitchell Hashimoto
0967fb46f8 build: use emit-docs for docs, don't need it on build config 2024-01-21 14:22:58 -08:00
Mitchell Hashimoto
cc20c792ed Merge pull request #1348 from mitchellh/kitty-alpha
renderer/metal,opengl: premult alpha for fragment shaders for images
2024-01-21 14:09:29 -08:00
Mitchell Hashimoto
5622ab370f renderer/metal,opengl: premult alpha for fragment shaders for images
Fixes #1346
2024-01-21 14:07:16 -08:00
Jeffrey C. Ollie
510f270c54 markdown-ify help strings 2024-01-21 15:07:37 -06:00
Jeffrey C. Ollie
ef09fa89b0 Generate documenation (manpages, etc.) from help strings. 2024-01-21 15:07:22 -06:00
Mitchell Hashimoto
628b54fbb5 Merge pull request #1344 from rockorager/reflow
reflow: respect wraparound mode when reflowing text
2024-01-21 09:12:18 -08:00
Mitchell Hashimoto
046a36766f Merge pull request #1345 from mitchellh/wraparound-wide
terminal: handle wide character print at edge with wraparound disabled
2024-01-21 09:10:59 -08:00
Mitchell Hashimoto
8b23d5c9ab terminal: handle wide character print at edge with wraparound disabled
Fixes #1343

If a wide character is found at the right edge of a terminal screen and
can't be printed without wrapping, the wide character is ignored. This
matches xterm behavior.

The one funky behavior is with grapheme clustering enabled and VS16
emoji. For VS16, we act as if VS16 was never received. This is not
specified in any way and no other terminal handles this correctly at the
time of authoring this so we're just making this up because it seems
most sensible.
2024-01-21 09:02:15 -08:00
Tim Culverhouse
6dcec75e32 reflow: add unit tests for wraparound mode
Add unit tests for resizing with wraparound on and off.
2024-01-21 07:02:06 -06:00
Tim Culverhouse
28732b950c reflow: respect wraparound mode when reflowing text
When calling resize, Ghostty should be respecting the wraparound state.
This behavior matches xterm. Note that this same bug was also found in
kitty.

Fixes: #1343
2024-01-21 06:43:22 -06:00
Mitchell Hashimoto
83bf6e038e Merge pull request #1342 from mitchellh/show-config
`+show-config` action
2024-01-20 20:02:50 -08:00
Mitchell Hashimoto
558fd316c4 update README for show-config 2024-01-20 20:02:13 -08:00
Mitchell Hashimoto
27453b64e6 cli/show-config: enable --help 2024-01-20 19:44:54 -08:00
Mitchell Hashimoto
ddd17eda06 cli: list-keybinds uses new config formatting API 2024-01-20 19:39:47 -08:00
Jeffrey C. Ollie
863c3933d3 use keybind struct's built-in capabity to format itself in +list-keybinds action 2024-01-20 19:38:12 -08:00
Mitchell Hashimoto
73a30ccd82 cli/show-config: add the changes-only and docs options 2024-01-20 19:37:48 -08:00
Jeffrey C. Ollie
de428d9fe9 add +show-config action to print out the config from the cli 2024-01-20 19:24:17 -08:00
Mitchell Hashimoto
8d95f514cc Merge pull request #1341 from mitchellh/format-config
config: support encoding back to string
2024-01-20 16:37:48 -08:00
Mitchell Hashimoto
64e3721bb7 config: formatter can output docs 2024-01-20 15:42:43 -08:00
Mitchell Hashimoto
daf297cee2 config: union type formatters 2024-01-20 15:35:16 -08:00
Mitchell Hashimoto
95a67e5f06 config: support only formatting changed fields 2024-01-20 15:24:17 -08:00
Mitchell Hashimoto
dbb808ae93 config: tests for formatEntry 2024-01-20 15:13:43 -08:00
Mitchell Hashimoto
2bf37843f3 config: tests for all custom formatEntry calls 2024-01-20 15:07:32 -08:00
Mitchell Hashimoto
32a1c6ec06 config: ability to format all field types except tagged unions 2024-01-20 14:41:49 -08:00
Mitchell Hashimoto
d32667e46c nix: only linux is supported for the package 2024-01-20 14:23:05 -08:00
Mitchell Hashimoto
9369baac60 cli: empty field resets optionals to null 2024-01-20 12:50:11 -08:00
Mitchell Hashimoto
33c4c328b6 config: file formatter 2024-01-20 12:43:15 -08:00
Mitchell Hashimoto
f9996d46ec Merge pull request #1338 from mitchellh/help-rebase
Add `--help` to the Ghostty CLI
2024-01-20 11:48:35 -08:00
Mitchell Hashimoto
7595b9b4bf re-add helpgen 2024-01-20 09:49:27 -08:00
Mitchell Hashimoto
1778905f53 cli: add help command 2024-01-20 09:49:17 -08:00
Mitchell Hashimoto
b438998fb8 cli: support --help and -h for actions 2024-01-20 09:29:26 -08:00
Mitchell Hashimoto
203b38fdac rewrite generate_help for personal style
- Output to stdin instead of a file
- Less nesting
- Utilize ranged for loops instead of while loops
- Eliminate unnecessary state tracking
- Put help in a struct
2024-01-20 09:05:25 -08:00
Jeffrey C. Ollie
f9ac37cdf7 Generate help strings from doc comments
Doc strings attached to fields of the Config struct and doc strings
attached to the run function of actions will be used to generate Zig
code that makes those doc strings available to be used at runtime.

Based on PR #853 by @Raiden1411
2024-01-19 21:19:09 -08:00
Mitchell Hashimoto
eff62fa915 Merge pull request #1337 from mitchellh/split-dir
macos: select split above/below should go to correct split when nested
2024-01-19 21:13:09 -08:00
Mitchell Hashimoto
cc01049d55 macos: select split above/below should go to correct split when nested
Fixes #1330

I admit this code is a mess to understand, so I'm not 100% certain this
fix is correct. It definitely fixes #1330 but I'm not sure if this
breaks other split scenarios.

I believe that our logic here was simply wrong, notice that left/right
had opposite logic and this brings it all into consistency.

Long term, we should redo all of our directional movement since we've
refactored how split state is stored now on the controller with parent
references.
2024-01-19 21:11:20 -08:00
Mitchell Hashimoto
624319b665 Merge pull request #1336 from mitchellh/update-zig
update zig
2024-01-19 20:58:33 -08:00
Mitchell Hashimoto
e0eda66162 Merge pull request #1335 from mitchellh/semprompt
terminal: soft-wrap inherits semantic prompt status of previous line
2024-01-19 19:01:37 -08:00
Mitchell Hashimoto
bb64939fe4 update zig 2024-01-19 19:00:03 -08:00