define tab switching keys
This commit is contained in:
parent
19329b587e
commit
e14c0c0949
|
@ -47,6 +47,8 @@ profiles:
|
||||||
up: i
|
up: i
|
||||||
right: o
|
right: o
|
||||||
next: l
|
next: l
|
||||||
|
tabL: U
|
||||||
|
tabR: Y
|
||||||
insertMode: s
|
insertMode: s
|
||||||
font:
|
font:
|
||||||
mono: Fira Code
|
mono: Fira Code
|
||||||
|
|
|
@ -175,6 +175,8 @@ call plug#end()
|
||||||
highlight EndOfBuffer guibg=None guifg={{@@ color.bg_light @@}}
|
highlight EndOfBuffer guibg=None guifg={{@@ color.bg_light @@}}
|
||||||
highlight SpecialKey guibg=None guifg={{@@ color.accent @@}}
|
highlight SpecialKey guibg=None guifg={{@@ color.accent @@}}
|
||||||
|
|
||||||
|
highlight tabLine None
|
||||||
|
highlight tabLineFill None
|
||||||
|
|
||||||
highlight SignColumn guibg=None
|
highlight SignColumn guibg=None
|
||||||
highlight GitGutterAdd guifg=lightgreen
|
highlight GitGutterAdd guifg=lightgreen
|
||||||
|
@ -224,6 +226,9 @@ call plug#end()
|
||||||
noremap {{@@ key.next @@}} n
|
noremap {{@@ key.next @@}} n
|
||||||
noremap {{@@ key.next.upper() @@}} N
|
noremap {{@@ key.next.upper() @@}} N
|
||||||
|
|
||||||
|
nnoremap {{@@ key.tabL @@}} :tabprev<cr>
|
||||||
|
nnoremap {{@@ key.tabR @@}} :tabnext<cr>
|
||||||
|
|
||||||
noremap {{@@ key.insertMode @@}} i
|
noremap {{@@ key.insertMode @@}} i
|
||||||
noremap {{@@ key.insertMode.upper() @@}} I
|
noremap {{@@ key.insertMode.upper() @@}} I
|
||||||
|
|
||||||
|
|
|
@ -366,10 +366,14 @@ config.bind("{{@@ key.up @@}}", "scroll up")
|
||||||
config.bind("{{@@ key.right @@}}", "scroll right")
|
config.bind("{{@@ key.right @@}}", "scroll right")
|
||||||
|
|
||||||
config.bind("{{@@ key.left .upper() @@}}", "back")
|
config.bind("{{@@ key.left .upper() @@}}", "back")
|
||||||
config.bind("{{@@ key.down .upper() @@}}", "tab-prev")
|
|
||||||
config.bind("{{@@ key.up .upper() @@}}", "tab-next")
|
|
||||||
config.bind("{{@@ key.right .upper() @@}}", "forward")
|
config.bind("{{@@ key.right .upper() @@}}", "forward")
|
||||||
|
|
||||||
|
config.bind("{{@@ key.up .upper() @@}}", "scroll-px 0 -100")
|
||||||
|
config.bind("{{@@ key.down .upper() @@}}", "scroll-px 0 100")
|
||||||
|
|
||||||
|
config.bind("{{@@ key.tabL .upper() @@}}", "tab-prev")
|
||||||
|
config.bind("{{@@ key.tabR .upper() @@}}", "tab-next")
|
||||||
|
|
||||||
# Bindings for caret mode
|
# Bindings for caret mode
|
||||||
config.bind("{{@@ key.left @@}}", "move-to-prev-char", mode="caret")
|
config.bind("{{@@ key.left @@}}", "move-to-prev-char", mode="caret")
|
||||||
config.bind("{{@@ key.up @@}}", "move-to-prev-line", mode="caret")
|
config.bind("{{@@ key.up @@}}", "move-to-prev-line", mode="caret")
|
||||||
|
|
|
@ -133,8 +133,8 @@
|
||||||
#}}}
|
#}}}
|
||||||
# Workspaces: {{{
|
# Workspaces: {{{
|
||||||
|
|
||||||
bindsym $mod+u workspace prev
|
bindsym $mod+{{@@ key.tabL @@}} workspace prev
|
||||||
bindsym $mod+y workspace next
|
bindsym $mod+{{@@ key.tabY @@}} workspace next
|
||||||
|
|
||||||
# Switch to workspace
|
# Switch to workspace
|
||||||
# Move focused container to workspace
|
# Move focused container to workspace
|
||||||
|
|
Reference in a new issue