[kitty|nvim] Replace kitty-scrollback plugin with simplier solution
- Also clean up nvim config
This commit is contained in:
1 parent
44795fb3f9
commit
6c096f15ee
10 files changed
+140
-22
No files matched your search
@@ -41,10 +41,6 @@ close_on_child_death no
|
||||
allow_hyperlinks yes
|
||||
enabled_layouts splits
|
||||
|
||||
allow_remote_control socket-only
|
||||
listen_on unix:/tmp/kitty
|
||||
shell_integrated enabled
|
||||
|
||||
# Keymaps
|
||||
map ctrl+a>q close_window
|
||||
map ctrl+a>minus launch --location=hsplit
|
||||
@@ -66,12 +62,5 @@ map ctrl+a>up resize_window taller
|
||||
map ctrl+a>down resize_window shorter 3
|
||||
map ctrl+a>home resize_window reset
|
||||
|
||||
# Kittens
|
||||
# kitty-scrollback.nvim Kitten alias
|
||||
action_alias kitty_scrollback_nvim kitten '/home/benq/.local/share/nvim/benq/lazy/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py'
|
||||
# Browse scrollback buffer in nvim
|
||||
map kitty_mod+h kitty_scrollback_nvim
|
||||
# Browse output of the last shell command in nvim
|
||||
map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output
|
||||
# Show clicked command output in nvim
|
||||
mouse_map ctrl+shift+right press ungrabbed combine : mouse_select_command_output : kitty_scrollback_nvim --config ksb_builtin_last_visited_cmd_output
|
||||
env read_from_login_shell=NVIM_APPNAME
|
||||
map ctrl+a>y launch --type=overlay --env NVIM_APPNAME=${NVIM_APPNAME} --stdin-source=@screen_scrollback nvim -c 'nnoremap <silent> y "+y:qa!<CR>' -c 'nnoremap <silent> Y "+Y:qa!<CR>' -c 'vnoremap <silent> y "+y:qa!<CR>' -c 'nnoremap <silent> q :qa!<CR>' -c 'normal! G' -
|
||||
Reference in new issue
Block a user