Commit Graph

2733 Commits (master)
 

Author SHA1 Message Date
junegunn daa602422d Deploying to master from @ junegunn/fzf@01e7668915 🚀 14 hours ago
Zhizhen He 01e7668915
chore: use strings.ReplaceAll (#3801) 1 day ago
Enno 0994d9c881
Make :FZF work in Vim from Git Bash (#3798)
* make :FZF work in Vim from Git Bash

Despite its title 'Calling fzf#run with a list as source fail (n)vim is used from git bash' the issue in 

https://github.com/junegunn/fzf/issues/3777

of running `:FZF` in Vim in Git Bash was apparently only fixed for Neovim in Git Bash on Windows 11, but not for Vim from Git Bash.

In view of this, replacing /C by ///C might be considered a universal fix.

This PR just proposes the patch in https://github.com/junegunn/fzf/issues/1983 that still seems open.

In view of the fourth item in the most recent 2.45.0 https://github.com/git-for-windows/build-extra/blob/main/ReleaseNotes.md#known-issues little seems to have changed regarding path conversion of arguments containing forward slashes

* prefer doubling slashed instead of generic env. var

If MSYS_NO_PATHCONV=1 is used, then all arguments are preserved, in particular possibly paths passed in s:command.
Therefore, only avoid converting `/C` from `cmd` to a path.
4 days ago
LangLangBart 030428ba43
docs: update zsh integration instructions (#3794) 5 days ago
Junegunn Choi 8a110e02b9
Fix tcell test case 5 days ago
Junegunn Choi 86d92c17c4
Refactor tui.TtyIn() 5 days ago
Junegunn Choi c4cc7891b4
Revert "Close handles to /dev/tty", instead reuse handles 5 days ago
Junegunn Choi 218843b9f1
Close handles to /dev/tty 5 days ago
Junegunn Choi d274d093af
Render UI directly to /dev/tty
See https://github.com/junegunn/fzf/discussions/3792

This allows us to separately capture the standard error from fzf and its
child processes, and there's less chance of user errors of redirecting
the error stream and hiding fzf.
5 days ago
Junegunn Choi 6432f00f0d
0.52.1 6 days ago
junegunn 4e9e842aa4 Deploying to master from @ junegunn/fzf@07880ca441 🚀 1 week ago
LangLangBart 07880ca441
chore: Update flags to include long-form options for case (#3785) 1 week ago
Junegunn Choi bcda25a513
0.52.0 2 weeks ago
Junegunn Choi 8256fcde15
Minor fixup 2 weeks ago
Junegunn Choi af65aa298a
Add color names: selected-{fg,bg,hl} 2 weeks ago
Junegunn Choi 6834d17844
[vim] Revert 7411da8d5a
Fix #3777
2 weeks ago
Junegunn Choi ed511d7867
[install] tar --no-same-owner
Close #3776
2 weeks ago
Junegunn Choi cd8d736a9f
[shell] Add $FZF_COMPLETION_{DIR,PATH}_OPTS
To allow separately overriding 'walker' options.

Close #3778
2 weeks ago
Junegunn Choi 0952b2dfd4
Rename --cursor-line to --highlight-line 2 weeks ago
Junegunn Choi 4bedd33c59
Refactor the code to remove global variables 2 weeks ago
Junegunn Choi c5fb0c43f9
Add --cursor-line to highlight the whole current line
Similar to 'set cursorline' of Vim.
2 weeks ago
Junegunn Choi 9e4780510e
Add current-{fg,bg,hl} as synonyms for {fg,bg,hl}+ 2 weeks ago
Junegunn Choi e8405f40fe
Refactor the code so that fzf can be used as a library (#3769) 2 weeks ago
dependabot[bot] 065b9e6fb2
Bump golang.org/x/term from 0.19.0 to 0.20.0 (#3774)
Bumps [golang.org/x/term](https://github.com/golang/term) from 0.19.0 to 0.20.0.
- [Commits](https://github.com/golang/term/compare/v0.19.0...v0.20.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
dependabot[bot] 98141ca7d8
Bump crate-ci/typos from 1.20.10 to 1.21.0 (#3772)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.20.10 to 1.21.0.
- [Release notes](https://github.com/crate-ci/typos/releases)
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crate-ci/typos/compare/v1.20.10...v1.21.0)

---
updated-dependencies:
- dependency-name: crate-ci/typos
  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 501577ab28
Fix flaky test case 2 weeks 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 "&|<>()@^%!"
2 weeks ago
Junegunn Choi 24ff66d4a9
Fix `change-preview` reset by `change-preview-window`
Fix #3770
2 weeks 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
2 weeks 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>
2 weeks ago
Junegunn Choi b6add2a257
Fix rendering of preview window border of tcell renderer
(sleep 1; find .) |
    go run -tags tcell main.go --bind 'space:change-preview-window(60%|70%|80%|90%|border-left|border-right|border-vertical|border-top|border-horizontal|border-bottom|border-sharp|border-double|border-block|hidden|left|up|down|right|up|down|)' \
        --preview 'cat {}' --color bg:red,preview-bg:blue \
        --border --margin 3
2 weeks ago
Junegunn Choi 2bd41f1330
Reduce flicking when changing the size of the preview window with --border
(sleep 1; find .) |
    fzf --bind 'space:change-preview-window(60%|70%|80%|90%|border-left|border-right|border-vertical|border-top|border-horizontal|border-bottom|border-sharp|border-double|border-block|hidden|left|up|down|right|up|down|)' \
        --preview 'cat {}' --color bg:red,preview-bg:blue \
        --border --margin 3
2 weeks ago
Junegunn Choi c37cd11ca5
Remove unnecessary flicking when changing the size of the preview window
fzf --bind 'space:change-preview-window(60%|70%|80%|90%|hidden|)' --preview 'cat {}'
2 weeks ago
Junegunn Choi 9dee8edc0c
Clear characters on 1-column margin after the preview window on the left 2 weeks ago
Junegunn Choi f6aa28c380
Fix --info inline-right not properly clearing the previous output
(seq 100000; sleep 1) | fzf --info inline-right --bind load:change-query:x
2 weeks ago
cyqsimon dba1644518
Fix unreliable GOOS detection (#3763)
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2 weeks ago
Junegunn Choi 260a65b0fb
0.51.0 3 weeks ago
Junegunn Choi 835d2fb98c
[vim] Fix argument escaping for Windows batch file
Fix #3620
3 weeks ago
Charlie Vieth a9811addaa
Fix TestOSExitNotAllowed to handle empty GOROOT (#3758)
Fix #3748
3 weeks ago
dependabot[bot] ee9d88b637
Bump crate-ci/typos from 1.20.9 to 1.20.10 (#3757)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.20.9 to 1.20.10.
- [Release notes](https://github.com/crate-ci/typos/releases)
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crate-ci/typos/compare/v1.20.9...v1.20.10)

---
updated-dependencies:
- dependency-name: crate-ci/typos
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 weeks ago
Junegunn Choi 194a763c46
Escaping for cmd.exe: always use double quotes 3 weeks ago
Junegunn Choi 8d74446bef
Fix escaping for cmd.exe
Close #3651
Close #2609
3 weeks ago
Junegunn Choi 7ed6c7905c
Determine shell type once by the basename 3 weeks ago
Junegunn Choi 159a37fa37
Restore CmdLine parameter when running commands using cmd.exe 3 weeks ago
junegunn f39ae0e7c1 Deploying to master from @ junegunn/fzf@4a68eac99b 🚀 3 weeks ago
Junegunn Choi 4a68eac99b
Suggest using toggle+up instead of toggle-up 3 weeks ago
Junegunn Choi 2665580120
Add $FZF_POS environment variable
Close #2175
Close #3753
3 weeks ago
Junegunn Choi a4391aeedd
Add --with-shell for shelling out with different command and flags (#3746)
Close #3732
3 weeks ago
dependabot[bot] b86a967ee2
Bump crate-ci/typos from 1.19.0 to 1.20.9 (#3749)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.19.0 to 1.20.9.
- [Release notes](https://github.com/crate-ci/typos/releases)
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crate-ci/typos/compare/v1.19.0...v1.20.9)

---
updated-dependencies:
- dependency-name: crate-ci/typos
  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>
3 weeks ago
Junegunn Choi 608232568b
Add 'change-multi' action
Close #3754
3 weeks ago