Ver Fonte

kitty: shell integration

raylu há 1 ano atrás
pai
commit
e509fe7f9f
1 ficheiros alterados com 8 adições e 1 exclusões
  1. 8 1
      config/kitty/kitty.conf

+ 8 - 1
config/kitty/kitty.conf

@@ -973,6 +973,10 @@ allow_hyperlinks yes
 #: with the mouse. The special value of ``ask`` means that kitty will
 #: ask before opening the link.
 
+shell_integration enabled
+
+clone_source_strategies env_var,path
+
 term xterm-kitty
 
 #: The value of the TERM environment variable to set. Changing this
@@ -1202,6 +1206,9 @@ map shift+home      scroll_home
 map shift+end       scroll_end
 # map kitty_mod+h         show_scrollback
 map kitty_mod+shift+h   show_scrollback
+map kitty_mod+shift+z   scroll_to_prompt -1
+map kitty_mod+shift+x   scroll_to_prompt 1
+map f1                  show_last_visited_command_output
 
 #: You can pipe the contents of the current screen + history buffer as
 #: STDIN to an arbitrary program using the ``launch`` function. For
@@ -1218,7 +1225,7 @@ map kitty_mod+shift+h   show_scrollback
 #: Window management {{{
 
 # map kitty_mod+enter new_window
-map kitty_mod+shift+enter new_window
+map kitty_mod+shift+enter new_window_with_cwd
 
 #: You can open a new window running an arbitrary program, for
 #: example::