Junegunn Choi
417bca03df
Add shift-up and shift-down
...
For now, they are respectively bound to preview-up and preview-down
by default (TBD).
Not available on tcell build.
Close #1201
2018-02-15 19:57:21 +09:00
Junegunn Choi
b3b101a89c
Support binding of left-click and right-click
...
left-click and right-click are respectively bound to "ignore" and
"toggle" (after implicitly moving the cursor) by default.
Close #1130
2017-12-01 03:28:08 +09:00
Junegunn Choi
e1582b8323
Clean up renderer code
...
Remove code that is no longer relevant after the removal of ncurses
renderer. This commit also fixes background color issue on tcell-based
FullscreenRenderer (Windows).
2017-09-09 23:20:42 +09:00
Junegunn Choi
7cfa6f0265
Fix custom foreground color inside preview window (addendum)
...
This fixes foreground color inside preview window when the text has ANSI
attributes except for foreground color.
Close #1046
2017-09-08 18:33:17 +09:00
Junegunn Choi
e3e7b3360c
Delete ncurses implementation
2017-09-02 03:19:50 +09:00
Junegunn Choi
dc55e68524
Remove unnecessary SCP (Save Cursor Position)
...
It is reported that it can have an unwanted side effect of clearing the
screen on terminal emulators that do not properly support it.
Patch suggested by @arya.
Close #1011
2017-08-09 01:58:29 +09:00
Junegunn Choi
39dbc8acdb
Exit 2 instead of panic when failed to open /dev/tty
2017-08-02 02:50:26 +09:00
Junegunn Choi
06301c7847
Fix regression: ANSI color in preview window not cleared
2017-07-21 16:44:59 +09:00
Junegunn Choi
bc9d2abdb6
Improve preview window rendering
...
- Fix incorrect display of the last line when more than a line is
wrapped above
- Avoid unnecessary flickering of the window
2017-07-19 22:47:15 +09:00
Junegunn Choi
6b5886c034
Adjust --no-clear option for repetitive relaunching
...
Related: https://gist.github.com/junegunn/4963bab6ace453f7f529d2d0e01b1d85
Close #974
2017-07-18 21:10:49 +09:00
Junegunn Choi
0c66521b23
Fix handling of bracketed paste mode
...
fzf should immediately continue consuming the buffer after discarding
bracketed paste mode sequence.
Close #951
2017-06-22 02:35:57 +09:00
Junegunn Choi
ca0b3b6fd7
Fixes for Cygwin
...
- Update install script to download Windows binary if $TERM == cygwin
- Unset TERM if $TERM == cygwin (#933 )
- Always use cmd.exe instead of $SHELL when running commands
2017-06-03 19:47:53 +09:00
Edgar Lee
7d3575b362
Use glide to handle go dependencies
2017-06-01 17:08:47 -07:00
Tw
ab182e276b
Use read syscall directly to get character ( #931 )
...
Due to go std lib uses poller for os.File introducing in this commit:
c05b06a12d
There are two changes to watch out:
1. os.File.Fd will always return a blocking fd except on bsd.
2. os.File.Read won't return EAGAIN error for nonblocking fd.
So
For 1, we just get tty's fd in advance and then set its block mode.
For 2, we use read syscall directly to get what we wanted error(EAGAIN).
Fix issue #910 .
Signed-off-by: Tw <tw19881113@gmail.com>
2017-05-25 01:36:59 +09:00
Junegunn Choi
e1e3339770
Implement bindable "change" event and "top" action
...
# Move cursor to the top result whenever the query string is changed
fzf --bind change:top
Close #925
2017-05-22 17:07:05 +09:00
Junegunn Choi
d34e4cf698
Support CTRL-Z (SIGSTOP)
2017-04-28 22:58:08 +09:00
Junegunn Choi
6b592137b9
Add support for ctrl-alt-[a-z] key chords
...
Close #906
2017-04-28 02:36:36 +09:00
Junegunn Choi
6fd4be580b
Use alternate screen only when the value of height is 100%
...
Do not automatically decide to use alternate screen when the value of
height exceeds the height of the terminal.
# Use alternate screen
fzf
fzf --height 100%
fzf --no-height
# Still use current screen
fzf --height 10000
2017-03-04 14:09:36 +09:00
Junegunn Choi
53348feb89
Add --no-clear option
2017-03-04 11:29:31 +09:00
Junegunn Choi
c82fb3c9b9
Add toggle-preview-wrap action
2017-02-18 23:49:00 +09:00
Junegunn Choi
21da02fac2
Fix indentation
2017-02-14 22:30:09 +09:00
Junegunn Choi
19569bd5c5
Move cursor to the top-left when returning to alternate screen
...
Fix broken preview border. Reported by Thomas Sattler.
fzf --bind 'enter:execute(date)' --preview=date --reverse
2017-02-14 22:28:04 +09:00
Junegunn Choi
4b700192c1
Add --border option to draw horizontal lines above and below the finder
...
Goes well with --height
2017-02-04 21:51:22 +09:00
Junegunn Choi
c95bb109c8
Suppress CSI codes in the output
2017-02-02 13:14:27 +09:00
Junegunn Choi
dd156b59fc
Fix display issues with execute action
...
- Move cursor to the top-left corner when starting a command in
alternate screen
- Fix cursor position when returning to alternate screen when fzf is
running in full screen mode
2017-01-30 01:08:07 +09:00
Junegunn Choi
36dceecd58
Add support for ctrl-space key
...
Close #825
2017-01-28 02:54:47 +09:00
Junegunn Choi
a3244c4892
Delete every line below the cursor
2017-01-23 22:07:18 +09:00
Junegunn Choi
a5ad8fd3bd
Minor refactoring
2017-01-23 12:55:13 +09:00
Junegunn Choi
deccdb1ec5
Cursor postition response can be preceded by user key strokes
2017-01-23 12:55:11 +09:00
Junegunn Choi
12a43b5e62
Disable mouse if failed to query cursor position
2017-01-23 12:55:04 +09:00
Junegunn Choi
ff248d566d
Drop ncurses dependency
...
Close #818
2017-01-22 14:13:37 +09:00
Junegunn Choi
6ccc12c332
Use alternate screen if --height needs the entire screen
...
- Remove unnecessary scrolling
- Allow us to use `--height 100%` under Neovim terminal for 24-bit colors
Related:
- #789
- https://github.com/neovim/neovim/issues/4151
2017-01-22 05:26:38 +09:00
Junegunn Choi
2a669e9a17
Clear lines even when background color is not set
...
Also revert the workaround in Vim plugin introduced in fa7c897
.
Related: #814
2017-01-22 03:19:50 +09:00
Junegunn Choi
8e2e63f9b9
Propertly fill window with background color
...
Close #805
2017-01-16 12:27:32 +09:00
Junegunn Choi
ede7bfb901
Optimize LightRenderer for slow terminals
2017-01-16 02:26:36 +09:00
Junegunn Choi
03f5ef08c8
Use crypto/ssh/terminal instead of external stty command
2017-01-15 13:10:59 +09:00
Junegunn Choi
d64828ce6d
Print error message to stderr on unexpected exit
2017-01-11 23:01:56 +09:00
Junegunn Choi
9977a3e9fc
Make preview renderer suspend early on line wrap
2017-01-11 22:13:40 +09:00
Junegunn Choi
f8082bc53a
No need to use /bin/sh to execute stty and tput
2017-01-11 21:48:36 +09:00
Junegunn Choi
996dcb14a3
Make fzf immediately quit when failed to read /dev/tty
...
Close #798
2017-01-11 02:12:32 +09:00
Junegunn Choi
0c127cfdc1
No need to query row position of the cursor if mouse is disabled
2017-01-10 22:55:55 +09:00
Junegunn Choi
ae274158de
Add experimental support for 24-bit colors
2017-01-10 02:16:12 +09:00
Junegunn Choi
78a3f81972
Do not use \e[s and \e[u
...
Excerpt from http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x361.html :
> - Save cursor position:
> \033[s
> - Restore cursor position:
> \033[u
>
> The latter two codes are NOT honoured by many terminal emulators. The
> only ones that I'm aware of that do are xterm and nxterm - even though
> the majority of terminal emulators are based on xterm code. As far as
> I can tell, rxvt, kvt, xiterm, and Eterm do not support them. They are
> supported on the console.
They are also unsupported by Neovim terminal.
2017-01-09 19:09:30 +09:00
Junegunn Choi
1448d631a7
Add --height option
2017-01-08 02:09:56 +09:00
Junegunn Choi
16b5902aa2
Fix Linux build ( #756 )
2016-12-05 02:27:38 +09:00
Junegunn Choi
a442fe0fd0
Truncate long lines in preview window
...
Add `:wrap` to --preview-window to wrap lines instead
Close #756
2016-12-05 02:13:59 +09:00
Junegunn Choi
de1c6b8727
[tcell] 24-bit color support
...
TAGS=tcell make install
printf "\x1b[38;2;100;200;250mTRUECOLOR\x1b[m\n" |
TERM=xterm-truecolor fzf --ansi
2016-11-26 00:36:38 +09:00
Junegunn Choi
6f17f412ba
Workaround for rendering glitch in case of short-lived input process
...
: | fzf --preview 'echo foo'
2016-11-25 14:05:37 +09:00
Junegunn Choi
746961bf43
[ncurses6] Suppress tui.Italic on ncurses 5
2016-11-24 13:42:14 +09:00
Junegunn Choi
182a6d99fd
[ncurses6] Support italics
2016-11-24 00:13:10 +09:00