From e0dea796054db4f21dcc125cbdb6b5718830e5fa Mon Sep 17 00:00:00 2001 From: Mitchell Simon Date: Sat, 14 Sep 2019 16:19:53 -0400 Subject: [PATCH] Modify kitty key bindings; add completions for kitty to config.fish --- .config/fish/config.fish | 2 ++ .config/kitty/kitty.conf | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index bf9b3eb..e5b73af 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -8,5 +8,7 @@ set -gx PATH $PATH $GOBIN \ set -g fish_escape_delay_ms 10 +kitty + complete setup fish | source + # The next line updates PATH for the Google Cloud SDK. # if test -f '/Users/m/Documents/google-cloud-sdk/path.fish.inc'; source '/Users/m/Documents/google-cloud-sdk/path.fish.inc'; end diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf index 279bde1..1542765 100644 --- a/.config/kitty/kitty.conf +++ b/.config/kitty/kitty.conf @@ -172,7 +172,7 @@ cursor_shape beam #: special value default means to use the operating system's default #: URL handler. -# copy_on_select no +copy_on_select yes #: Copy to clipboard or a private buffer on select. With this set to #: clipboard, simply selecting text with the mouse will cause the text @@ -824,14 +824,14 @@ macos_quit_when_last_window_closed yes # map kitty_mod+up scroll_line_up # map alt+cmd+page_up scroll_line_up # map cmd+up scroll_line_up -map kitty_mod+k scroll_line_up +map cmd+k scroll_line_up # map kitty_mod+down scroll_line_down -map kitty_mod+j scroll_line_down +map cmd+j scroll_line_down # map alt+cmd+page_down scroll_line_down # map cmd+down scroll_line_down -map kitty_mod+u scroll_page_up +map cmd+u scroll_page_up # map cmd+page_up scroll_page_up -map kitty_mod+d scroll_page_down +map cmd+d scroll_page_down # map cmd+page_down scroll_page_down # map kitty_mod+home scroll_home # map cmd+home scroll_home @@ -881,7 +881,7 @@ map kitty_mod+d scroll_page_down # map cmd+enter new_window # map kitty_mod+n new_os_window # map cmd+n new_os_window -# map kitty_mod+w close_window +map kitty_mod+w close_window # map shift+cmd+d close_window # map kitty_mod+] next_window # map kitty_mod+[ previous_window @@ -990,7 +990,7 @@ map kitty_mod+d scroll_page_down #: Open a currently visible URL using the keyboard. The program used #: to open the URL is specified in open_url_with. -# map kitty_mod+p>f kitten hints --type path --program - +map kitty_mod+p>f kitten hints --type path --program @ #: Select a path/filename and insert it into the terminal. Useful, for #: instance to run git commands on a filename output from a previous @@ -1000,16 +1000,16 @@ map kitty_mod+d scroll_page_down #: Select a path/filename and open it with the default open program. -# map kitty_mod+p>l kitten hints --type line --program - +map kitty_mod+p>l kitten hints --type line --program @ #: Select a line of text and insert it into the terminal. Use for the #: output of things like: ls -1 -# map kitty_mod+p>w kitten hints --type word --program - +map kitty_mod+p>w kitten hints --type word --program @ #: Select words and insert into terminal. -# map kitty_mod+p>h kitten hints --type hash --program - +map kitty_mod+p>h kitten hints --type hash --program @ #: Select something that looks like a hash and insert it into the #: terminal. Useful with git, which uses sha1 hashes to identify