fpf-cli 1.6.64 → 1.6.66
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.
- package/README.md +3 -1
- package/bin/fpf-go-darwin-amd64 +0 -0
- package/bin/fpf-go-darwin-arm64 +0 -0
- package/bin/fpf-go-linux-amd64 +0 -0
- package/bin/fpf-go-linux-arm64 +0 -0
- package/bin/fpf-go-windows-amd64.exe +0 -0
- package/bin/fpf-go-windows-arm64.exe +0 -0
- package/package.json +1 -1
- package/fpf +0 -129
package/README.md
CHANGED
|
@@ -99,13 +99,15 @@ Installed packages are marked with `*` in the result list.
|
|
|
99
99
|
- If Flatpak is detected and Flathub is missing, `fpf` attempts `flatpak remote-add --if-not-exists --user flathub ...` automatically.
|
|
100
100
|
- Set `FPF_ASSUME_YES=1` to bypass confirmation prompts in non-interactive flows.
|
|
101
101
|
- `FPF_DYNAMIC_RELOAD`: `always` (default), `single`, or `never`
|
|
102
|
-
- Live reload uses `change:reload` by default for reliability
|
|
102
|
+
- Live reload uses `change:reload` by default for reliability.
|
|
103
|
+
- In auto multi-manager mode, typing (`change`) uses a fast manager subset (`apt`/`bun`-style) while `ctrl-r` triggers a full reload across all detected managers.
|
|
103
104
|
- Set `FPF_DYNAMIC_RELOAD_TRANSPORT=ipc` to opt into `--listen` + IPC query notifications on supported `fzf` builds.
|
|
104
105
|
- Startup now shows a DynamicProgress-style pre-search bar with concurrent per-manager task text + elapsed time.
|
|
105
106
|
- Set `FPF_LOADING_INDICATOR=0` to disable the pre-search loading indicator.
|
|
106
107
|
- `FPF_RELOAD_MIN_CHARS`: minimum query length before live reload (default `2`)
|
|
107
108
|
- `FPF_RELOAD_DEBOUNCE`: reload debounce seconds (default `0.12`)
|
|
108
109
|
- `FPF_DYNAMIC_RELOAD_BYPASS_QUERY_CACHE=1`: bypass query cache during live reloads (default `1` for freshest results); set `0` to prefer cached reloads
|
|
110
|
+
- `FPF_DYNAMIC_RELOAD_MANAGERS`: override typing (`change`) live-reload manager scope (examples: `all`, `apt,bun`, `npm`)
|
|
109
111
|
- `FPF_MULTI_MANAGER_SEARCH_TIMEOUT_MS`: cap per-manager search command time for multi-manager search/reload; default manager-specific caps favor responsiveness
|
|
110
112
|
- `FPF_SEARCH_TIMEOUT_<MANAGER>_MS`: per-manager timeout override in milliseconds (examples: `FPF_SEARCH_TIMEOUT_FLATPAK_MS=1500`, `FPF_SEARCH_TIMEOUT_NPM_MS=1000`)
|
|
111
113
|
- `FPF_BUN_ALLOW_NPM_FALLBACK_MULTI=1`: allow bun-to-npm fallback in multi-manager mode (default off to avoid duplicate/slow npm fanout)
|
package/bin/fpf-go-darwin-amd64
CHANGED
|
Binary file
|
package/bin/fpf-go-darwin-arm64
CHANGED
|
Binary file
|
package/bin/fpf-go-linux-amd64
CHANGED
|
Binary file
|
package/bin/fpf-go-linux-arm64
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/fpf
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
set -euo pipefail
|
|
4
|
-
|
|
5
|
-
resolve_script_path() {
|
|
6
|
-
local source_path="$1"
|
|
7
|
-
local source_dir=""
|
|
8
|
-
local link_target=""
|
|
9
|
-
|
|
10
|
-
while [[ -h "${source_path}" ]]; do
|
|
11
|
-
source_dir="$(cd -P "$(dirname "${source_path}")" && pwd)"
|
|
12
|
-
link_target="$(readlink "${source_path}")"
|
|
13
|
-
if [[ "${link_target}" == /* ]]; then
|
|
14
|
-
source_path="${link_target}"
|
|
15
|
-
else
|
|
16
|
-
source_path="${source_dir}/${link_target}"
|
|
17
|
-
fi
|
|
18
|
-
done
|
|
19
|
-
|
|
20
|
-
source_dir="$(cd -P "$(dirname "${source_path}")" && pwd)"
|
|
21
|
-
printf "%s/%s" "${source_dir}" "$(basename "${source_path}")"
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
main() {
|
|
25
|
-
local script_path=""
|
|
26
|
-
local script_dir=""
|
|
27
|
-
local uname_s=""
|
|
28
|
-
local uname_m=""
|
|
29
|
-
local goos=""
|
|
30
|
-
local goarch=""
|
|
31
|
-
local candidate=""
|
|
32
|
-
|
|
33
|
-
script_path="$(resolve_script_path "${BASH_SOURCE[0]}")"
|
|
34
|
-
script_dir="$(cd -P "$(dirname "${script_path}")" && pwd)"
|
|
35
|
-
if [[ "${FPF_SKIP_GO_BOOTSTRAP:-0}" == "1" ]]; then
|
|
36
|
-
case "${OSTYPE:-}" in
|
|
37
|
-
linux*)
|
|
38
|
-
uname_s="Linux"
|
|
39
|
-
;;
|
|
40
|
-
darwin*)
|
|
41
|
-
uname_s="Darwin"
|
|
42
|
-
;;
|
|
43
|
-
msys*|cygwin*|win32*)
|
|
44
|
-
uname_s="MINGW"
|
|
45
|
-
;;
|
|
46
|
-
*)
|
|
47
|
-
uname_s="$(uname -s 2>/dev/null || true)"
|
|
48
|
-
;;
|
|
49
|
-
esac
|
|
50
|
-
|
|
51
|
-
case "${HOSTTYPE:-${MACHTYPE:-}}" in
|
|
52
|
-
*x86_64*|*amd64*)
|
|
53
|
-
uname_m="x86_64"
|
|
54
|
-
;;
|
|
55
|
-
*aarch64*|*arm64*)
|
|
56
|
-
uname_m="arm64"
|
|
57
|
-
;;
|
|
58
|
-
*)
|
|
59
|
-
uname_m="$(uname -m 2>/dev/null || true)"
|
|
60
|
-
;;
|
|
61
|
-
esac
|
|
62
|
-
else
|
|
63
|
-
uname_s="$(uname -s 2>/dev/null || true)"
|
|
64
|
-
uname_m="$(uname -m 2>/dev/null || true)"
|
|
65
|
-
fi
|
|
66
|
-
|
|
67
|
-
case "${uname_s}" in
|
|
68
|
-
Linux)
|
|
69
|
-
goos="linux"
|
|
70
|
-
;;
|
|
71
|
-
Darwin)
|
|
72
|
-
goos="darwin"
|
|
73
|
-
;;
|
|
74
|
-
MINGW*|MSYS*|CYGWIN*)
|
|
75
|
-
goos="windows"
|
|
76
|
-
;;
|
|
77
|
-
*)
|
|
78
|
-
printf "fpf: unsupported OS '%s'\n" "${uname_s}" >&2
|
|
79
|
-
exit 1
|
|
80
|
-
;;
|
|
81
|
-
esac
|
|
82
|
-
|
|
83
|
-
case "${uname_m}" in
|
|
84
|
-
x86_64|amd64)
|
|
85
|
-
goarch="amd64"
|
|
86
|
-
;;
|
|
87
|
-
arm64|aarch64)
|
|
88
|
-
goarch="arm64"
|
|
89
|
-
;;
|
|
90
|
-
*)
|
|
91
|
-
goarch=""
|
|
92
|
-
;;
|
|
93
|
-
esac
|
|
94
|
-
|
|
95
|
-
if [[ -n "${goarch}" ]]; then
|
|
96
|
-
candidate="${script_dir}/bin/fpf-go-${goos}-${goarch}"
|
|
97
|
-
if [[ "${goos}" == "windows" ]]; then
|
|
98
|
-
candidate="${candidate}.exe"
|
|
99
|
-
fi
|
|
100
|
-
if [[ -x "${candidate}" ]]; then
|
|
101
|
-
export FPF_PACKAGE_JSON="${script_dir}/package.json"
|
|
102
|
-
exec "${candidate}" "$@"
|
|
103
|
-
fi
|
|
104
|
-
fi
|
|
105
|
-
|
|
106
|
-
for goarch in amd64 arm64; do
|
|
107
|
-
candidate="${script_dir}/bin/fpf-go-${goos}-${goarch}"
|
|
108
|
-
if [[ "${goos}" == "windows" ]]; then
|
|
109
|
-
candidate="${candidate}.exe"
|
|
110
|
-
fi
|
|
111
|
-
if [[ -x "${candidate}" ]]; then
|
|
112
|
-
export FPF_PACKAGE_JSON="${script_dir}/package.json"
|
|
113
|
-
exec "${candidate}" "$@"
|
|
114
|
-
fi
|
|
115
|
-
done
|
|
116
|
-
|
|
117
|
-
printf "fpf: missing packaged Go binary for %s/%s\n" "${goos}" "${uname_m}" >&2
|
|
118
|
-
printf "fpf: expected one of:\n" >&2
|
|
119
|
-
printf " %s/bin/fpf-go-%s-amd64\n" "${script_dir}" "${goos}" >&2
|
|
120
|
-
printf " %s/bin/fpf-go-%s-arm64\n" "${script_dir}" "${goos}" >&2
|
|
121
|
-
if [[ "${goos}" == "windows" ]]; then
|
|
122
|
-
printf " (with .exe suffix on Windows binaries)\n" >&2
|
|
123
|
-
fi
|
|
124
|
-
printf "fpf: run 'bash scripts/build-go-binaries.sh' to build local binaries.\n" >&2
|
|
125
|
-
exit 1
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
main "$@"
|