How to use kitty to "edit" the output of the last command in $EDITOR or copy it to the clipboard:

map kitty_mod+a>e launch --type=overlay --stdin-source=@last_cmd_output zsh -ic 'nvim -R </dev/stdin'
map kitty_mod+a>v launch --type=overlay --stdin-source=@last_cmd_output zsh -ic 'wl-copy/pbcopy </dev/stdin'

(kitty_mod mean Control+Shift)

this is for vim/neovim but use emacsclient -nw for emacs or whatever else rock your boat

#linux #kitty #terminal #commandlines #vim #neovim #emacs

@chmouel
I think the shell also has support to edit the command.
C-x C-e in bash to edit the command in editor
Alt-e in fish to edit. Idk in zsh
@idlip yeah that's not the same, I should have mentioned it in my toot, it's about the output of the last command, not like C-x C-e (which works in zsh as well) editing the current command...