mirror of
				https://github.com/halfdan/dotfiles.git
				synced 2025-10-31 12:36:12 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Window
 | |
| map ctrl+\ new_window_with_cwd
 | |
| 
 | |
| # Tab
 | |
| map ctrl+1 goto_tab 1
 | |
| map ctrl+2 goto_tab 2
 | |
| map ctrl+3 goto_tab 3
 | |
| map ctrl+4 goto_tab 4
 | |
| map ctrl+t new_tab
 | |
| map ctrl+w close_tab
 | |
| 
 | |
| # --- Splits ---
 | |
| map ctrl+b,"   launch --location=hsplit   # Ctrl+b then " splits horizontally
 | |
| map ctrl+b,%   launch --location=vsplit   # Ctrl+b then % splits vertically
 | |
| 
 | |
| # Supper power keys
 | |
| map ctrl+; kitten toggle_term.py
 | |
| 
 | |
| # kitty-scrollback.nvim Kitten alias
 | |
| # action_alias kitty_scrollback_nvim kitten /home/tieu/.local/share/nvim/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
 | |
| 
 | |
| # ----------
 | |
| # smart-split
 | |
| map ctrl+j neighboring_window down
 | |
| map ctrl+k neighboring_window up
 | |
| map ctrl+h neighboring_window left
 | |
| map ctrl+l neighboring_window right
 | |
| 
 | |
| # Unset the mapping to pass the keys to neovim
 | |
| map --when-focus-on var:IS_NVIM ctrl+j
 | |
| map --when-focus-on var:IS_NVIM ctrl+k
 | |
| map --when-focus-on var:IS_NVIM ctrl+h
 | |
| map --when-focus-on var:IS_NVIM ctrl+l
 | |
| 
 | |
| # the 3 here is the resize amount, adjust as needed
 | |
| map alt+j kitten relative_resize.py down  3
 | |
| map alt+k kitten relative_resize.py up    3
 | |
| map alt+h kitten relative_resize.py left  3
 | |
| map alt+l kitten relative_resize.py right 3
 | |
| 
 | |
| map --when-focus-on var:IS_NVIM alt+j
 | |
| map --when-focus-on var:IS_NVIM alt+k
 | |
| map --when-focus-on var:IS_NVIM alt+h
 | |
| map --when-focus-on var:IS_NVIM alt+l
 | |
| 
 | |
| map f1 launch_tab nvim
 |