Junegunn Choi
8689f5f230
Fix rubocop warning
4 months ago
Junegunn Choi
5b52833785
Do not start the initial reader if 'reload*' is bound to 'start'
4 months ago
Junegunn Choi
c3cc378d89
Allow empty pointer and marker
...
Close #3879
4 months ago
Junegunn Choi
540632bb9e
Add --info-command for customizing the input text
...
Close #3866
4 months ago
ismay
144d55a5be
[fish] Merge history before searching ( #3852 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
4 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
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
88e78c9193
Update integration test to use named pipes
5 months ago
Junegunn Choi
6b4358f641
An '--expect' key should execute actions bound to the key
...
Fix #3810
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
e8405f40fe
Refactor the code so that fzf can be used as a library ( #3769 )
6 months ago
Junegunn Choi
501577ab28
Fix flaky test case
6 months ago
Junegunn Choi
24ff66d4a9
Fix `change-preview` reset by `change-preview-window`
...
Fix #3770
6 months 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
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
fddbfe7b0e
Fix 'reload' not terminating closed standard input stream
...
Fix #3750
6 months ago
Junegunn Choi
f864f8b5f7
Respect $FZF_DEFAULT_OPTS_FILE in key bindings and completion ( #3742 )
...
Fix #3740
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
8a2df79711
Do not hide separator by default on --info=inline-right|hidden
7 months ago
Junegunn Choi
07f8f70c5b
Fix flaky test case
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
b6bfd4a5cb
Fix typo in comment
7 months ago
Junegunn Choi
008fb9d258
Fix reload and reload-sync behaviors
...
https://github.com/junegunn/fzf/discussions/3696#discussioncomment-8915593
7 months ago
Eli Barzilay
88f4c16755
Make it possible to disable `Ctrl+T` / `Alt+C` / completions ( #3678 )
...
This makes it possible to skip one of the above key bindings or
completions by setting a variable to an empty string. For example,
FZF_CTRL_T_COMMAND= FZF_ALT_C_COMMAND= \
eval "$(fzf --zsh)"
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
7 months ago
Junegunn Choi
1833670fb9
Add $FZF_DEFAULT_OPTS_FILE ( #3618 )
...
For those who prefer to manage default options in a file.
If the file is not found, fzf will exit with an error.
We're not setting a default value for it because:
1. it's hard to find a default value that can be universally agreed upon
2. to avoid fzf having to check for the existence of the file even when it's not used
8 months ago
Junegunn Choi
5e6788c679
Export FZF_* variables to 'reload' process as well
8 months ago
Junegunn Choi
2a1e5a9729
More test fixes for tcell on GitHub Actions
9 months ago
Junegunn Choi
413c66beba
Fix tests for tcell build
9 months ago
Junegunn Choi
250496c953
Add 'result' event that is triggered when the result list is ready
...
Close #3560
10 months ago
Junegunn Choi
e47dc758c9
Fix focus event not triggered in certain cases
10 months ago
Junegunn Choi
f0fbed6007
Fix RuboCop error
10 months ago
Junegunn Choi
519de7c833
Fix unexpected result of --tiebreak=end
...
See https://github.com/junegunn/fzf/issues/3255#issuecomment-1869580320
10 months ago
Junegunn Choi
1707b8cdba
Add 'transform' action to conditionally perform a series of actions
...
'transform' action runs an external command that prints a series of
actions to perform.
# Disallow selecting an empty line
echo -e "1. Hello\n2. Goodbye\n\n3. Exit" |
fzf --reverse --header 'Select one' \
--bind 'enter:transform:[[ -n {} ]] && echo accept || echo "change-header:Invalid selection"'
# Move cursor past the empty line
echo -e "1. Hello\n2. Goodbye\n\n3. Exit" |
fzf --reverse --header 'Select one' \
--bind 'enter:transform:[[ -n {} ]] && echo accept || echo "change-header:Invalid selection"' \
--bind 'focus:transform:[[ -n {} ]] && exit; [[ {fzf:action} =~ up$ ]] && echo up || echo down'
Close #3368
Close #2980
10 months ago
Junegunn Choi
50f092551b
Lint: RuboCop
10 months ago
Junegunn Choi
c36a64be68
Add accept-or-print-query
...
Close #3528
10 months ago
Junegunn Choi
29e67d307a
Fix crash when preview window is hidden on focus event
11 months ago
Timofei Bredov
edfdcc8cee
Basic context-aware completion for ssh command ( #3424 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
1 year ago
Junegunn Choi
0f50dc848e
Add 'GET /' endpoint for getting the program state (experimental)
...
Related #3372
1 year ago
Junegunn Choi
f83491274f
Add toggle-header option
...
Close #3358
1 year ago
Boaz Yaniv
c0435fdff4
Add API Keys for fzf --listen ( #3374 )
1 year ago
Junegunn Choi
d0b7780239
Add --info=right
...
Related: #3322
1 year ago
Junegunn Choi
4c70745cc1
Fix bug where preview is not updated after reload when --disabled is set
...
Fix #3311
1 year ago
Syphdias
37f258b1bf
Add key combinations for ctrl-delete and shift-delete ( #3284 )
...
Currently there is not option to bind ctrl-delete and shift-delete. As
suggested by issue #3240 , shift-delete could be used to bind "delete
entry from history" as it is a common way to do so in other
applications, e.g. browsers.
This, however, does only implement to use the key combination itself and
does not assign a default action to any of them. This does enable to
call one's all predefined actions. With the exec action this can
expanded like the issue #3240 suggested.
If desirable, the key combinations could later get a default behavior.
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
1 year ago
Junegunn Choi
16b0aeda7d
Make sure 'become' process is given a proper tty device
1 year ago
Junegunn Choi
607eacf8c7
Allow unbind(focus)
...
Fix #3279
1 year ago
Junegunn Choi
94999101e3
Fix the behavior of change-preview-window action ( #3280 )
...
* change-preview-window restores the initial preview window options,
and overrides the properties that are specified
* However, 'hidden' property is treated differently. It is set to
'false' if the specified properties of the action is non-empty.
* cf. toggle-preview takes the "current" preview window options and
toggles the 'hidden' property.
1 year ago