This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

tools.pi: rebind conflicting extension shortcuts ctrl+u/ctrl+r to ctrl+shift variants

+8 -1
+8 -1
tools/pi/flake-module.nix
··· 28 28 npm install -g pi-hooks shitty-extensions 29 29 ''; 30 30 31 - # Remove the resistance extension (annoying terminator quote widget) 31 + # Patch shitty-extensions: 32 + # - Remove the resistance extension (annoying terminator quote widget) 33 + # - Rebind ultrathink ctrl+u -> ctrl+shift+u (conflicts with deleteToLineStart) 34 + # - Rebind speedreading ctrl+r -> ctrl+shift+r (conflicts with renameSession) 32 35 pluginPrefix = pkgs.runCommand "pi-plugins" { } '' 33 36 cp -a ${pluginPrefixRaw} $out 34 37 chmod -R u+w $out 35 38 pkg=$out/lib/node_modules/shitty-extensions/package.json 36 39 ${pkgs.jq}/bin/jq '.pi.extensions |= map(select(contains("resistance") | not))' "$pkg" > "$pkg.tmp" 37 40 mv "$pkg.tmp" "$pkg" 41 + 42 + # Fix keybinding conflicts in extension source 43 + ${pkgs.gnused}/bin/sed -i 's/"ctrl+u"/"ctrl+shift+u"/' $out/lib/node_modules/shitty-extensions/extensions/ultrathink.ts 44 + ${pkgs.gnused}/bin/sed -i 's/"ctrl+r"/"ctrl+shift+r"/' $out/lib/node_modules/shitty-extensions/extensions/speedreading.ts 38 45 ''; 39 46 in 40 47 {