Junegunn Choi
a5beb08ed7
Border around the header section
...
Close #4159
2025-01-05 23:02:52 +09:00
Junegunn Choi
ee3916be17
Border around the input section (prompt + info)
...
Close #4154
2025-01-02 16:25:00 +09:00
Junegunn Choi
9a2b7f559c
Add --list-border for additional border around the list section
...
Close #4148
2024-12-31 17:05:14 +09:00
Junegunn Choi
805efc5bf1
Remove unused interface
2024-12-14 22:31:39 +09:00
Junegunn Choi
cdcab26766
Fix redundant clearing of the windows with non-default bg color
2024-12-14 22:06:14 +09:00
Junegunn Choi
289997e373
Refactor
2024-12-12 13:53:08 +09:00
Julian Prein
cdf641fa3e
Use Has{Top,Right,Bottom,Left}() where possible
...
De-duplicate code and reduce the amount of code that has to be changed
when new BorderShapes are being added. This also adds and uses the
missing HasBottom().
2024-12-12 13:53:08 +09:00
Junegunn Choi
e182d3db7a
Fix line wrap toggle when switching between screens
...
Fix #4099
2024-12-02 22:25:23 +09:00
Junegunn Choi
bacc8609ee
Fix characters from previous preview not being cleared
...
Fix #4075
2024-11-03 15:07:17 +09:00
Junegunn Choi
387c6ef664
Support hyperlinks (OSC 8) in the main window
...
Close #2557
2024-08-14 23:04:05 +09:00
Junegunn Choi
d90a969c00
Add support for hyperlinks in preview window
...
Close #2165
2024-08-14 08:51:34 +09:00
Junegunn Choi
2faffbd1b7
Fill background color in padding area
...
fzf --color bg:blue --border --padding 1,2
2024-07-01 21:39:09 +09:00
Junegunn Choi
2326c74eb2
Code cleanup
2024-06-20 17:06:44 +09:00
Junegunn Choi
e0ddb97ab4
Improved --sync behavior
...
When --sync is provided, fzf will not render the interface until the
initial filtering and associated actions (bound to any of 'start',
'load', or 'result') are complete.
2024-06-17 00:11:57 +09:00
Junegunn Choi
0684a20ea3
Fix invalid mouse offset for --height on Windows
2024-06-12 21:18:02 +09:00
Junegunn Choi
c29533994f
Fix invalid default of selected-hl (--color)
...
It should default to 'hl' instead of 'current-hl'
2024-06-02 18:09:41 +09:00
Junegunn Choi
b00d46bc14
Fix --height on Windows
2024-06-01 14:36:41 +09:00
Junegunn Choi
996abb2831
Fix incorrect colors for selected-{fg,bg,hl}
...
When a non-default base color scheme is specified, fzf would choose incorrect
colors for selected-*.
fzf --color 'light,fg:238,bg:255,bg+:253' -m
2024-05-24 00:46:01 +09:00
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
a90426b7ca
Add print(...) action
2024-05-22 22:18:24 +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
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
af65aa298a
Add color names: selected-{fg,bg,hl}
2024-05-07 23:38:06 +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
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
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
2024-05-05 17:09:00 +09:00
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
2024-05-05 16:49:30 +09:00
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 >
2024-04-13 14:58:11 +09:00
Junegunn Choi
892d1acccb
Fix tcell build
2024-04-13 14:47:04 +09:00
Junegunn Choi
fd1ba46f77
Export $FZF_KEY environment variable to child processes
...
It's the name of the last key pressed.
Related #3412
2024-04-13 14:00:16 +09:00
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'
2024-04-10 20:17:12 +09:00
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.
2024-04-09 00:26:25 +09:00
Junegunn Choi
26244ad8c2
Fix preview area not being cleared when using certain types of border styles
...
fzf --preview 'sleep 3; date' --preview-window hidden \
--bind ctrl-/:change-preview-window:up,border-bottom
2024-03-09 14:14:42 +09:00
Junegunn Choi
3c0a630475
0.46.1
2024-02-01 18:13:00 +09:00
Junegunn Choi
413c66beba
Fix tests for tcell build
2024-02-01 16:25:53 +09:00
Junegunn Choi
76cf6559cc
junegunn/uniseg -> rivo/uniseg
...
https://github.com/rivo/uniseg/pull/47
2024-01-27 22:18:43 +09:00
Junegunn Choi
da752fc9a4
Fix Windows build
...
Fix #3598
2024-01-24 15:59:54 +09:00
Junegunn Choi
16f6473938
Change mattn/go-runewidth dependency to rivo/uniseg for accurate results
...
Related #3588 #3588 #3567
2024-01-21 02:54:41 +09:00
Junegunn Choi
1a9ea6f738
Remove 'replace' directive for 'go install' compatibility
...
Close #3577
2024-01-14 17:12:24 +09:00
Junegunn Choi
250496c953
Add 'result' event that is triggered when the result list is ready
...
Close #3560
2024-01-07 17:46:21 +09:00
Junegunn Choi
7320b7df62
0.44.0
2023-11-12 22:08:08 +09:00
Tomáš Janoušek
11fb4233f7
Fix Home, End on rxvt-unicode ( #3507 )
2023-11-12 22:06:38 +09:00
Junegunn Choi
38e3694d1c
Revert "Sixel and Kitty image support on Windows binary ( #2544 )"
...
This reverts commit 68db9cb499 .
2023-11-10 13:16:11 +09:00
Junegunn Choi
68db9cb499
Sixel and Kitty image support on Windows binary ( #2544 )
2023-11-03 00:09:02 +09:00
Junegunn Choi
d0466fa777
Fix regression where tcell renderer not clearing the preview window
2023-11-02 21:00:07 +09:00
Junegunn Choi
21ab64e962
sixel: Export $FZF_PREVIEW_TOP to the preview command ( #2544 )
...
So that it can determine if it should subtract 1 from $FZF_PREVIEW_LINES
to avoid scrolling issue of Sixel image that touches the bottom of the
screen.
2023-11-02 01:35:36 +09:00