Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting "jump_to_prompt" binding in config, bind on Linux, and easier shell integration on Linux #229

Merged
merged 4 commits into from
Aug 6, 2023

Conversation

mitchellh
Copy link
Contributor

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 setting keybind = 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 to Shift+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 the zig-out/share directory from building Ghostty. Ghostty will detect this and set the proper terminfo and shell integration configs for fish and zsh.

@mitchellh mitchellh merged commit 178fef7 into main Aug 6, 2023
@mitchellh mitchellh deleted the linux-jump branch August 6, 2023 04:58
@mitchellh mitchellh added the devlog Targeted for inclusion in a devlog. label Aug 17, 2023
@mitchellh mitchellh removed the devlog Targeted for inclusion in a devlog. label Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

use case: scroll up to the start of the command that was just executed or is currently still running
1 participant