feature: turn select output of command into an action and assign it a keybinding
#4474
Unanswered
Jiehong
asked this question in
Feature Requests, Ideas
Replies: 2 comments
-
|
Noting I read this and I'm in agreement this should become an action. I want to think about what the action name would be (or maybe multiple). |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Why not reuse control+shift+c (if there is no selection), by default copy the output of the last command, if jumped to a previous prompt copy the output from that command? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context
I stumbled upon #4385 when trying to see if I could copy the output of a command with a keyboard shortcut.
Alas, I could not find out how to make this happen.
What is already present
In https://ghostty.org/docs/features/shell-integration#features, we have:
But this requires to click with the mouse.
Furthermore,
ghostty +list-actionsdoes not list any action to select the output of the current command.ghostty +list-keybindsdoes not show any keybinding related either.Wished workflow
I would like to be able to move to a command with the keyboard, and copy its output with a keyboard shortcut.
For example, by doing this:
super + up-- move to previous pompt (akajump_to_prompt:-1)super + up-- move to yet another prompt, if it's not the right onesuper + shift + c-- copy to the clipboard the output of the current command linked to this promptCurrently, step 3 is not possible.
Possible implementation
Perhaps a new action could be created, such as
copy_command_output, and a new keybinding assigned to it.Beta Was this translation helpful? Give feedback.
All reactions