aboutsummaryrefslogtreecommitdiff
path: root/autoload/window.kak
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/window.kak')
-rw-r--r--autoload/window.kak12
1 files changed, 12 insertions, 0 deletions
diff --git a/autoload/window.kak b/autoload/window.kak
new file mode 100644
index 0000000..8986914
--- /dev/null
+++ b/autoload/window.kak
@@ -0,0 +1,12 @@
+declare-user-mode win
+map global normal <c-w> ':enter-user-mode win<ret>' -docstring 'Window mode'
+
+map global win q ': quit<ret>' -docstring 'Quit'
+map global win <c-q> ': quit<ret>' -docstring 'Quit'
+map global win v ': tmux-terminal-horizontal kak -c %val{session}<ret>' -docstring 'Split vertical'
+map global win s ': tmux-terminal-vertical kak -c %val{session}<ret>' -docstring 'Split horizontal'
+map global win h ': nop %sh{tmux select-pane -L}<ret>' -docstring 'Jump left'
+map global win j ': nop %sh{tmux select-pane -D}<ret>' -docstring 'Jump down'
+map global win k ': nop %sh{tmux select-pane -U}<ret>' -docstring 'Jump up'
+map global win l ': nop %sh{tmux select-pane -R}<ret>' -docstring 'Jump right'
+map global win z ': wq<ret>'