From 847e8a94f7a9c6dff8ff0369588bb0ead6ee146d Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Wed, 21 Aug 2024 03:44:33 -0700 Subject: [PATCH] feat: use nvim as kitty scrollback pager --- users/youwen/linux/programs/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/users/youwen/linux/programs/default.nix b/users/youwen/linux/programs/default.nix index 15dd19a..73f7b67 100644 --- a/users/youwen/linux/programs/default.nix +++ b/users/youwen/linux/programs/default.nix @@ -12,11 +12,13 @@ background_opacity = "0.8"; allow_remote_control = "socket-only"; listen_on = "unix:/tmp/kitty"; - action_alias = "kitty_scrollback_nvim kitten /home/youwen/.local/share/nvim/lazy/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py"; + # action_alias = "kitty_scrollback_nvim kitten /home/youwen/.local/share/nvim/lazy/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py"; + scrollback_pager = ''nvim --noplugin -c "set signcolumn=no showtabline=0" -c "silent write! /tmp/kitty_scrollback_buffer | te cat /tmp/kitty_scrollback_buffer - "''; }; keybindings = { - "kitty_mod+h" = "kitty_scrollback_nvim"; - "kitty_mod+g" = "kitty_scrollback_nvim --config ksb_builtin_last_cmd_output"; + # "kitty_mod+h" = "kitty_scrollback_nvim"; + # "kitty_mod+g" = "kitty_scrollback_nvim --config ksb_builtin_last_cmd_output"; + "kitty_mod+h" = "show_scrollback"; }; };