diff options
Diffstat (limited to 'mac/.local/bin/rgafiles')
| -rwxr-xr-x | mac/.local/bin/rgafiles | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mac/.local/bin/rgafiles b/mac/.local/bin/rgafiles index ea02fc9..b7af594 100755 --- a/mac/.local/bin/rgafiles +++ b/mac/.local/bin/rgafiles @@ -32,7 +32,7 @@ search_term() { # Construct the preview command preview_cmd=$(printf "rga %s --pretty --context 10 '%s' {}" "$case_flag" "$*") - rga_output=$(rga --follow --no-ignore --hidden --text --max-count=1 ${case_flag:+$case_flag} --files-with-matches --no-messages --glob '!**/.git/*' "$*") + rga_output=$(rga --follow --no-ignore --hidden --text --max-count=1 ${case_flag:+$case_flag} --files-with-matches --no-messages --glob '!**/.git/*' --glob '!**/.next/*' --glob '!**/node_modules/*' "$*") # Use fzf to select files files=$(echo "$rga_output" | fzf-tmux +m --preview="$preview_cmd" --reverse --multi --select-1 --exit-0) || return 1 @@ -64,7 +64,7 @@ list_or_open_project_files() { rga_output="" for path in $project_paths; do if [ -d "$path" ]; then - rga_result=$(rga --follow --no-ignore --hidden --text --max-count=1 --files-with-matches --no-messages --glob '!**/.git/*' "$project_tag" "$path") + rga_result=$(rga --follow --no-ignore --hidden --text --max-count=1 --files-with-matches --no-messages --glob '!**/.git/*' --glob '!**/.next/*' --glob '!**/node_modules/*' "$project_tag" "$path") rga_output="$rga_output $rga_result" fi done |
