unify command-mode keybinds, add terminal keybinds
This commit is contained in:
parent
6811313bf1
commit
2eea5707bd
@ -183,22 +183,22 @@ search-box-match={{ .theme.color.fg }} {{ .theme.color.bg_accent_dark }}
|
||||
# button-close-color=<regular1>
|
||||
|
||||
[key-bindings]
|
||||
# scrollback-up-page=Shift+Page_Up
|
||||
scrollback-up-page=Control+Shift+b
|
||||
scrollback-up-half-page=Control+Shift+u
|
||||
# scrollback-up-line=none
|
||||
# scrollback-down-page=Shift+Page_Down
|
||||
scrollback-up-line=Control+Shift+i
|
||||
scrollback-down-page=Control+Shift+f
|
||||
scrollback-down-half-page=Control+Shift+d
|
||||
# scrollback-down-line=none
|
||||
# scrollback-home=none
|
||||
# scrollback-end=none
|
||||
scrollback-down-line=Control+Shift+e
|
||||
scrollback-home=none
|
||||
scrollback-end=Control+Shift+g
|
||||
clipboard-copy=Control+c
|
||||
clipboard-paste=Control+v
|
||||
# primary-paste=Shift+Insert
|
||||
primary-paste=Control+Shift+p
|
||||
search-start=Control+Shift+slash
|
||||
# font-increase=Control+plus Control+equal Control+KP_Add
|
||||
# font-decrease=Control+minus Control+KP_Subtract
|
||||
# font-reset=Control+0 Control+KP_0
|
||||
# spawn-terminal=Control+Shift+n
|
||||
font-increase=Control+plus
|
||||
font-decrease=Control+minus
|
||||
font-reset=Control+equal
|
||||
spawn-terminal=Control+Shift+h
|
||||
# minimize=none
|
||||
# maximize=none
|
||||
# fullscreen=none
|
||||
@ -217,39 +217,42 @@ unicode-input=none
|
||||
[search-bindings]
|
||||
cancel=Escape
|
||||
commit=Return
|
||||
find-prev=Control+K
|
||||
find-prev=Control+Shift+k
|
||||
find-next=Control+k
|
||||
# cursor-left=Left Control+b
|
||||
# cursor-left-word=Control+Left Mod1+b
|
||||
# cursor-right=Right Control+f
|
||||
# cursor-right-word=Control+Right Mod1+f
|
||||
# cursor-home=Home Control+a
|
||||
# cursor-end=End Control+e
|
||||
# delete-prev=BackSpace
|
||||
# delete-prev-word=Mod1+BackSpace Control+BackSpace
|
||||
# prompt - emacs like
|
||||
cursor-left=Control+b Left
|
||||
cursor-left-word=Mod1+b Control+Left
|
||||
cursor-right=Control+f Right
|
||||
cursor-right-word=Mod1+f Control+Right
|
||||
cursor-home=Control+a
|
||||
cursor-end=Control+e
|
||||
delete-prev=BackSpace Control+n
|
||||
delete-prev-word=Control+w Mod1+BackSpace Control+BackSpace
|
||||
# delete-next=Delete
|
||||
# delete-next-word=Mod1+d Control+Delete
|
||||
# delete-to-start=Control+u
|
||||
delete-to-start=Control+u
|
||||
delete-to-end=none
|
||||
# extend-char=Shift+Right
|
||||
# extend-to-word-boundary=Control+w Control+Shift+Right
|
||||
#######################
|
||||
extend-char=Shift+o
|
||||
extend-to-word-boundary=Shift+w
|
||||
# extend-to-next-whitespace=Control+Shift+w
|
||||
# extend-line-down=Shift+Down
|
||||
# extend-backward-char=Shift+Left
|
||||
# extend-backward-to-word-boundary=Control+Shift+Left
|
||||
extend-to-next-whitespace=none
|
||||
extend-line-down=Shift+e
|
||||
extend-backward-char=Shift+n
|
||||
extend-backward-to-word-boundary=Shift+b
|
||||
# extend-backward-to-next-whitespace=none
|
||||
# extend-line-up=Shift+Up
|
||||
extend-line-up=Shift+i
|
||||
clipboard-paste=Control+v
|
||||
# primary-paste=Shift+Insert
|
||||
primary-paste=Control+Shift+p
|
||||
# unicode-input=none
|
||||
# scrollback-up-page=Shift+Page_Up Shift+KP_Page_Up
|
||||
# scrollback-up-half-page=none
|
||||
# scrollback-up-line=none
|
||||
# scrollback-down-page=Shift+Page_Down Shift+KP_Page_Down
|
||||
# scrollback-down-half-page=none
|
||||
# scrollback-down-line=none
|
||||
# scrollback-home=none
|
||||
# scrollback-end=none
|
||||
scrollback-up-page=none
|
||||
scrollback-up-half-page=none
|
||||
scrollback-up-line=none
|
||||
scrollback-down-page=none
|
||||
scrollback-down-half-page=none
|
||||
scrollback-down-line=none
|
||||
scrollback-home=none
|
||||
scrollback-end=none
|
||||
|
||||
[url-bindings]
|
||||
# cancel=Control+g Control+c Control+d Escape
|
||||
|
@ -6,6 +6,16 @@ set vi-ins-mode-string \1\e[1 q\2
|
||||
set vi-cmd-mode-string \1\e[2 q\2
|
||||
#################################
|
||||
|
||||
############# new ###############
|
||||
set keymap vi-insert
|
||||
"\C-a":beginning-of-line
|
||||
"\C-e":end-of-line
|
||||
"\C-b":backward-char
|
||||
"\C-f":forward-char
|
||||
"\eb":backward-word
|
||||
"\ef":forward-word
|
||||
#################################
|
||||
|
||||
##### remap - colemak-dh #######
|
||||
|
||||
# n -> h
|
||||
@ -38,7 +48,7 @@ set keymap vi-command
|
||||
"\C-k":next-history
|
||||
# j -> e
|
||||
set keymap vi-insert
|
||||
"\C-e":self-insert
|
||||
"\C-j":self-insert
|
||||
set keymap vi-command
|
||||
"j":vi-end-word
|
||||
"J":vi-end-word
|
||||
|
@ -82,6 +82,7 @@ bindsym --to-code {
|
||||
$mod+w layout tabbed
|
||||
$altmod+w split v; layout tabbed
|
||||
$mod+u split none
|
||||
$altmod+u split none
|
||||
$mod+y layout stacking
|
||||
$altmod+y split h; layout stacking
|
||||
}
|
||||
|
@ -117,6 +117,15 @@ noremap! <C-h> <C-o>
|
||||
|
||||
"#################################
|
||||
|
||||
"############### new keybinds ###############
|
||||
cnoremap <C-a> <Home>
|
||||
cnoremap <C-e> <End>
|
||||
cnoremap <C-b> <Left>
|
||||
cnoremap <C-f> <Right>
|
||||
cnoremap <M-b> <S-Left>
|
||||
cnoremap <M-f> <S-Right>
|
||||
"############################################
|
||||
|
||||
"####### custom commands #########
|
||||
" W - Save file as superuser
|
||||
command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
|
||||
|
Loading…
Reference in New Issue
Block a user