Accepting request 1083792 from utilities
- Update to version 0.40.0: - Added `zero` event that is triggered when there's no match ```sh # Reload the candidate list when there's no match echo $RANDOM | fzf --bind 'zero:reload(echo $RANDOM)+clear-query' --height 3 ``` - New actions - Added `track` action which makes fzf track the current item when the search result is updated. If the user manually moves the cursor, or the item is not in the updated search result, tracking is automatically disabled. Tracking is useful when you want to see the surrounding items by deleting the query string. ```sh # Narrow down the list with a query, point to a command, # and hit CTRL-T to see its surrounding commands. export FZF_CTRL_R_OPTS=" --preview 'echo {}' --preview-window up:3:hidden:wrap --bind 'ctrl-/:toggle-preview' --bind 'ctrl-t:track+clear-query' --bind 'ctrl-y:execute-silent(echo -n {2..} | pbcopy)+abort' --color header:italic --header 'Press CTRL-Y to copy command into clipboard'" ``` - Added `change-header(...)` - Added `transform-header(...)` - Added `toggle-track` action - Fixed `--track` behavior when used with `--tac` - However, using `--track` with `--tac` is not recommended. The resulting behavior can be very confusing. - Bug fixes and improvements OBS-URL: https://build.opensuse.org/request/show/1083792 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fzf?expand=0&rev=33
This commit is contained in:
commit
30578b5382
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ac665ac269eca320ca9268227142f01b10ad5d25364ff274658b5a9f709a7259
|
|
||||||
size 235093
|
|
3
fzf-0.40.0.tar.gz
Normal file
3
fzf-0.40.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9597f297a6811d300f619fff5aadab8003adbcc1566199a43886d2ea09109a65
|
||||||
|
size 236930
|
34
fzf.changes
34
fzf.changes
@ -1,3 +1,37 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Apr 30 21:45:37 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Update to version 0.40.0:
|
||||||
|
- Added `zero` event that is triggered when there's no match
|
||||||
|
```sh
|
||||||
|
# Reload the candidate list when there's no match
|
||||||
|
echo $RANDOM | fzf --bind 'zero:reload(echo $RANDOM)+clear-query' --height 3
|
||||||
|
```
|
||||||
|
- New actions
|
||||||
|
- Added `track` action which makes fzf track the current item when the
|
||||||
|
search result is updated. If the user manually moves the cursor, or the
|
||||||
|
item is not in the updated search result, tracking is automatically
|
||||||
|
disabled. Tracking is useful when you want to see the surrounding items
|
||||||
|
by deleting the query string.
|
||||||
|
```sh
|
||||||
|
# Narrow down the list with a query, point to a command,
|
||||||
|
# and hit CTRL-T to see its surrounding commands.
|
||||||
|
export FZF_CTRL_R_OPTS="
|
||||||
|
--preview 'echo {}' --preview-window up:3:hidden:wrap
|
||||||
|
--bind 'ctrl-/:toggle-preview'
|
||||||
|
--bind 'ctrl-t:track+clear-query'
|
||||||
|
--bind 'ctrl-y:execute-silent(echo -n {2..} | pbcopy)+abort'
|
||||||
|
--color header:italic
|
||||||
|
--header 'Press CTRL-Y to copy command into clipboard'"
|
||||||
|
```
|
||||||
|
- Added `change-header(...)`
|
||||||
|
- Added `transform-header(...)`
|
||||||
|
- Added `toggle-track` action
|
||||||
|
- Fixed `--track` behavior when used with `--tac`
|
||||||
|
- However, using `--track` with `--tac` is not recommended. The resulting
|
||||||
|
behavior can be very confusing.
|
||||||
|
- Bug fixes and improvements
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 19 04:26:40 UTC 2023 - Luciano Santos <luc14n0@opensuse.org>
|
Wed Apr 19 04:26:40 UTC 2023 - Luciano Santos <luc14n0@opensuse.org>
|
||||||
|
|
||||||
|
2
fzf.spec
2
fzf.spec
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
%global _lto_cflags %nil
|
%global _lto_cflags %nil
|
||||||
Name: fzf
|
Name: fzf
|
||||||
Version: 0.39.0
|
Version: 0.40.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A command-line fuzzy finder
|
Summary: A command-line fuzzy finder
|
||||||
License: MIT
|
License: MIT
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:f5a122d95ecb7f324e3a941cf2fd1923e1dd894f9122ec3641fafc9e987721b7
|
oid sha256:92d2844b0f3fdf45a8fe8c9f448b5fb1c5935857b6dd00943af04bac1fc1f1b4
|
||||||
size 1656514
|
size 1642794
|
||||||
|
Loading…
Reference in New Issue
Block a user