vsh
vsh copied to clipboard
Store and replay shell sessions -- also output search/modification/undo/redo.
Vsh -- Run shell commands in a modifiable vim buffer
Neovim plugin for experimental shell sessions -- save a session for later/others and search/modify output with the power of vim.
In neovim it is different to the :terminal command because it allows modifying the buffer, it works on a normal file (that you save between sessions and can then rerun all commands in), and you can run commands anywhere in the file.
It can also be thought of as an interactive version of script(1) -- interactive because you can go back and modify what's stored while you work -- that facilitates re-running the same session during reading.
Benefits are mainly around exploratory terminal sessions, where you want to
- Keep a clean record of what you did, for reproducability.
- This often means removing output from intermediate informative commands.
- Search through and modify output of commands with the power of vim
- Write notes/annotations alongside commands for others to follow the action.
- Store and easily retrieve useful commands in other vsh files.
Some demos are provided in the links below.
Requires nvim version 0.2