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

Write scrollback to file, output to tty ("write_scrollback_file" binding) #200

Merged
merged 5 commits into from
Jul 9, 2023

Conversation

mitchellh
Copy link
Contributor

Fixes #196
Helps #189

This introduces a new keybinding write_scrollback_file bound to Cmd+Shift+j by default (Ctrl on Linux). This action will write the entire scrollback to a temporary file, and then output the path to that file to the terminal. This can be used to save your scrollback, search it, modify it (in the file, not the terminal), etc.

ANSI escape sequences are stripped -- we can add an option to add them later but I think its more useful without.

Demo

CleanShot.2023-07-09.at.12.34.31.mp4

@mitchellh mitchellh merged commit 187fc40 into main Jul 9, 2023
@mitchellh mitchellh deleted the screen-string branch July 9, 2023 19:41
@mitchellh mitchellh added the devlog Targeted for inclusion in a devlog. label Aug 5, 2023
@mitchellh mitchellh removed the devlog Targeted for inclusion in a devlog. label Sep 10, 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.

scrollback, command output as temporary file
1 participant