Allow setting "jump_to_prompt" binding in config, bind on Linux, and easier shell integration on Linux #229
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.
Fixes #227
This has three major changes to improve shell integration functionality on Linux.
You can now set the
jump_to_prompt
binding (on all platforms) to jump back/forward between prompts. You can change this binding by settingkeybind = shift+whatever=jump_to_prompt:-1
where-1
is the amount to jump (negative is back).On macOS, this was always automatically bound to
Cmd+Shift+Up/Down
. On Linux, this is now set toShift+Page-Up/Down
. The Linux binding is new in this PR.This feature requires shell integration and shell integration on Linux is now easier (its automatic on macOS). On Linux, you can now set the
GHOSTTY_RESOURCES_DIR
env var to point to thezig-out/share
directory from building Ghostty. Ghostty will detect this and set the proper terminfo and shell integration configs for fish and zsh.