Export FZF_CURRENT_ITEM to child processes (#4803)

Close #4802
This commit is contained in:
Junegunn Choi
2026-05-23 22:28:03 +09:00
committed by GitHub
parent 677e854850
commit de1fca99d5
4 changed files with 9 additions and 2 deletions
+1
View File
@@ -4,6 +4,7 @@ CHANGELOG
0.73.0
------
- Timer-driven `every(N)` event for `--bind`, where `N` is seconds (fractional, floored to `0.01`). Ticks that overlap an in-flight action are coalesced, so a slow `reload` cannot accumulate a backlog.
- New `FZF_CURRENT_ITEM` environment variable exported to child processes, holding the text of the current item. Useful on shells where quoting `{}` is awkward (e.g. PowerShell on Windows). Unset when the list is empty (#4802).
- New `FZF_IDLE_TIME` (whole seconds) and `FZF_IDLE_TIME_MS` (milliseconds) environment variables exported to child processes, holding the elapsed time since the last user activity. Pair with `every(N)` to build idle-based behavior such as auto-accept or auto-quit (#1211).
```sh
# Live process list; --track --id-nth 2 keeps the cursor on the same PID across reloads