mirror of
https://github.com/Xevion/dotfiles.git
synced 2026-01-31 04:24:10 -06:00
feat: add Neovim buffer selection and clipboard shortcuts to Kitty
This commit is contained in:
@@ -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" -
|
||||
|
||||
Reference in New Issue
Block a user