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
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
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
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
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
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
3e3c07619e
terminal: soft-wrap inherits semantic prompt status of previous line
...
Fixes #1334
2024-01-19 18:58:28 -08:00
Mitchell Hashimoto
c7632eb407
Merge pull request #1333 from mitchellh/select-line
...
select line considers semantic prompt change a boundary
2024-01-19 16:04:34 -08:00
Mitchell Hashimoto
48d6c93e09
terminal: select line considers semantic prompt change a boundary
...
Fixes #1329
Some shells and scripts use spaces and soft-wrapping as a way to move to
the next line instead of using newline (`\n`). Line selection
(triple-click by default) considers a soft-wrapped line as a single
line, so it was selecting the prompt.
This commit makes it so line selection considers semantic prompt state
(prompt vs command output) an additional boundary condition. This
requires shell integration but will make selection behave more
expectedly.
2024-01-19 15:48:53 -08:00
Mitchell Hashimoto
e9fe14c750
terminal: ECH resets line wrap state in any scenario
2024-01-19 14:31:33 -08:00
Mitchell Hashimoto
bab932431f
terminal: erase line right should reset soft wrap state
2024-01-19 14:08:09 -08:00
Mitchell Hashimoto
344c2db097
renderer/metal: initialize layer in init, handle iOS layer
2024-01-18 18:51:01 -08:00
Mitchell Hashimoto
95f729a5fc
renderer/metal: only set wantsLayer for AppKit
2024-01-18 15:36:06 -08:00
Mitchell Hashimoto
26e6e8cec8
apprt/embedded: add iOS platform with uivew
2024-01-18 15:03:03 -08:00
Mitchell Hashimoto
5fe3900efa
core: Apple Emoji should be loaded on any darwin, not just macos
...
It is available on iOS too.
2024-01-18 15:02:32 -08:00
Krzysztof Wolicki
316cb5314c
cimgui metal impl available only when target is Darwin
2024-01-18 21:43:57 +01:00
Mitchell Hashimoto
01afa293c8
apprt/embedded: fix initialization on macOS
2024-01-18 08:55:03 -08:00
Mitchell Hashimoto
df09c21103
apprt/embedded: compile for Linux
2024-01-18 08:44:56 -08:00
Thorsten Ball
551d19205b
gtk: respect minimum split size when using resize keys
...
This is the GTK equivalent of #1304 .
2024-01-18 06:38:08 +01:00
Mitchell Hashimoto
93c87f21ff
apprt/embedded: set wait-after-command when command is set
2024-01-17 08:43:04 -08:00
Mitchell Hashimoto
33bc424d7e
config: introduce wait-after-command
2024-01-17 08:40:21 -08:00
Mitchell Hashimoto
ed3f1df5f0
Merge pull request #1316 from qwerasd205/macos-file-handler
...
Added macOS file open handler
2024-01-16 18:56:34 -08:00
Qwerasd
51f53aa9bf
Added macOS file open handler
2024-01-16 16:26:21 -05:00
Mitchell Hashimoto
90ea950d71
renderer/metal: use a semaphore to protect deinit while waiting for GPU
2024-01-16 12:18:55 -08:00
Mitchell Hashimoto
c28f2e36cc
renderer/metal: do not be unhealthy by default :)
2024-01-16 11:28:01 -08:00
Mitchell Hashimoto
376345dcae
macos: detect renderer health failures and show error view
2024-01-16 11:27:18 -08:00
Mitchell Hashimoto
0277a0fb4c
renderer/metal: detect frame commit failures and notify surface
2024-01-16 10:51:36 -08:00
Mitchell Hashimoto
34d5cbda13
apprt/gtk: xft-dpi can be fractional, do not expect exact division
...
This was reported on Discord. A Chromebook reported an `Xft.dpi` of
`96.1025390625` which resulted in a `gtk-xft-dpi` of 98409. This caused
`divExact` to crash in runtime safety modes.
2024-01-15 20:49:12 -08:00
Mitchell Hashimoto
b87bbd55c5
termio: handle termio thread failure by showing a message in window
...
Fixes #1301
2024-01-15 20:22:55 -08:00
Mitchell Hashimoto
62a2fdcf88
renderer/opengl: set texture size for constrained glyphs
...
This wasn't setting the texture size so the glyphs would show up blank
(zero texture size).
2024-01-15 15:04:05 -08:00
Paul Berg
2b52c5ed88
gtk: update tab title even when the tab is unfocused
...
This change updates the tab title if the tab is unfocused. Tab title
updates only occur when the update surface is the focused child of the
tab.
2024-01-15 11:53:30 +01:00
Mitchell Hashimoto
470b57f194
os: no mouse interval on ios
2024-01-14 14:48:56 -08:00