aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-04-17 15:21:12 +0200
committerGitHub <noreply@github.com>2021-04-17 15:21:12 +0200
commitd5be5e3a849e5bb67c664c0dac35686a24fb6b13 (patch)
tree48f61f1329a5990b8ca021789e58fd16a981ba40 /example
parentMerge branch 'main' of github.com:zellij-org/zellij (diff)
parentAdd Unbind for Keybindings (#241) (diff)
downloadsl0ppij-d5be5e3a849e5bb67c664c0dac35686a24fb6b13.tar.gz
sl0ppij-d5be5e3a849e5bb67c664c0dac35686a24fb6b13.tar.xz
sl0ppij-d5be5e3a849e5bb67c664c0dac35686a24fb6b13.zip
Merge pull request #275 from a-kenji/unbind-default-keys
Unbind default keys
Diffstat (limited to 'example')
-rw-r--r--example/README.md5
-rw-r--r--example/default.yaml211
2 files changed, 216 insertions, 0 deletions
diff --git a/example/README.md b/example/README.md
new file mode 100644
index 00000000..abeb847a
--- /dev/null
+++ b/example/README.md
@@ -0,0 +1,5 @@
+# Special considerations when using the configuration:
+
+While trying to bind the newline character in the Config, use double quotes:
+
+`Ctrl: "\n"` instead of `Ctrl: '\n'`
diff --git a/example/default.yaml b/example/default.yaml
new file mode 100644
index 00000000..4950b864
--- /dev/null
+++ b/example/default.yaml
@@ -0,0 +1,211 @@
+---
+keybinds:
+ unbind: true
+ normal:
+ - action: [SwitchToMode: Locked,]
+ key: [Ctrl: 'g',]
+ - action: [SwitchToMode: Pane,]
+ key: [Ctrl: 'p',]
+ - action: [SwitchToMode: Resize,]
+ key: [Ctrl: 'r',]
+ - action: [SwitchToMode: Tab,]
+ key: [Ctrl: 't',]
+ - action: [SwitchToMode: Scroll,]
+ key: [Ctrl: 's',]
+ - action: [Quit,]
+ key: [Ctrl: 'q',]
+ - action: [NewPane: ]
+ key: [ Alt: 'n',]
+ - action: [MoveFocus: Left,]
+ key: [ Alt: 'h',]
+ - action: [MoveFocus: Right,]
+ key: [ Alt: 'l',]
+ - action: [MoveFocus: Down,]
+ key: [ Alt: 'j',]
+ - action: [MoveFocus: Up,]
+ key: [ Alt: 'k',]
+ - action: [FocusPreviousPane,]
+ key: [ Alt: '[',]
+ - action: [FocusNextPane,]
+ key: [ Alt: ']',]
+ locked:
+ - action: [SwitchToMode: Normal,]
+ key: [Ctrl: 'g',]
+ resize:
+ - action: [SwitchToMode: Locked,]
+ key: [Ctrl: 'g']
+ - action: [SwitchToMode: Pane,]
+ key: [Ctrl: 'p', ]
+ - action: [SwitchToMode: Tab,]
+ key: [Ctrl: 't', ]
+ - action: [SwitchToMode: Normal,]
+ key: [Ctrl: 'r', Char: "\n", Char: ' ',]
+ - action: [SwitchToMode: Scroll,]
+ key: [Ctrl: 's']
+ - action: [Quit]
+ key: [Ctrl: 'q']
+ - action: [Resize: Left,]
+ key: [Char: 'h', Left, ]
+ - action: [Resize: Down,]
+ key: [Char: 'h', Down, ]
+ - action: [Resize: Up,]
+ key: [Char: 'h', Up, ]
+ - action: [Resize: Right,]
+ key: [Char: 'h', Right, ]
+ - action: [NewPane: ,]
+ key: [ Alt: 'n',]
+ - action: [MoveFocus: Left,]
+ key: [ Alt: 'h', Left,]
+ - action: [MoveFocus: Right,]
+ key: [ Alt: 'l', Right,]
+ - action: [MoveFocus: Down,]
+ key: [ Alt: 'j', Down,]
+ - action: [MoveFocus: Up,]
+ key: [ Alt: 'k', Up,]
+ - action: [FocusPreviousPane,]
+ key: [ Alt: '[',]
+ - action: [FocusNextPane,]
+ key: [ Alt: ']',]
+ pane:
+ - action: [SwitchToMode: Locked,]
+ key: [Ctrl: 'g']
+ - action: [SwitchToMode: Pane,]
+ key: [Ctrl: 'p', ]
+ - action: [SwitchToMode: Tab,]
+ key: [Ctrl: 't', ]
+ - action: [SwitchToMode: Normal,]
+ key: [Ctrl: 'r', Char: "\n", Char: ' ',]
+ - action: [SwitchToMode: Scroll,]
+ key: [Ctrl: 's']
+ - action: [Quit,]
+ key: [Ctrl: 'q',]
+ - action: [MoveFocus: Left,]
+ key: [ Alt: 'h', Left,]
+ - action: [MoveFocus: Right,]
+ key: [ Alt: 'l', Right,]
+ - action: [MoveFocus: Down,]
+ key: [ Alt: 'j', Down,]
+ - action: [MoveFocus: Up,]
+ key: [ Alt: 'k', Up,]
+ - action: [SwitchFocus,]
+ key: [Char: 'p']
+ - action: [NewPane: ,]
+ key: [Char: 'n', Alt: 'n',]
+ - action: [NewPane: Down,]
+ key: [Char: 'd', ]
+ - action: [NewPane: Right,]
+ key: [Char: 'r', ]
+ - action: [CloseFocus,]
+ key: [Char: 'x', ]
+ - action: [ToggleFocusFullscreen,]
+ key: [Char: 'f', ]
+ - action: [FocusPreviousPane,]
+ key: [ Alt: '[',]
+ - action: [FocusNextPane,]
+ key: [ Alt: ']',]
+ tab:
+ - action: [SwitchToMode: Locked,]
+ key: [Ctrl: 'g']
+ - action: [SwitchToMode: Pane,]
+ key: [Ctrl: 'p', ]
+ - action: [SwitchToMode: Normal,]
+ key: [Ctrl: 'r', Ctrl: 't', Char: "\n", Char: ' ',]
+ - action: [SwitchToMode: Scroll,]
+ key: [Ctrl: 's']
+ - action: [SwitchToMode: RenameTab, TabNameInput: [0],]
+ key: [Char: 'r']
+ - action: [Quit,]
+ key: [Ctrl: 'q',]
+ - action: [FocusPreviousPane,]
+ key: [ Alt: '[',]
+ - action: [FocusNextPane,]
+ key: [ Alt: ']',]
+ - action: [GoToPreviousTab,]
+ key: [ Char: 'h',]
+ - action: [GoToNextTab,]
+ key: [ Char: 'l', ]
+ - action: [GoToNextTab,]
+ key: [ Char: 'j', ]
+ - action: [GoToPreviousTab,]
+ key: [ Char: 'k', ]
+ - action: [NewTab,]
+ key: [ Char: 'n', ]
+ - action: [CloseTab,]
+ key: [ Char: 'x', ]
+ - action: [MoveFocus: Left,]
+ key: [ Alt: 'h',]
+ - action: [MoveFocus: Right,]
+ key: [ Alt: 'l', ]
+ - action: [MoveFocus: Down,]
+ key: [ Alt: 'j', ]
+ - action: [MoveFocus: Up,]
+ key: [ Alt: 'k', ]
+ - action: [GoToTab: 1,]
+ key: [ Char: '1', ]
+ - action: [GoToTab: 2,]
+ key: [ Char: '2', ]
+ - action: [GoToTab: 3,]
+ key: [ Char: '3', ]
+ - action: [GoToTab: 4,]
+ key: [ Char: '4', ]
+ - action: [GoToTab: 5,]
+ key: [ Char: '5', ]
+ - action: [GoToTab: 6,]
+ key: [ Char: '6', ]
+ - action: [GoToTab: 7,]
+ key: [ Char: '7', ]
+ - action: [GoToTab: 8,]
+ key: [ Char: '8', ]
+ - action: [GoToTab: 9,]
+ key: [ Char: '9', ]
+ scroll:
+ - action: [SwitchToMode: Normal,]
+ key: [Ctrl: 'r', Ctrl: 's', Char: ' ',
+ Char: "\n",]
+ - action: [SwitchToMode: Tab,]
+ key: [Ctrl: 't', ]
+ - action: [SwitchToMode: Locked,]
+ key: [Ctrl: 'g', ]
+ - action: [SwitchToMode: Pane,]
+ key: [Ctrl: 'p', ]
+ - action: [Quit,]
+ key: [Ctrl: 'q',]
+ - action: [ScrollDown,]
+ key: [Char: 'j', Down,]
+ - action: [ScrollUp,]
+ key: [Char: 'k', Up,]
+ - action: [NewPane: ,]
+ key: [ Alt: 'n',]
+ - action: [MoveFocus: Left,]
+ key: [ Alt: 'h',]
+ - action: [MoveFocus: Right,]
+ key: [ Alt: 'l',]
+ - action: [MoveFocus: Down,]
+ key: [ Alt: 'j',]
+ - action: [MoveFocus: Up,]
+ key: [ Alt: 'k',]
+ - action: [FocusPreviousPane,]
+ key: [ Alt: '[',]
+ - action: [FocusNextPane,]
+ key: [ Alt: ']',]
+ renametab:
+ - action: [SwitchToMode: Normal,]
+ key: [Ctrl: 'r', Ctrl: 's', Char: ' ', Char: 'g',]
+ - action: [SwitchToMode: Tab,]
+ key: [Char: "\n",]
+ - action: [TabNameInput: [27] , SwitchToMode: Tab,]
+ key: [Esc,]
+ - action: [NewPane: ,]
+ key: [ Alt: 'n',]
+ - action: [MoveFocus: Left,]
+ key: [ Alt: 'h',]
+ - action: [MoveFocus: Right,]
+ key: [ Alt: 'l',]
+ - action: [MoveFocus: Down,]
+ key: [ Alt: 'j',]
+ - action: [MoveFocus: Up,]
+ key: [ Alt: 'k',]
+ - action: [FocusPreviousPane,]
+ key: [ Alt: '[',]
+ - action: [FocusNextPane,]
+ key: [ Alt: ']',]