Skip to content

Commit

Permalink
0.37.0
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Jan 24, 2023
1 parent 95a7661 commit 2023012
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ CHANGELOG
- `focus` - Triggered when the focus changes due to a vertical cursor
movement or a search result update
```sh
fzf --bind 'focus:transform-preview-label:echo [ {} ]' --border --preview 'cat {}'
fzf --bind 'focus:transform-preview-label:echo [ {} ]' --preview 'cat {}'
# Any action bound to the event runs synchronously and thus can make the interface sluggish
# e.g. lolcat isn't one of the fastest programs, and every cursor movement in
# fzf will be noticeably affected by its execution time
fzf --bind 'focus:transform-preview-label:echo [ {} ] | lolcat -f' --border --preview 'cat {}'
fzf --bind 'focus:transform-preview-label:echo [ {} ] | lolcat -f' --preview 'cat {}'

This comment has been minimized.

Copy link
@mrjrieke

This comment has been minimized.

Copy link
@junegunn

junegunn Jan 25, 2023

Author Owner

Thanks for sharing. It looks like there are also C and Rust implementations of lolcat which should be much faster. However, the point I'm making here is that the user should be aware of the consequences of wiring slow external programs to focus.

# Beware not to introduce an infinite loop
seq 10 | fzf --bind 'focus:up' --cycle
Expand Down
2 changes: 1 addition & 1 deletion install
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -u

version=0.36.0
version=0.37.0
auto_completion=
key_bindings=
update_config=2
Expand Down
2 changes: 1 addition & 1 deletion install.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$version="0.36.0"
$version="0.37.0"

$fzf_base=Split-Path -Parent $MyInvocation.MyCommand.Definition

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/junegunn/fzf/src/protector"
)

var version string = "0.36"
var version string = "0.37"
var revision string = "devel"

func main() {
Expand Down
2 changes: 1 addition & 1 deletion man/man1/fzf-tmux.1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
..
.TH fzf-tmux 1 "Jan 2023" "fzf 0.36.0" "fzf-tmux - open fzf in tmux split pane"
.TH fzf-tmux 1 "Jan 2023" "fzf 0.37.0" "fzf-tmux - open fzf in tmux split pane"

.SH NAME
fzf-tmux - open fzf in tmux split pane
Expand Down
6 changes: 3 additions & 3 deletions man/man1/fzf.1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
..
.TH fzf 1 "Jan 2023" "fzf 0.36.0" "fzf - a command-line fuzzy finder"
.TH fzf 1 "Jan 2023" "fzf 0.37.0" "fzf - a command-line fuzzy finder"

.SH NAME
fzf - a command-line fuzzy finder
Expand Down Expand Up @@ -967,12 +967,12 @@ Triggered when the focus changes due to a vertical cursor movement or a search
result update.

e.g.
\fBfzf --bind 'focus:transform-preview-label:echo [ {} ]' --border --preview 'cat {}'
\fBfzf --bind 'focus:transform-preview-label:echo [ {} ]' --preview 'cat {}'

# Any action bound to the event runs synchronously and thus can make the interface sluggish
# e.g. lolcat isn't one of the fastest programs, and every cursor movement in
# fzf will be noticeably affected by its execution time
fzf --bind 'focus:transform-preview-label:echo [ {} ] | lolcat -f' --border --preview 'cat {}'
fzf --bind 'focus:transform-preview-label:echo [ {} ] | lolcat -f' --preview 'cat {}'

# Beware not to introduce an infinite loop
seq 10 | fzf --bind 'focus:up' --cycle\fR
Expand Down

0 comments on commit 2023012

Please sign in to comment.