2 ms·
With kitty you can map keyboard shortcuts to open the scrollback buffer in an editor. It's super neat and it has pretty much completely replaced using the neovi
by climb_stealth 6y ago
With kitty you can map keyboard shortcuts to open the scrollback buffer in an editor. It's super neat and it has pretty much completely replaced using the neovim terminal for me. Below are my mappings for opening the scrollback in the current tab or a new one. What makes the former even better is that after closing it you are back in your regular terminal view.
[0] https://sw.kovidgoyal.net/kitty/launch.html https://sw.kovidgoyal.net/kitty/launch.html
[1]
#: You can pipe the contents of the current screen + history buffer as
#: STDIN to an arbitrary program using the ``pipe`` function. For
#: example, the following opens the scrollback buffer in less in an
#: overlay window::
# map f1 pipe @ansi overlay less +G -R
map f1 pipe @text tab /usr/local/bin/nvim '+ normal GA' -
map f2 pipe @text overlay /usr/local/bin/nvim '+ normal GA' -