Change default key bindings to capture full screen contents (write_screen_file
)
#5285
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The current default keybinding on
Ctrl-Shift-J
/Cmd-Shift-J
utilizewrite_scrollback_file
which only captures text that's scrolled off-screen. This can be confusing, as I would expect it to capture everything on and off-screen.Per the docs,
write_screen_file
is the "Same aswrite_scrollback_file
but writes the full screen contents" which is perfect to solve this problem and aligns exactly with the expected behavior.This change addresses the friction that people have reported in the discussions below and specifically coming from the search scrollback feature discussion, where
Ctrl-Shift-J
/Cmd-Shift-J
is one of the interim decent workarounds but then you also have to figure out the extra intricacy to usewrite_screen_file
instead ofwrite_scrollback_file
.Previous discussions:
Workaround
Before this PR is merged, you can achieve the same result by updating your Ghostty config:
.config/ghostty