-
Notifications
You must be signed in to change notification settings - Fork 526
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
use case: scroll up to the start of the command that was just executed or is currently still running #227
Comments
Ghostty supports this already but doesn’t bind the key on Linux by default. If there is a typical building I’ll add the default. The binding action: https://github.com/mitchellh/ghostty/blob/main/src/input/Binding.zig#L175 You can set it in your config like this:
The numeric value is the number of prompts to jump backwards (negative) or forward (positive). Looking at the source now I think I didn’t implement int parsing for this so that’s a bug that will block you. Note this feature requires shell integration and on Linux this is not automatic (in Mac it is automatic). You’ll have to look at the “shell-integration” folder in src and copy that into your dotfiles. I will automate this soon for Linux. As far as search goes: we’re tracking that here in #189 and I’m actually working on that now. |
Marked as bug so I can implement the int parameter parsing for this action. |
Thanks for the tips! |
Big improvements for you in #229. The PR message is relevant:
So, the action you want is to set the |
My status quo terminal is xfce4-terminal, which is not amazing but it gets the job done. One task that I need to do on a regular basis is go up to the previous command that I just ran, potentially after a lot of output scrolled by. With xfce4-terminal, there are two options for this:
I find both of these to be unsatisfactory, but that is what I currently resort to. Unfortunately, the situation with ghostty is even worse unless there is a feature I am unaware of.
So this issue is in hope of this use case being recognized as desirable to solve directly: I'd like there to be a quick way in the GUI to scroll the terminal to the previous command, ideally with a minimal number of keystrokes.
After arriving at the previous command, I'd like to be able to scroll down while reading the text.
The text was updated successfully, but these errors were encountered: