From 0e5a3fa29a7ded78c9dfb17d28a63e6a59858324 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Tue, 27 Aug 2024 10:42:32 +0200 Subject: [PATCH] notes: fix script, use pkgs instead of PATH --- pkgs/notes.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/notes.nix b/pkgs/notes.nix index 2932c648..5d845d99 100644 --- a/pkgs/notes.nix +++ b/pkgs/notes.nix @@ -1,19 +1,19 @@ self: with self; '' # - # ack recursively through notes + # rg recursively through notes # - # uses ack: https://beyondgrep.com + # uses ripgrep: https://github.com/BurntSushi/ripgrep NOTESDIR=~/pub.solar-nc/Notes - ACK_PREFIX="ack --files-with-matches" + ACK_PREFIX="${rg}/bin/rg --files-with-matches" cd $NOTESDIR || exit file="$( FZF_DEFAULT_COMMAND="$ACK_PREFIX '$1'" \ - fzf --sort --preview="[[ ! -z {} ]] && ack --colour --context 5 {q} {}" \ + ${fzf}/bin/fzf --sort --preview="[[ ! -z {} ]] && ack --colour --context 5 {q} {}" \ --phony -q "$1" \ --bind "change:reload:$ACK_PREFIX {q}" \ --preview-window="70%:wrap" )" && echo "opening $file" && - bat --theme=TwoDark "$file" + ${bat}/bin/bat --theme=TwoDark "$file" ''