From 8bb8c71e489e471829ebc25c5a6241c0898eba80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Wed, 18 Jun 2025 22:06:31 +0200 Subject: [PATCH] vanadium: patch helix so I have W command --- nix/configurations/vanadium/overlay.nix | 5 +++++ .../vanadium/patches/helix/W-as-write.patch | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 nix/configurations/vanadium/patches/helix/W-as-write.patch diff --git a/nix/configurations/vanadium/overlay.nix b/nix/configurations/vanadium/overlay.nix index 95e7d31b..f0012aa7 100644 --- a/nix/configurations/vanadium/overlay.nix +++ b/nix/configurations/vanadium/overlay.nix @@ -23,6 +23,11 @@ in vlc.__input.chromecastSupport = _: false; vlc.__input.waylandSupport = _: false; + # I don't really use helix, but it's nice to have the W alias just in case + helix.__output.patches.__append = [ + ./patches/helix/W-as-write.patch + ]; + fcitx5.__output.cmakeFlags.__append = [ (lib.cmakeFeature "ENABLE_EMOJI" "Off") (lib.cmakeFeature "ENABLE_WAYLAND" "Off") diff --git a/nix/configurations/vanadium/patches/helix/W-as-write.patch b/nix/configurations/vanadium/patches/helix/W-as-write.patch new file mode 100644 index 00000000..7a9f4f13 --- /dev/null +++ b/nix/configurations/vanadium/patches/helix/W-as-write.patch @@ -0,0 +1,13 @@ +diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs +index 2013a9d8..e1673e68 100644 +--- a/helix-term/src/commands/typed.rs ++++ b/helix-term/src/commands/typed.rs +@@ -2705,7 +2705,7 @@ fn noop(_cx: &mut compositor::Context, _args: Args, _event: PromptEvent) -> anyh + }, + TypableCommand { + name: "write", +- aliases: &["w"], ++ aliases: &["w", "W"], // I type too fast + doc: "Write changes to disk. Accepts an optional path (:write some/path.txt)", + fun: write, + completer: CommandCompleter::positional(&[completers::filename]),