0.46.0
版本发布时间: 2024-01-23 22:55:12
junegunn/fzf最新发布版本:v0.55.0(2024-08-29 16:13:56)
- Added two new events
-
result
- triggered when the filtering for the current query is complete and the result list is ready -
resize
- triggered when the terminal size is changed
-
- fzf now exports the following environment variables to the child processes
Variable Description FZF_LINES
Number of lines fzf takes up excluding padding and margin FZF_COLUMNS
Number of columns fzf takes up excluding padding and margin FZF_TOTAL_COUNT
Total number of items FZF_MATCH_COUNT
Number of matched items FZF_SELECT_COUNT
Number of selected items FZF_QUERY
Current query string FZF_PROMPT
Prompt string FZF_ACTION
The name of the last action performed - This allows you to write sophisticated transformations like so
# Script to dynamically resize the preview window transformer=' # 1 line for info, another for prompt, and 2 more lines for preview window border lines=$(( FZF_LINES - FZF_MATCH_COUNT - 4 )) if [[ $FZF_MATCH_COUNT -eq 0 ]]; then echo "change-preview-window:hidden" elif [[ $lines -gt 3 ]]; then echo "change-preview-window:$lines" elif [[ $FZF_PREVIEW_LINES -ne 3 ]]; then echo "change-preview-window:3" fi ' seq 10000 | fzf --preview 'seq {} 10000' --preview-window up \ --bind "result:transform:$transformer" \ --bind "resize:transform:$transformer"
- And we're phasing out
{fzf:prompt}
and{fzf:action}
- This allows you to write sophisticated transformations like so
- Changed mattn/go-runewidth dependency to rivo/uniseg for accurate results
- Set
--ambidouble
if your terminal displays ambiguous width characters (e.g. box-drawing characters for borders) as 2 columns -
RUNEWIDTH_EASTASIAN=1
is still respected for backward compatibility, but it's recommended that you use this new option instead
- Set
- Bug fixes
1、 fzf-0.46.0-darwin_amd64.zip 1.47MB
2、 fzf-0.46.0-darwin_arm64.zip 1.41MB
3、 fzf-0.46.0-freebsd_amd64.tar.gz 1.4MB
4、 fzf-0.46.0-linux_amd64.tar.gz 1.41MB
5、 fzf-0.46.0-linux_arm64.tar.gz 1.32MB
6、 fzf-0.46.0-linux_armv5.tar.gz 1.36MB
7、 fzf-0.46.0-linux_armv6.tar.gz 1.36MB
8、 fzf-0.46.0-linux_armv7.tar.gz 1.35MB
9、 fzf-0.46.0-linux_loong64.tar.gz 1.34MB
10、 fzf-0.46.0-linux_ppc64le.tar.gz 1.32MB
11、 fzf-0.46.0-linux_s390x.tar.gz 1.38MB
12、 fzf-0.46.0-openbsd_amd64.tar.gz 1.4MB
13、 fzf-0.46.0-windows_amd64.zip 1.58MB
14、 fzf-0.46.0-windows_arm64.zip 1.47MB
15、 fzf-0.46.0-windows_armv5.zip 1.53MB
16、 fzf-0.46.0-windows_armv6.zip 1.53MB
17、 fzf-0.46.0-windows_armv7.zip 1.52MB
18、 fzf_0.46.0_checksums.txt 1.59KB