summaryrefslogtreecommitdiffstats
path: root/modules/by-name/fi/fish/keymappings/operator.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-11-09 15:41:24 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-11-09 16:32:14 +0100
commit215dc21512c2ea40620cc28ccef3dd9e77685725 (patch)
tree540ce27c810ad182921f35a7b052ac31fc2c1275 /modules/by-name/fi/fish/keymappings/operator.nix
parentmodules/nix/nix_wrapper.sh: Check `/nix/store` instead of `/nix` (diff)
downloadnixos-config-215dc21512c2ea40620cc28ccef3dd9e77685725.zip
modules/fish: Reorganize the keybindings
Insert and Default modes are now more or less how I want them.
Diffstat (limited to 'modules/by-name/fi/fish/keymappings/operator.nix')
-rw-r--r--modules/by-name/fi/fish/keymappings/operator.nix99
1 files changed, 99 insertions, 0 deletions
diff --git a/modules/by-name/fi/fish/keymappings/operator.nix b/modules/by-name/fi/fish/keymappings/operator.nix
new file mode 100644
index 00000000..1d886f58
--- /dev/null
+++ b/modules/by-name/fi/fish/keymappings/operator.nix
@@ -0,0 +1,99 @@
+{self}: {
+ "0" = {
+ cmd = "fish_vi_exec_motion beginning-of-line";
+ };
+ "1" = self.default."1";
+ "2" = self.default."2";
+ "3" = self.default."3";
+ "4" = self.default."4";
+ "5" = self.default."5";
+ "6" = self.default."6";
+ "7" = self.default."7";
+ "8" = self.default."8";
+ "9" = self.default."9";
+
+ "B" = {
+ cmd = "fish_vi_exec_motion backward-bigword";
+ };
+ "escape" = {
+ cmd = "fish_vi_operator_cancel";
+ };
+ "F" = {
+ cmd = "";
+ sets_mode_to = "F";
+ };
+ "d" = {
+ cmd = "fish_vi_exec_motion --linewise";
+ };
+ "e" = {
+ cmd = "fish_vi_exec_motion forward-word-end";
+ };
+ "j" = {
+ cmd = "fish_vi_exec_motion down-line";
+ };
+ "k" = {
+ cmd = "fish_vi_exec_motion up-line";
+ };
+ "h" = {
+ cmd = "fish_vi_exec_motion backward-char";
+ };
+ "E" = {
+ cmd = "fish_vi_exec_motion forward-bigword-end";
+ };
+ "~" = {
+ cmd = "fish_vi_exec_motion --linewise";
+ };
+ "comma" = {
+ cmd = "fish_vi_exec_motion repeat-jump-reverse";
+ };
+ "^" = {
+ cmd = "fish_vi_exec_motion beginning-of-line";
+ };
+ "ctrl-\\[" = {
+ cmd = "fish_vi_operator_cancel";
+ };
+ ";" = {
+ cmd = "fish_vi_exec_motion repeat-jump";
+ };
+ "c" = {
+ cmd = "fish_vi_exec_motion --linewise";
+ };
+ "T" = {
+ cmd = "";
+ sets_mode_to = "T";
+ };
+ "t" = {
+ cmd = "";
+ sets_mode_to = "t";
+ };
+ "W" = {
+ cmd = "fish_vi_exec_motion forward-bigword-vi";
+ };
+ "$" = {
+ cmd = "fish_vi_exec_motion end-of-line";
+ };
+ "g" = {
+ "E" = {
+ cmd = "fish_vi_exec_motion backward-bigword-end";
+ };
+ "e" = {
+ cmd = "fish_vi_exec_motion backward-word-end";
+ };
+ };
+ "w" = {
+ cmd = "fish_vi_exec_motion forward-word-vi";
+ };
+ "b" = {
+ cmd = "fish_vi_exec_motion backward-word";
+ };
+ "y" = {
+ cmd = "fish_vi_exec_motion --linewise";
+ };
+ "l" = {
+ cmd = "fish_vi_exec_motion forward-char";
+ };
+ "f" = {
+ cmd = "";
+ sets_mode_to = "f";
+ };
+}