diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-01-29 11:53:15 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-01-29 11:53:15 +0900 |
| commit | fb551cbe13aa969edd85f22eda4de65fd5a6c1b3 (patch) | |
| tree | e4088fc2545c1fb88698e0c47a8a2fd17ee56667 /ar/.local/bin/rgafiles | |
| parent | a79416f5eb2de2d9505704911dfca4b048157f2c (diff) | |
modified statusbar/sb-clock, modified statusbar/sb-forecast, created plugins/auto-tag.lua
Diffstat (limited to 'ar/.local/bin/rgafiles')
| -rwxr-xr-x | ar/.local/bin/rgafiles | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/ar/.local/bin/rgafiles b/ar/.local/bin/rgafiles index e8b5e72..1a396df 100755 --- a/ar/.local/bin/rgafiles +++ b/ar/.local/bin/rgafiles @@ -36,7 +36,19 @@ 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 '!**/node_modules/*' \ + --glob '!**/.next/*' \ + --glob '!**/dist/*' \ + --glob '!**/build/*' \ + --glob '!**/.cache/*' \ + --glob '!**/coverage/*' \ + --glob '!**/target/*' \ + --glob '!**/vendor/*' \ + --glob '!**/.venv/*' \ + --glob '!**/venv/*' \ + "$*") # Use fzf to select files files=$(echo "$rga_output" | fzf-tmux +m --preview="$preview_cmd" --reverse --multi --select-1 --exit-0) || return 1 @@ -68,7 +80,19 @@ 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 '!**/.cache/*' \ + --glob '!**/.git/*' \ + --glob '!**/.next/*' \ + --glob '!**/.venv/*' \ + --glob '!**/build/*' \ + --glob '!**/coverage/*' \ + --glob '!**/dist/*' \ + --glob '!**/node_modules/*' \ + --glob '!**/target/*' \ + --glob '!**/vendor/*' \ + --glob '!**/venv/*' \ + "$project_tag" "$path") rga_output="$rga_output $rga_result" fi done |
