HASH b0cfbf184fbb
DATE 2025-01-07
SUBJECT fish: neovim telescope alias init
FILES 2 CHANGED
HASH b0cfbf184fbb
DATE 2025-01-07
SUBJECT fish: neovim telescope alias init
FILES 2 CHANGED
┌─ modules/home/console/shell/fish/aliases.nix ──────────────────────────────┐
│ diff --git a/modules/home/console/shell/fish/aliases.nix b/modules/home/console/sh │
│ ell/fish/aliases.nix │
│ index bf6494c..e8bfedf 100644 │
│ --- a/modules/home/console/shell/fish/aliases.nix │
│ +++ b/modules/home/console/shell/fish/aliases.nix │
│ @@ -13,10 +13,11 @@ in { │
│ lst = "${getExe eza} -T -L 5 --icons --group-directories-first"; │
│ du = "${getExe dust}"; │
│ gitroot = "cd (git rev-parse --show-toplevel)"; │
│ + gitedit = "cd (git rev-parse --show-toplevel); nvim -c 'Telescope find_file │
│ s'; cd -"; │
│ }; │
│ shellAbbrs = { │
│ f = "cd $FLAKE"; │
│ - fe = "$EDITOR $FLAKE"; │
│ + fe = "$EDITOR (git rev-parse --show-toplevel) -c 'Telescope find_files'"; │
│ │
│ nswitch = "${getExe nh} os switch"; │
│ }; │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...onsole/shell/fish/aliases.nix ───┐
│ diff --git a/modules/home/console/shell/fish │
│ /aliases.nix b/modules/home/console/shell/fi │
│ sh/aliases.nix │
│ index bf6494c..e8bfedf 100644 │
│ --- a/modules/home/console/shell/fish/aliase │
│ s.nix │
│ +++ b/modules/home/console/shell/fish/aliase │
│ s.nix │
│ @@ -13,10 +13,11 @@ in { │
│ lst = "${getExe eza} -T -L 5 --icons │
│ --group-directories-first"; │
│ du = "${getExe dust}"; │
│ gitroot = "cd (git rev-parse --show-t │
│ oplevel)"; │
│ + gitedit = "cd (git rev-parse --show-t │
│ oplevel); nvim -c 'Telescope find_files'; cd │
│ -"; │
│ }; │
│ shellAbbrs = { │
│ f = "cd $FLAKE"; │
│ - fe = "$EDITOR $FLAKE"; │
│ + fe = "$EDITOR (git rev-parse --show-t │
│ oplevel) -c 'Telescope find_files'"; │
│ │
│ nswitch = "${getExe nh} os switch"; │
│ }; │
└──────────────────────────────────────────────┘
┌─ modules/home/console/shell/fish/binds.nix ────────────────────────────────┐
│ diff --git a/modules/home/console/shell/fish/binds.nix b/modules/home/console/shel │
│ l/fish/binds.nix │
│ index 3d35402..8fb9f74 100644 │
│ --- a/modules/home/console/shell/fish/binds.nix │
│ +++ b/modules/home/console/shell/fish/binds.nix │
│ @@ -2,7 +2,7 @@ │
│ programs.fish = { │
│ functions = { │
│ fish_user_key_bindings = '' │
│ - bind --preset -M insert \cf nvim '+Telescope find_files' $FLAKE │
│ + bind --preset -M insert \cf gitedit │
│ bind --preset -M insert \ec fzf_cd_widget │
│ ''; │
│ }; │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ .../console/shell/fish/binds.nix ───┐
│ diff --git a/modules/home/console/shell/fish │
│ /binds.nix b/modules/home/console/shell/fish │
│ /binds.nix │
│ index 3d35402..8fb9f74 100644 │
│ --- a/modules/home/console/shell/fish/binds. │
│ nix │
│ +++ b/modules/home/console/shell/fish/binds. │
│ nix │
│ @@ -2,7 +2,7 @@ │
│ programs.fish = { │
│ functions = { │
│ fish_user_key_bindings = '' │
│ - bind --preset -M insert \cf nvim '+ │
│ Telescope find_files' $FLAKE │
│ + bind --preset -M insert \cf gitedit │
│ bind --preset -M insert \ec fzf_cd_ │
│ widget │
│ ''; │
│ }; │
└──────────────────────────────────────────────┘
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET