Commit Graph

2682 Commits (master)
 

Author SHA1 Message Date
Junegunn Choi 767f1255ab
Make completion.bash load faster
* Reduce number of `__fzf_orig_completion < <(complete -p "$@" 2> /dev/null)`s
* Clean up options in fzf completion
* Remove telnet completion
2 days ago
Junegunn Choi fddbfe7b0e
Fix 'reload' not terminating closed standard input stream
Fix #3750
2 days ago
Junegunn Choi 4ab7fdc28e
Merge identical case clauses 2 days ago
Junegunn Choi e352b68878
Update Dockerfile to use Ubuntu 24.04
As we require Go 1.20 or above.
2 days ago
Junegunn Choi 207deeadba
Add -trimpath to build command 4 days ago
Cheng d18d92f925
Replace fmt.Errorf with no parameters with errors.New (#3747) 5 days ago
junegunn af3ce47c44 Deploying to master from @ junegunn/fzf@d8bfb6712d 🚀 6 days 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
7 days ago
Junegunn Choi f864f8b5f7
Respect $FZF_DEFAULT_OPTS_FILE in key bindings and completion (#3742)
Fix #3740
1 week ago
Junegunn Choi 31d72efba7
Describe how to build fzf from the latest source using brew 1 week ago
LangLangBart d169c951f3
fix: Move 'emulate' command outside interactive check (#3736) 1 week ago
Junegunn Choi 90d7e38909
[fzf-tmux] Replace `command -v` with `which`
`command -v fzf` prints `alias fzf=...` when `fzf` is an alias.

Fix #3730
1 week ago
hidewrong 938f23e429
Fix typo in comment (#3734)
Signed-off-by: hidewrong <hidewrong@outlook.com>
1 week ago
Junegunn Choi f97d275413
0.50.0 2 weeks ago
Junegunn Choi 3acb4ca90e
Fix streaming filter mode by not running reader callback concurrently
Close #3728
2 weeks ago
Junegunn Choi e86b81bbf5
Improve search performance by limiting the search scope
Find the last occurrence of the last character in the pattern and
perform the search algorithm only up to that point.

The effectiveness of this mechanism depends a lot on the shape of the
input and the pattern.
2 weeks ago
Junegunn Choi a5447b8b75
Improve search performance by pre-calculating bonus matrix
This gives yet another 5% boost.
2 weeks ago
Junegunn Choi 7ce6452d83
Improve search performance by pre-calculating character classes
This simple optmization can give more than 15% performance boost
in some scenarios.
2 weeks ago
junegunn 5643a306bd Deploying to master from @ junegunn/fzf@3c877c504b 🚀 2 weeks ago
Charlie Vieth 3c877c504b
Enable profiling options when 'pprof' tag is set (#2813)
This commit enables cpu, mem, block, and mutex profling of the FZF
executable. To support flushing the profiles at program exit it adds
util.AtExit to register "at exit" functions and mandates that util.Exit
is used instead of os.Exit to stop the program.

Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2 weeks ago
Junegunn Choi 892d1acccb
Fix tcell build 2 weeks ago
Junegunn Choi 1a9c282f76
Fix unit tests 2 weeks ago
Junegunn Choi fd1ba46f77
Export $FZF_KEY environment variable to child processes
It's the name of the last key pressed.

Related #3412
2 weeks 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'
2 weeks ago
dependabot[bot] 17bb7ad278
Bump golang.org/x/term from 0.18.0 to 0.19.0 (#3718)
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.18.0 to 0.19.0.
- [Commits](https://github.com/golang/term/compare/v0.18.0...v0.19.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 weeks ago
Junegunn Choi 152988c17b
[shell] Revert interactiveness checks for eval
So that there's no error even when the scripts are mistakenly evaluated
in non-interactive sessions.

  bash -c 'eval "$(fzf --bash)"; echo done'
  zsh -c 'eval "$(fzf --zsh)"; echo done'

* https://github.com/junegunn/fzf/pull/3675#issuecomment-2044860901
* f103aa4753
2 weeks ago
Junegunn Choi 4cd37fc02b
Disable line wrapping during rendering
Prevent unwanted line wraps that break the layout when the actual
display width of a character is different than expected.
3 weeks ago
LangLangBart 69b9d674a3
chore: Add new option in issue checklist and modify requirements (#3715) 3 weeks ago
junegunn bad8061547 Deploying to master from @ junegunn/fzf@62963dcefd 🚀 3 weeks ago
Junegunn Choi 62963dcefd
0.49.0 3 weeks ago
Junegunn Choi 68a35e4735
Do not trim CR on Windows when --read0 is set 3 weeks ago
Charlie Vieth 9b9ad77e1c
mod: update changes/fastwalk to v1.0.3 (#3709)
Update charlievieth/fastwalk to resolve issue #3706.
3 weeks ago
Junegunn Choi 118b4d4a01
[bash] Add -o nospace to dir completion options (#1987) 3 weeks ago
Junegunn Choi da14ab6f16
[bash] Remove -o default from dir completion options (#1987) 3 weeks ago
Junegunn Choi 09a4ca6ab5
[bash] Fix variable completion of directory-related commands
Fix #1987
3 weeks ago
Junegunn Choi 8a2df79711
Do not hide separator by default on --info=inline-right|hidden 3 weeks ago
Junegunn Choi c30e486b64
Further performance improvements by removing unnecessary copies 4 weeks ago
Junegunn Choi a575c0c54b
GitHub Actions: Use Go "1.20" 4 weeks ago
Junegunn Choi 77fe96ac0d
GitHub Actions: Use Go 1.20 4 weeks ago
Junegunn Choi 5234c3759a
Improve ingestion performance (by around 40%)
Summary
    fzf --sync --bind load:accept < 27M-lines ran
      1.16 ± 0.01 times faster than fzf-41b3511 --sync --bind load:accept < 27M-lines
      1.44 ± 0.01 times faster than fzf-0.48.1 --sync --bind load:accept < 27M-lines
4 weeks ago
Junegunn Choi 41b3511ad9
Improve ingestion performance (by around 20%) 4 weeks ago
Junegunn Choi 128e4a2e8d
[fish] Fix $dir in FZF_{CTRL_T,ALT_C}_COMMAND not evaluated
Fix #3705
4 weeks ago
junegunn 07ac90d798 Deploying to master from @ junegunn/fzf@7de87a9b2c 🚀 4 weeks ago
Emilio Vesprini 7de87a9b2c
[shell] Make ALT-C use the absolute path to the selected directory (#3688)
Rationale: this way the resulting cd command that ends up in the shell
history can be reused to get to the same location regardless of
the current working directory.

Co-authored-by: LangLangBart <92653266+LangLangBart@users.noreply.github.com>
4 weeks ago
Junegunn Choi dff865239a
[bash-completion] Make dynamic loader return 124 to retry completion
Close #3702
4 weeks ago
Junegunn Choi 07f8f70c5b
Fix flaky test case 4 weeks 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>
4 weeks ago
Junegunn Choi 8a74976c1f
Add track-current, untrack-current, and toggle-track-current (#3699)
Close #3691
4 weeks ago
Junegunn Choi b6bfd4a5cb
Fix typo in comment 1 month ago
Junegunn Choi 008fb9d258
Fix reload and reload-sync behaviors
https://github.com/junegunn/fzf/discussions/3696#discussioncomment-8915593
1 month ago