VSCode - Terminal CaptureAs a vim user, one of the features that I truly enjoy is the integrated
terminal and the ability to switch to The first thing that I tried was using tmux in the terminal and start it by default when in a vscode environment. While this worked, I didn't like the flow quite as much. So I decided to try my hand at writing a vscode extension. FeaturesTake the output from the last active terminal and dump it into a new file. There are currently two modes that the extension can run in.
When using clipboard mode, the extension functions just like a macro where it quickly runs the following vscode commands.
The caching mode system will track all data entered into the terminal (including
keypresses like backspace) and display all the captured content. Right now this
means that it will display all the special characters including Adding a KeybindingBy default, this extension does not introduce a keybinding as we don't want
to introduce a conflict or other confusion to your workflow. It you would
like to setup this command to a keybinding, here is an example of the json
you can enter in the
Extension SettingsThis extension has a couple of settings depending on the type of usage you would like to have.
This extension has a single command.
Known IssuesAt this time, it is known that the caching mode will include style characters in the output. This is to be fixed soon. 0.1.0For this version, this is the initial release that supports using the clipboard to copy content from the terminal to an unamed file. The cache mode is partially supported, but does not handle all special characters correctly. This is currently not the recommended mode. |