Commit Graph

357 Commits (d9c028c9343089f4cafb627e50e8bfc52fb8aea3)

Author SHA1 Message Date
Junegunn Choi c54ad82e8d
Clarify that --nth applies after --with-nth transformation
Close #3873
4 months ago
Junegunn Choi e2401aca68
Add 'offset-middle' action 4 months ago
Junegunn Choi 02634d404d
Remove {fzf:query} from man page 4 months ago
Junegunn Choi ed12925f7d
--sync: Suppress initial render also when focus event is bound 4 months ago
Junegunn Choi c4a9ccd6af
0.53.0 4 months ago
Junegunn Choi 7dc9e14874
Update docs 4 months ago
Junegunn Choi dc73fba188
[man] Clarification on --scheme options 5 months ago
Junegunn Choi 93bbb3032d
Add --tail=NUM to limit the number of items to keep in memory 5 months ago
Junegunn Choi 41bcbe342f
Revert "An '--expect' key should execute actions bound to the key"
To be backward compatible.

Close #3829
5 months ago
Junegunn Choi 12630b124d
Make --tmux argument optional 5 months ago
Junegunn Choi 2f51eb2b41
Different marker for the first and last line of multi-line entries
Can be configured via `--marker-multi-line`
5 months ago
Junegunn Choi 2a039ab746
Describe exit code 126 5 months ago
Junegunn Choi 7e9a0fcdbd
Change default --scroll-off to 3 5 months ago
Junegunn Choi da500a358f
Use bold bar as the default marker 5 months ago
Junegunn Choi a90426b7ca
Add print(...) action 5 months ago
Junegunn Choi 0cadf70072
Update the summary 5 months ago
Junegunn Choi 076b3d0a9a
Embed man page in the binary and show it on 'fzf --man' 5 months ago
Junegunn Choi 7b0c9e04d3
Change default marker 5 months ago
Junegunn Choi aee417c46a
Respect $NO_COLOR environment variable
Close #1762
5 months ago
Junegunn Choi 04db44067d
Implement multi-line display of multi-line items 5 months ago
Junegunn Choi 5b204c54f9
Change default pointer and marker character
* Pointer: '▌'
* Marker: '▏'

They will still be set to '>' if `--no-unicode` is given.

Reasons:
* They look okay
* They work better with multi-line items (WIP)
5 months ago
Junegunn Choi 83b6033906 Add --tmux option to replace fzf-tmux script 5 months ago
LangLangBart 030428ba43
docs: update zsh integration instructions (#3794) 5 months ago
Junegunn Choi 6432f00f0d
0.52.1 5 months ago
LangLangBart 07880ca441
chore: Update flags to include long-form options for case (#3785) 5 months ago
Junegunn Choi bcda25a513
0.52.0 5 months ago
Junegunn Choi af65aa298a
Add color names: selected-{fg,bg,hl} 5 months ago
Junegunn Choi 0952b2dfd4
Rename --cursor-line to --highlight-line 5 months ago
Junegunn Choi c5fb0c43f9
Add --cursor-line to highlight the whole current line
Similar to 'set cursorline' of Vim.
5 months ago
Junegunn Choi 9e4780510e
Add current-{fg,bg,hl} as synonyms for {fg,bg,hl}+ 5 months ago
Junegunn Choi 5669f48343
Do not enable delayed expansion mode when running cmd.exe
And simplify the argument escaping code. Fix #3764.

This may breaks some existing use cases, but the mode causes too much
trouble when escaping arguments and it makes some things not possible.

  # Now you can pass special characters to rg process without any escaping problems: &|<>()@^%!
  fzf --ansi --disabled --bind "change:reload:rg --column --line-number --no-heading --color=always --smart-case -- {q}"

  # No sudden expansion of the arguments on '!'
  fzf --disabled --preview "echo {q} {n} {}" --query "&|<>()@^%!" --prompt "&|<>()@^%!"
6 months ago
Junegunn Choi bf184449bc
Count $FZF_CLICK_HEADER_LINE from top to bottom
Regardless of `--layout`.

https://github.com/junegunn/fzf/pull/3768#issuecomment-2094806558
6 months ago
Kuremu 7b98c2c653
Add click-header event for reporting clicks within header (#3768)
Sets $FZF_CLICK_HEADER_LINE and $FZF_CLICK_HEADER_COLUMN env vars with
coordinates of the last click inside and relative to the header and
fires click-header event.

Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
6 months ago
Junegunn Choi 260a65b0fb
0.51.0 6 months ago
Junegunn Choi 2665580120
Add $FZF_POS environment variable
Close #2175
Close #3753
6 months ago
Junegunn Choi a4391aeedd
Add --with-shell for shelling out with different command and flags (#3746)
Close #3732
6 months ago
Junegunn Choi 608232568b
Add 'change-multi' action
Close #3754
6 months ago
Junegunn Choi d8bfb6712d
Remove invalid 'result' event when using --sync option
When the search for the initial query doesn't finish immediately
fzf would trigger an invalid 'result' event for an empty query.

  seq 100 | fzf --query 99 --bind result:accept --sync
    # Prints 99

  seq 1000000 | fzf --query 99 --bind result:accept --sync
    # Should print 99, but fzf would print 1
6 months ago
Junegunn Choi f97d275413
0.50.0 6 months ago
Junegunn Choi fd1ba46f77
Export $FZF_KEY environment variable to child processes
It's the name of the last key pressed.

Related #3412
6 months ago
Junegunn Choi a4745626dd
Add jump and jump-cancel events
Close #3412

    # Default behavior
    fzf --bind space:jump

    # Same as jump-accept action
    fzf --bind space:jump,jump:accept

    # Accept on jump, abort on cancel
    fzf --bind space:jump,jump:accept,jump-cancel:abort

    # Change header on jump-cancel
    fzf --bind 'space:change-header(Type jump label)+jump,jump-cancel:change-header:Jump cancelled'
6 months ago
Junegunn Choi 62963dcefd
0.49.0 7 months ago
Junegunn Choi 8a2df79711
Do not hide separator by default on --info=inline-right|hidden 7 months ago
Matthieu Cneude f625c5aabe
Add environment variables: FZF_{BORDER,PREVIEW}_LABEL (#3693)
The environment variable get the value of the preview label, even if it
has been updated with an action. It can be useful to track the label of
the preview and be able to switch between previews using only one
binding.

Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
7 months ago
Junegunn Choi 8a74976c1f
Add track-current, untrack-current, and toggle-track-current (#3699)
Close #3691
7 months ago
Junegunn Choi d579e335b5
0.48.1 7 months ago
Junegunn Choi 091b7eacba
0.48.0 7 months ago
Junegunn Choi e74b1251c0
Embed shell integration scripts in fzf binary (`--bash` / `--zsh` / `--fish`) (#3675)
This simplifies the distribution, and the users are less likely to have
problems caused by using incompatible scripts and binaries.

    # Set up fzf key bindings and fuzzy completion
    eval "$(fzf --bash)"

    # Set up fzf key bindings and fuzzy completion
    eval "$(fzf --zsh)"

    # Set up fzf key bindings
    fzf --fish | source
7 months ago
Junegunn Choi d282a1649d
Add walker options and replace 'find' with the built-in walker (#3649) 7 months ago
Junegunn Choi 98ee5e651a
0.47.0 7 months ago