You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be neat to have a keybinding to save the scrollback to a temporary file that is then written to the terminal. This would let someone slice and dice their scrollback as text using any old Unix commands. For example, someone could do something like: ripgrep <search> <scrollback file>.
This keybinding probably needs a config of whether to preserve or strip formatting (ANSI escape sequences).
The workflow I'm thinking is you'd hit some keybinding, say... ctrl+shift+y (making stuff up) and this would then write to a temporary file and then directly write the file path to the TTY. The temporary file would stick around forever until the system cleans it up (we can figure out a better approach later).
This could also use semantic prompts (Ghostty already supports this) to do this for specific command output, as well. That is a bit harder because we'd have to figure out a way to choose which command (last command? etc.). But the core mechanisms would be shared, just a slice vs. the full backlog.
The text was updated successfully, but these errors were encountered:
It'd be neat to have a keybinding to save the scrollback to a temporary file that is then written to the terminal. This would let someone slice and dice their scrollback as text using any old Unix commands. For example, someone could do something like:
ripgrep <search> <scrollback file>
.This keybinding probably needs a config of whether to preserve or strip formatting (ANSI escape sequences).
The workflow I'm thinking is you'd hit some keybinding, say...
ctrl+shift+y
(making stuff up) and this would then write to a temporary file and then directly write the file path to the TTY. The temporary file would stick around forever until the system cleans it up (we can figure out a better approach later).This could also use semantic prompts (Ghostty already supports this) to do this for specific command output, as well. That is a bit harder because we'd have to figure out a way to choose which command (last command? etc.). But the core mechanisms would be shared, just a slice vs. the full backlog.
The text was updated successfully, but these errors were encountered: