fpf-cli 1.6.0 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +2 -0
  2. package/fpf +8 -5
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -36,6 +36,8 @@ By default, `fpf` auto-detects your package manager.
36
36
 
37
37
  On macOS, default auto mode uses both `brew` and `bun` together.
38
38
 
39
+ On macOS with no query (`fpf`), startup uses a lighter default search for `brew` and `bun` so you still get installable packages without the huge initial catalog load.
40
+
39
41
  On Linux, default auto mode uses your distro manager plus installed cross-platform managers (`snap`, `flatpak`, `brew`, `npm`, `bun`).
40
42
 
41
43
  On Windows (Git Bash / MSYS / Cygwin), default auto mode uses installed Windows managers (`winget`, `choco`, `scoop`) plus `npm` and `bun`.
package/fpf CHANGED
@@ -618,11 +618,14 @@ manager_search_entries() {
618
618
 
619
619
  if [[ -z "${effective_query}" ]]; then
620
620
  case "${manager}" in
621
- apt|dnf|pacman|zypper|emerge|winget|choco|scoop|snap|flatpak|npm|bun)
621
+ apt|dnf|pacman|zypper|emerge|choco|scoop|snap|flatpak)
622
622
  effective_query="a"
623
623
  ;;
624
- brew)
625
- effective_query=""
624
+ brew|npm|bun)
625
+ effective_query="aa"
626
+ ;;
627
+ winget)
628
+ effective_query="a"
626
629
  ;;
627
630
  esac
628
631
  fi
@@ -758,7 +761,7 @@ manager_search_entries() {
758
761
  fi
759
762
  ;;
760
763
  npm)
761
- npm search "${effective_query}" --searchlimit=500 --parseable 2>/dev/null |
764
+ npm search "${effective_query}" --searchlimit=200 --parseable 2>/dev/null |
762
765
  awk -F'\t' 'NF >= 2 { print $1 "\t" $2 }'
763
766
  ;;
764
767
  bun)
@@ -767,7 +770,7 @@ manager_search_entries() {
767
770
  bun search "${effective_query}" 2>/dev/null |
768
771
  awk 'NR > 1 && NF > 0 { name=$1; $1=""; sub(/^[[:space:]]+/, "", $0); if ($0 == "") $0="-"; print name "\t" $0 }'
769
772
  elif command_exists npm; then
770
- npm search "${effective_query}" --searchlimit=500 --parseable 2>/dev/null |
773
+ npm search "${effective_query}" --searchlimit=200 --parseable 2>/dev/null |
771
774
  awk -F'\t' 'NF >= 2 { print $1 "\t" $2 }'
772
775
  fi
773
776
  } || true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fpf-cli",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "Cross-platform fuzzy package finder powered by fzf",
5
5
  "bin": {
6
6
  "fpf": "fpf"