fpf-cli 1.6.42 → 1.6.44

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 +1 -1
  2. package/fpf +4 -4
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -102,7 +102,7 @@ Installed packages are marked with `*` in the result list.
102
102
  - Set `FPF_LOADING_INDICATOR=0` to disable the pre-search loading indicator.
103
103
  - `FPF_RELOAD_MIN_CHARS`: minimum query length before live reload (default `2`)
104
104
  - `FPF_RELOAD_DEBOUNCE`: reload debounce seconds (default `0.12`)
105
- - `FPF_DYNAMIC_RELOAD_BYPASS_QUERY_CACHE=1`: force uncached reload queries (legacy behavior); default `0` uses query cache during reloads
105
+ - `FPF_DYNAMIC_RELOAD_BYPASS_QUERY_CACHE=1`: bypass query cache during live reloads (default `1` for freshest results); set `0` to prefer cached reloads
106
106
  - `FPF_SEARCH_CATALOG_ASYNC_PREWARM`: async warmup for `apt`/`brew` catalog caches during interactive reload/search paths (default `1`, set `0` for synchronous legacy behavior)
107
107
  - `FPF_ENABLE_QUERY_CACHE`: `auto` (default), `1`, or `0` (`auto` enables query cache for `apt`, `brew`, `pacman`, and `bun`)
108
108
  - `FPF_QUERY_CACHE_TTL`: default query-cache TTL seconds for heavy manager caches (default `300`)
package/fpf CHANGED
@@ -3,7 +3,7 @@
3
3
  set -euo pipefail
4
4
 
5
5
  SCRIPT_NAME="fpf"
6
- SCRIPT_VERSION="1.6.42"
6
+ SCRIPT_VERSION="1.6.44"
7
7
  TMP_ROOT="${TMPDIR:-/tmp}/fpf"
8
8
  SESSION_TMP_ROOT=""
9
9
  HELP_FILE=""
@@ -81,7 +81,7 @@ query_cache_ttl_seconds_for_manager() {
81
81
  }
82
82
 
83
83
  dynamic_reload_query_cache_bypass_value() {
84
- local bypass_setting="${FPF_DYNAMIC_RELOAD_BYPASS_QUERY_CACHE:-0}"
84
+ local bypass_setting="${FPF_DYNAMIC_RELOAD_BYPASS_QUERY_CACHE:-1}"
85
85
 
86
86
  bypass_setting="$(trim_whitespace "${bypass_setting}")"
87
87
  bypass_setting="$(printf "%s" "${bypass_setting}" | tr '[:upper:]' '[:lower:]')"
@@ -2483,7 +2483,7 @@ manager_search_entries_uncached() {
2483
2483
  apt)
2484
2484
  if search_entries_from_catalog_cache "${manager}" "${effective_query}"; then
2485
2485
  :
2486
- elif search_catalog_async_prewarm_enabled; then
2486
+ elif [[ -n "${query}" ]] && search_catalog_async_prewarm_enabled; then
2487
2487
  start_search_catalog_prewarm_async "${manager}"
2488
2488
  apt-cache search -- "${effective_query}" 2>/dev/null |
2489
2489
  awk -F' - ' '{ name=$1; desc=$2; gsub(/^[[:space:]]+|[[:space:]]+$/, "", name); if (desc == "") desc="-"; print name "\t" desc }'
@@ -2551,7 +2551,7 @@ manager_search_entries_uncached() {
2551
2551
  brew)
2552
2552
  if search_entries_from_catalog_cache "${manager}" "${effective_query}"; then
2553
2553
  exact_match_entry "${manager}" "${query}"
2554
- elif search_catalog_async_prewarm_enabled; then
2554
+ elif [[ -n "${query}" ]] && search_catalog_async_prewarm_enabled; then
2555
2555
  start_search_catalog_prewarm_async "${manager}"
2556
2556
  {
2557
2557
  brew search "${effective_query}" 2>/dev/null |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fpf-cli",
3
- "version": "1.6.42",
3
+ "version": "1.6.44",
4
4
  "description": "Cross-platform fuzzy package finder powered by fzf",
5
5
  "bin": {
6
6
  "fpf": "fpf"