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>
|
# button-close-color=<regular1>
|
||||||
|
|
||||||
[key-bindings]
|
[key-bindings]
|
||||||
# scrollback-up-page=Shift+Page_Up
|
scrollback-up-page=Control+Shift+b
|
||||||
scrollback-up-half-page=Control+Shift+u
|
scrollback-up-half-page=Control+Shift+u
|
||||||
# scrollback-up-line=none
|
scrollback-up-line=Control+Shift+i
|
||||||
# scrollback-down-page=Shift+Page_Down
|
scrollback-down-page=Control+Shift+f
|
||||||
scrollback-down-half-page=Control+Shift+d
|
scrollback-down-half-page=Control+Shift+d
|
||||||
# scrollback-down-line=none
|
scrollback-down-line=Control+Shift+e
|
||||||
# scrollback-home=none
|
scrollback-home=none
|
||||||
# scrollback-end=none
|
scrollback-end=Control+Shift+g
|
||||||
clipboard-copy=Control+c
|
clipboard-copy=Control+c
|
||||||
clipboard-paste=Control+v
|
clipboard-paste=Control+v
|
||||||
# primary-paste=Shift+Insert
|
primary-paste=Control+Shift+p
|
||||||
search-start=Control+Shift+slash
|
search-start=Control+Shift+slash
|
||||||
# font-increase=Control+plus Control+equal Control+KP_Add
|
font-increase=Control+plus
|
||||||
# font-decrease=Control+minus Control+KP_Subtract
|
font-decrease=Control+minus
|
||||||
# font-reset=Control+0 Control+KP_0
|
font-reset=Control+equal
|
||||||
# spawn-terminal=Control+Shift+n
|
spawn-terminal=Control+Shift+h
|
||||||
# minimize=none
|
# minimize=none
|
||||||
# maximize=none
|
# maximize=none
|
||||||
# fullscreen=none
|
# fullscreen=none
|
||||||
@ -217,39 +217,42 @@ unicode-input=none
|
|||||||
[search-bindings]
|
[search-bindings]
|
||||||
cancel=Escape
|
cancel=Escape
|
||||||
commit=Return
|
commit=Return
|
||||||
find-prev=Control+K
|
find-prev=Control+Shift+k
|
||||||
find-next=Control+k
|
find-next=Control+k
|
||||||
# cursor-left=Left Control+b
|
# prompt - emacs like
|
||||||
# cursor-left-word=Control+Left Mod1+b
|
cursor-left=Control+b Left
|
||||||
# cursor-right=Right Control+f
|
cursor-left-word=Mod1+b Control+Left
|
||||||
# cursor-right-word=Control+Right Mod1+f
|
cursor-right=Control+f Right
|
||||||
# cursor-home=Home Control+a
|
cursor-right-word=Mod1+f Control+Right
|
||||||
# cursor-end=End Control+e
|
cursor-home=Control+a
|
||||||
# delete-prev=BackSpace
|
cursor-end=Control+e
|
||||||
# delete-prev-word=Mod1+BackSpace Control+BackSpace
|
delete-prev=BackSpace Control+n
|
||||||
|
delete-prev-word=Control+w Mod1+BackSpace Control+BackSpace
|
||||||
# delete-next=Delete
|
# delete-next=Delete
|
||||||
# delete-next-word=Mod1+d Control+Delete
|
# delete-next-word=Mod1+d Control+Delete
|
||||||
# delete-to-start=Control+u
|
delete-to-start=Control+u
|
||||||
delete-to-end=none
|
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-to-next-whitespace=Control+Shift+w
|
||||||
# extend-line-down=Shift+Down
|
extend-to-next-whitespace=none
|
||||||
# extend-backward-char=Shift+Left
|
extend-line-down=Shift+e
|
||||||
# extend-backward-to-word-boundary=Control+Shift+Left
|
extend-backward-char=Shift+n
|
||||||
|
extend-backward-to-word-boundary=Shift+b
|
||||||
# extend-backward-to-next-whitespace=none
|
# extend-backward-to-next-whitespace=none
|
||||||
# extend-line-up=Shift+Up
|
extend-line-up=Shift+i
|
||||||
clipboard-paste=Control+v
|
clipboard-paste=Control+v
|
||||||
# primary-paste=Shift+Insert
|
primary-paste=Control+Shift+p
|
||||||
# unicode-input=none
|
# unicode-input=none
|
||||||
# scrollback-up-page=Shift+Page_Up Shift+KP_Page_Up
|
scrollback-up-page=none
|
||||||
# scrollback-up-half-page=none
|
scrollback-up-half-page=none
|
||||||
# scrollback-up-line=none
|
scrollback-up-line=none
|
||||||
# scrollback-down-page=Shift+Page_Down Shift+KP_Page_Down
|
scrollback-down-page=none
|
||||||
# scrollback-down-half-page=none
|
scrollback-down-half-page=none
|
||||||
# scrollback-down-line=none
|
scrollback-down-line=none
|
||||||
# scrollback-home=none
|
scrollback-home=none
|
||||||
# scrollback-end=none
|
scrollback-end=none
|
||||||
|
|
||||||
[url-bindings]
|
[url-bindings]
|
||||||
# cancel=Control+g Control+c Control+d Escape
|
# 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
|
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 #######
|
##### remap - colemak-dh #######
|
||||||
|
|
||||||
# n -> h
|
# n -> h
|
||||||
@ -38,7 +48,7 @@ set keymap vi-command
|
|||||||
"\C-k":next-history
|
"\C-k":next-history
|
||||||
# j -> e
|
# j -> e
|
||||||
set keymap vi-insert
|
set keymap vi-insert
|
||||||
"\C-e":self-insert
|
"\C-j":self-insert
|
||||||
set keymap vi-command
|
set keymap vi-command
|
||||||
"j":vi-end-word
|
"j":vi-end-word
|
||||||
"J":vi-end-word
|
"J":vi-end-word
|
||||||
|
@ -82,6 +82,7 @@ bindsym --to-code {
|
|||||||
$mod+w layout tabbed
|
$mod+w layout tabbed
|
||||||
$altmod+w split v; layout tabbed
|
$altmod+w split v; layout tabbed
|
||||||
$mod+u split none
|
$mod+u split none
|
||||||
|
$altmod+u split none
|
||||||
$mod+y layout stacking
|
$mod+y layout stacking
|
||||||
$altmod+y split h; 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 #########
|
"####### custom commands #########
|
||||||
" W - Save file as superuser
|
" W - Save file as superuser
|
||||||
command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
|
command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
|
||||||
|
Loading…
Reference in New Issue
Block a user