diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-10-04 22:50:33 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-10-09 00:17:00 +0900 |
| commit | 9ace1351ffecc88b7b7e459bef54fa95dbcf5ad7 (patch) | |
| tree | d457577004cb0ef1356c99c759c52eb769ed9fa6 /CHANGELOG.md | |
| parent | e1de29bc40c5a117ef6f6c37b37d16c1d89baa42 (diff) | |
| download | fzf-9ace1351ffecc88b7b7e459bef54fa95dbcf5ad7.tar.gz | |
ADD $FZF_DIRECTION
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 78e7938c..e845abed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -132,6 +132,20 @@ fzf --gutter ' ' --color gutter:reverse As noted above, the `--gutter-raw CHAR` option was also added for customizing the gutter column in raw mode. +### Added environment variable + +`$FZF_DIRECTION` is now exported to child processes, indicating the list direction of the current layout. + +- `up` for the default layout +- `down` for `reverse` or `reverse-list` + +This simplifies writing transform actions involving layout-dependent actions +like `{up,down}-match`, `{up,down}-selected`, and `toggle+{up,down}`. + +```sh +fzf --raw --bind 'result:first+transform:[[ $FZF_RAW = 0 ]] && echo $FZF_DIRECTION-match' +``` + ### Breaking changes #### Hiding the gutter column |
