Junegunn Choi
3dee8778d0
execute: Open separate handles to /dev/tty (in, out, err)
...
# This will no longer cause 'Vim: Warning: Output is not to a terminal'
fzf --bind 'enter:execute:vim {}' > /tmp/foo
2024-05-23 21:11:12 +09:00
Junegunn Choi
d4216b0dcc
Use MSYS=enable_pcon instead of winpty on mintty 3.4.5 or later
2024-05-23 18:42:54 +09:00
Enno
bfe2bf4dce
[vim] Git Bash Mintty: only use cmd.exe if winpty missing ( #3811 )
...
* Git Bash Mintty: only use cmd.exe if winpty missing
Addresses https://github.com/junegunn/fzf/issues/3809
* preferably use term in Git Bash for popup window
See https://github.com/junegunn/fzf/pull/3811#issuecomment-2124241321
2024-05-23 09:07:54 +09:00
Junegunn Choi
561f9291fd
[vim] Replace backslashes with forward slashes on win32unix
2024-05-23 09:03:43 +09:00
Junegunn Choi
b5b0d6b3ea
Do not run as winpty proxy if winpty is not available
2024-05-23 08:47:38 +09:00
Junegunn Choi
a90426b7ca
Add print(...) action
2024-05-22 22:18:24 +09:00
Junegunn Choi
303c3bae7f
proxy: Pass SIGINT to the child fzf
2024-05-22 22:14:00 +09:00
Junegunn Choi
6b4358f641
An '--expect' key should execute actions bound to the key
...
Fix #3810
2024-05-22 20:39:09 +09:00
Junegunn Choi
552158f3ad
Ignore SIGINT when running as proxy
2024-05-22 20:01:37 +09:00
Junegunn Choi
7205203dc8
Update CHANGELOG
2024-05-21 02:07:49 +09:00
Junegunn Choi
0cadf70072
Update the summary
2024-05-21 01:57:22 +09:00
Junegunn Choi
076b3d0a9a
Embed man page in the binary and show it on 'fzf --man'
2024-05-21 01:06:10 +09:00
Junegunn Choi
7b0c9e04d3
Change default marker
2024-05-20 18:51:52 +09:00
Junegunn Choi
573df524fe
Use winpty to launch fzf in Git bash (mintty)
...
Close #3806
Known limitation:
* --height cannot be used
2024-05-20 18:24:14 +09:00
Junegunn Choi
aee417c46a
Respect $NO_COLOR environment variable
...
Close #1762
2024-05-20 10:50:00 +09:00
Junegunn Choi
04db44067d
Implement multi-line display of multi-line items
2024-05-20 09:25:30 +09:00
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)
2024-05-19 15:51:32 +09:00
Junegunn Choi
04dfb14e32
Do not 'become' inside a tmux popup
...
fzf --tmux center --bind 'enter:become:vim {}'
2024-05-18 17:08:36 +09:00
Junegunn Choi
c24256cba3
Update README
...
* Tidy up
* Mention `--tmux`
2024-05-18 17:08:36 +09:00
Junegunn Choi
685fb71d89
[vim] Use native --tmux option instead of fzf-tmux when possible
2024-05-18 17:08:36 +09:00
Junegunn Choi
83b6033906
Add --tmux option to replace fzf-tmux script
2024-05-18 17:08:36 +09:00
Zhizhen He
01e7668915
chore: use strings.ReplaceAll ( #3801 )
2024-05-18 17:06:33 +09:00
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.
2024-05-15 17:26:49 +09:00
LangLangBart
030428ba43
docs: update zsh integration instructions ( #3794 )
2024-05-15 01:59:43 +09:00
Junegunn Choi
8a110e02b9
Fix tcell test case
2024-05-15 00:45:23 +09:00
Junegunn Choi
86d92c17c4
Refactor tui.TtyIn()
2024-05-15 00:28:56 +09:00
Junegunn Choi
c4cc7891b4
Revert "Close handles to /dev/tty", instead reuse handles
2024-05-15 00:15:29 +09:00
Junegunn Choi
218843b9f1
Close handles to /dev/tty
2024-05-14 21:49:47 +09:00
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.
2024-05-14 16:32:26 +09:00
Junegunn Choi
6432f00f0d
0.52.1
2024-05-14 01:54:30 +09:00
junegunn
4e9e842aa4
Deploying to master from @ junegunn/fzf@07880ca441 🚀
2024-05-12 00:01:52 +00:00
LangLangBart
07880ca441
chore: Update flags to include long-form options for case ( #3785 )
2024-05-09 20:39:21 +09:00
Junegunn Choi
bcda25a513
0.52.0
2024-05-08 00:15:30 +09:00
Junegunn Choi
8256fcde15
Minor fixup
2024-05-07 23:49:30 +09:00
Junegunn Choi
af65aa298a
Add color names: selected-{fg,bg,hl}
2024-05-07 23:38:06 +09:00
Junegunn Choi
6834d17844
[vim] Revert 7411da8d5a
...
Fix #3777
2024-05-07 20:16:18 +09:00
Junegunn Choi
ed511d7867
[install] tar --no-same-owner
...
Close #3776
2024-05-07 20:00:13 +09:00
Junegunn Choi
cd8d736a9f
[shell] Add $FZF_COMPLETION_{DIR,PATH}_OPTS
...
To allow separately overriding 'walker' options.
Close #3778
2024-05-07 19:31:56 +09:00
Junegunn Choi
0952b2dfd4
Rename --cursor-line to --highlight-line
2024-05-07 19:22:39 +09:00
Junegunn Choi
4bedd33c59
Refactor the code to remove global variables
2024-05-07 16:58:17 +09:00
Junegunn Choi
c5fb0c43f9
Add --cursor-line to highlight the whole current line
...
Similar to 'set cursorline' of Vim.
2024-05-07 01:34:35 +09:00
Junegunn Choi
9e4780510e
Add current-{fg,bg,hl} as synonyms for {fg,bg,hl}+
2024-05-07 01:26:25 +09:00
Junegunn Choi
e8405f40fe
Refactor the code so that fzf can be used as a library ( #3769 )
2024-05-07 01:06:42 +09:00
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>
2024-05-06 22:51:10 +09:00
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>
2024-05-06 22:50:50 +09:00
Junegunn Choi
501577ab28
Fix flaky test case
2024-05-06 13:59:16 +09:00
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 "&|<>()@^%!"
2024-05-06 13:46:06 +09:00
Junegunn Choi
24ff66d4a9
Fix change-preview
reset by change-preview-window
...
Fix #3770
2024-05-06 09:40:02 +09:00
Junegunn Choi
bf184449bc
Count $FZF_CLICK_HEADER_LINE from top to bottom
...
Regardless of `--layout`.
https://github.com/junegunn/fzf/pull/3768#issuecomment-2094806558
2024-05-06 09:27:58 +09:00
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>
2024-05-05 18:56:43 +09:00