Commit Graph

487 Commits (master)

Author SHA1 Message Date
Junegunn Choi 590060a16b
Remove unused field 12 hours ago
Junegunn Choi 368294edf6
Reduce flickering of the list when the list is truncated by --tail 12 hours ago
Junegunn Choi b1460d4787
hasPreviewFlags should ignore escaped placeholder
This reload command wouldn't run before the fix:

  : | fzf --bind 'start:reload:echo \{}'
1 day ago
Junegunn Choi 1616ed543d
Fix index out of bounds error caused by outdated offset 2 days ago
Junegunn Choi ef148dfd37
Handle int32 overflow
yes | fzf --tail=10 --preview 'echo "{n}"'
3 days ago
Junegunn Choi 93bbb3032d
Add --tail=NUM to limit the number of items to keep in memory 3 days ago
Junegunn Choi 41bcbe342f
Revert "An '--expect' key should execute actions bound to the key"
To be backward compatible.

Close #3829
7 days ago
Junegunn Choi 49b496269c
Fix index out of bounds error on scroll-down action 1 week ago
Junegunn Choi 2f51eb2b41
Different marker for the first and last line of multi-line entries
Can be configured via `--marker-multi-line`
2 weeks ago
Junegunn Choi 1fef36e4bc
Do not allow tabs in pointer and marker 2 weeks ago
Junegunn Choi 7a97532547
Fix --scroll-off for multi-line mode 2 weeks ago
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
2 weeks ago
Junegunn Choi a90426b7ca
Add print(...) action 2 weeks ago
Junegunn Choi 6b4358f641
An '--expect' key should execute actions bound to the key
Fix #3810
2 weeks ago
Junegunn Choi 076b3d0a9a
Embed man page in the binary and show it on 'fzf --man' 3 weeks ago
Junegunn Choi 573df524fe
Use winpty to launch fzf in Git bash (mintty)
Close #3806

Known limitation:
* --height cannot be used
3 weeks ago
Junegunn Choi 04db44067d
Implement multi-line display of multi-line items 3 weeks 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)
3 weeks ago
Junegunn Choi 04dfb14e32 Do not 'become' inside a tmux popup
fzf --tmux center --bind 'enter:become:vim {}'
3 weeks ago
Zhizhen He 01e7668915
chore: use strings.ReplaceAll (#3801) 3 weeks ago
Junegunn Choi 8a110e02b9
Fix tcell test case 3 weeks ago
Junegunn Choi 86d92c17c4
Refactor tui.TtyIn() 3 weeks ago
Junegunn Choi af65aa298a
Add color names: selected-{fg,bg,hl} 1 month ago
Junegunn Choi 0952b2dfd4
Rename --cursor-line to --highlight-line 1 month ago
Junegunn Choi 4bedd33c59
Refactor the code to remove global variables 1 month ago
Junegunn Choi c5fb0c43f9
Add --cursor-line to highlight the whole current line
Similar to 'set cursorline' of Vim.
1 month ago
Junegunn Choi e8405f40fe
Refactor the code so that fzf can be used as a library (#3769) 1 month ago
Junegunn Choi 24ff66d4a9
Fix `change-preview` reset by `change-preview-window`
Fix #3770
1 month 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
1 month 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>
1 month 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
1 month 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 {}'
1 month ago
Junegunn Choi 9dee8edc0c
Clear characters on 1-column margin after the preview window on the left 1 month 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
1 month ago
Junegunn Choi 2665580120
Add $FZF_POS environment variable
Close #2175
Close #3753
1 month ago
Junegunn Choi a4391aeedd
Add --with-shell for shelling out with different command and flags (#3746)
Close #3732
1 month ago
Junegunn Choi 608232568b
Add 'change-multi' action
Close #3754
1 month 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
2 months ago
Junegunn Choi fd1ba46f77
Export $FZF_KEY environment variable to child processes
It's the name of the last key pressed.

Related #3412
2 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'
2 months ago
Junegunn Choi 8a2df79711
Do not hide separator by default on --info=inline-right|hidden 2 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>
2 months ago
Junegunn Choi 8a74976c1f
Add track-current, untrack-current, and toggle-track-current (#3699)
Close #3691
2 months ago
Junegunn Choi db6db49ed6
Increase the buffer size for POST requests
Close #3685
3 months ago
Junegunn Choi c7ee071efa
Fix panic caused by invalid cursor index
Fix #3681
3 months ago
Junegunn Choi 8977c9257a
Limit the maximum number of focus events to process at once 3 months ago
Junegunn Choi fa0aa5510d
Kill preview process when hiding the preview window
via toggle-preview, hide-preview, or change-preview-window
3 months ago
Junegunn Choi eec557b6aa
Fix invalid memory access when the preview window becomes hidden 3 months ago
onee-only 52210a57f0 Update error return position according to convention 3 months ago
Junegunn Choi 686f9288fc
Allow iTerm2 image data that ends with 'ESC \' (#3646) 3 months ago