feat: add Neovim buffer selection and clipboard shortcuts to Kitty

This commit is contained in:
2025-12-27 19:16:56 -06:00
parent be5164de8f
commit f859d5d44b
3 changed files with 55 additions and 1 deletions
+12
View File
@@ -11,3 +11,15 @@ notify_on_cmd_finish never
# Claude Code: Enable Shift+Enter for multi-line prompts
map shift+enter send_text all \n
# Copy last command output directly to clipboard
map ctrl+shift+o launch --stdin-source=@last_cmd_output --type=overlay bash -c "xclip -selection clipboard && echo 'Copied last command output to clipboard!'"
# Copy visible screen content to clipboard (works in any window including overlays)
map ctrl+shift+y launch --allow-remote-control --type=background bash -c "kitten @ get-text --match state:focused --extent screen | xclip -selection clipboard"
# Open last command output in Neovim for easy selection (starts in visual line mode)
map ctrl+shift+g launch --stdin-source=@last_cmd_output --type=overlay nvim -u NONE -c "luafile ~/.config/kitty/buffer-select.lua" -
# Open full scrollback in Neovim for easy selection (starts in visual line mode)
map ctrl+shift+f launch --stdin-source=@screen_scrollback --type=overlay nvim -u NONE -c "luafile ~/.config/kitty/buffer-select.lua" -