Skip to content

Commit

Permalink
Fix alacritty keybindings
Browse files Browse the repository at this point in the history
  • Loading branch information
francishamel committed Aug 8, 2024
1 parent 70349c1 commit 67cec99
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions home-manager/modules/alacritty.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@
startup_mode = "Maximized";
title = "Alacritty";
};

# See https://portal.cs.umbc.edu/help/theory/ascii.txt
keyboard.bindings = [
{ key = "Backspace"; mods = "Command"; chars = "\\u0015"; }
{ key = "Backspace"; mods = "Alt"; chars = "\\u0017"; }
{ key = "Left"; mods = "Command"; chars = "\\u0001"; }
{ key = "Right"; mods = "Command"; chars = "\\u0005"; }
{ key = "Left"; mods = "Alt"; chars = "\\u001b\\u0062"; }
{ key = "Right"; mods = "Alt"; chars = "\\u001b\\u0066"; }
];
};
};
}
4 changes: 3 additions & 1 deletion home-manager/modules/zsh/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

{
programs.zsh = {
defaultKeymap = "emacs";
dotDir = ".config/zsh";
enable = true;
historySubstringSearch.enable = true;
shellAliases.".." = "cd ..";
initExtra = ''
bindkey '^U' backward-kill-line
'';
};
}

0 comments on commit 67cec99

Please sign in to comment.