summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2021-05-22Add 'unbind' actionJunegunn Choi
Fix #2486
2021-05-14Replace RuneWidth to StringWidth to handle grapheme clustersJunegunn Choi
Fix #2482
2021-04-06Change --preview-window delimiter from : to , for consistencyJunegunn Choi
Delimiter : was chosen when --preview-option only supported position and size attributes. e.g. up:50%
2021-04-06Fix minimum preview window heightJunegunn Choi
2021-04-06Apply preview-bg color to preview border of all shapesJunegunn Choi
2021-04-06More border optins for preview windowJunegunn Choi
Close #2431
2021-04-06Ignore more ANSI escape sequencesJunegunn Choi
Fix #2420
2021-04-04Speed up preview switching when doing partial renderingJunegunn Choi
Fix #2417
2021-04-04Ensure proper ESC seq handling under Windows preview mode (#2430)Michael Kelley
- Increase go routine buffer size - Add time wait for nonblock getchr() - Resolve #2429
2021-03-26Fix flaky test case: test_interrupt_executeJunegunn Choi
Try to avoid extraneous INT signal
2021-03-25Automatically set /dev/tty as STDIN on execute actionJunegunn Choi
https://github.com/junegunn/fzf/issues/1360#issuecomment-788178140 # Redirect /dev/tty to suppress "Vim: Warning: Input is not from a terminal" ls | fzf --bind "enter:execute(vim {} < /dev/tty)" # With this change, we can omit "< /dev/tty" part ls | fzf --bind "enter:execute(vim {})"
2021-03-20Replace golang.org/x/crypto/ssh/terminal with golang.org/x/term (#2395)Mitsuo Heijo
See https://github.com/golang/go/issues/31044
2021-03-13Advanced preview scroll offset expression to better support fixed headerJunegunn Choi
2021-03-12Fix regression in preview window renderingJunegunn Choi
2021-03-12Add support for preview window headerJunegunn Choi
Fix #2373 # Display top 3 lines as the fixed header fzf --preview 'bat --style=header,grid --color=always {}' --preview-window '~3'
2021-03-12Fix truncation of colored line when --preview-window wrap is setJunegunn Choi
Fix #2346
2021-03-12Fix premature truncation of colored line when --preview-window wrap is setJunegunn Choi
Fix #2346
2021-03-12Fix incorrect tab character handlingJunegunn Choi
Fix #2372
2021-03-11Speed up ANSI code processing (#2368)Charlie Vieth
This commit speeds up the parsing/processing of ANSI escape codes by roughly 7.5x. The speedup is mostly accomplished by replacing the regex with dedicated parsing logic (nextAnsiEscapeSequence()) and reducing the number of allocations in extractColor(). #### Benchmarks ``` name old time/op new time/op delta ExtractColor-16 4.89µs ± 5% 0.64µs ± 2% -86.87% (p=0.000 n=9+9) name old speed new speed delta ExtractColor-16 25.6MB/s ± 5% 194.6MB/s ± 2% +661.43% (p=0.000 n=9+9) name old alloc/op new alloc/op delta ExtractColor-16 1.37kB ± 0% 0.31kB ± 0% -77.31% (p=0.000 n=10+10) name old allocs/op new allocs/op delta ExtractColor-16 48.0 ± 0% 4.0 ± 0% -91.67% (p=0.000 n=10+10) ```
2021-03-08Fix deadlocksJunegunn Choi
2021-03-07Fix yet another deadlockJunegunn Choi
EventBox.Set should not be called while holding the terminal mutex goroutine 1 [semacquire]: sync.runtime_SemacquireMutex(0xc0001923bc, 0x1000001066200, 0x1) /usr/local/Cellar/go/1.16/libexec/src/runtime/sema.go:71 +0x47 sync.(*Mutex).lockSlow(0xc0001923b8) /usr/local/Cellar/go/1.16/libexec/src/sync/mutex.go:138 +0x105 sync.(*Mutex).Lock(...) /usr/local/Cellar/go/1.16/libexec/src/sync/mutex.go:81 github.com/junegunn/fzf/src.(*Terminal).Input(0xc000192000, 0x0, 0x0, 0x0, 0x0) /fzf/src/terminal.go:581 +0x145 github.com/junegunn/fzf/src.Run.func10(0xc00010c8a0, 0xc000092050, 0xa) /fzf/src/core.go:245 +0x37 github.com/junegunn/fzf/src.Run.func11(0xc00011a4e0) /fzf/src/core.go:295 +0x5ce github.com/junegunn/fzf/src/util.(*EventBox).Wait(0xc00011a4e0, 0xc000127ec8) /fzf/src/util/eventbox.go:34 +0x5e github.com/junegunn/fzf/src.Run(0xc000180000, 0x11ac014, 0x6, 0x11ac158, 0x7) /fzf/src/core.go:251 +0xdac main.main() /fzf/main.go:13 +0x5a goroutine 11 [semacquire]: sync.runtime_SemacquireMutex(0xc00012c31c, 0xc00010e800, 0x1) /usr/local/Cellar/go/1.16/libexec/src/runtime/sema.go:71 +0x47 sync.(*Mutex).lockSlow(0xc00012c318) /usr/local/Cellar/go/1.16/libexec/src/sync/mutex.go:138 +0x105 sync.(*Mutex).Lock(0xc00012c318) /usr/local/Cellar/go/1.16/libexec/src/sync/mutex.go:81 +0x47 github.com/junegunn/fzf/src/util.(*EventBox).Set(0xc00011a4e0, 0x7, 0x114eb40, 0x1265460) /fzf/src/util/eventbox.go:40 +0x3b github.com/junegunn/fzf/src.(*Terminal).killPreview(0xc000192000, 0x0) /fzf/src/terminal.go:1831 +0xa5 github.com/junegunn/fzf/src.(*Terminal).exit(0xc000192000, 0xc000106e58) /fzf/src/terminal.go:1847 +0x75 github.com/junegunn/fzf/src.(*Terminal).Loop.func8.1(0xc00011a540) /fzf/src/terminal.go:2148 +0x38f github.com/junegunn/fzf/src/util.(*EventBox).Wait(0xc00011a540, 0xc000106f90) /fzf/src/util/eventbox.go:34 +0x5e github.com/junegunn/fzf/src.(*Terminal).Loop.func8(0xc000192000, 0xc00010a2c0) /fzf/src/terminal.go:2077 +0xa5 created by github.com/junegunn/fzf/src.(*Terminal).Loop /fzf/src/terminal.go:2072 +0x3e8
2021-03-07Fix deadlock on exitJunegunn Choi
2021-03-07Kill input command on terminateJunegunn Choi
Fix #2381 Close #2382
2021-02-28Don't exit fzf by SIGINT while executing command (#2375)bitterfox
Fix #2374 Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2021-02-28Check gofmt in `make test`Junegunn Choi
2021-02-25Add select and deselect actionsJunegunn Choi
Close #2358
2021-02-17Remove redundant assignment (#2356)odeson24
Co-authored-by: Ryan Ou <ryanou@aetherai.com>
2021-02-02Add `close` actionJunegunn Choi
Close #2331
2021-02-01Fix toggle-preview-wrap actionJunegunn Choi
Fix #2336
2021-02-01Fix segmentation fault on \x1b[0KJunegunn Choi
Fix #2339
2021-01-15Fix typos in source code (#2322)freddii
2021-01-13Migrate to GitHub ActionsJunegunn Choi
2021-01-04Fix selection changed on terminal resize (#2306)E.L.K
2021-01-03Use more explicit int-to-string conversion.Elliott Sales de Andrade
This fixes the following errors with Go 1.15: ``` src/options.go:452:69: conversion from untyped int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?) src/options.go:463:33: conversion from untyped int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?) ```
2021-01-030.25.00.25.0Junegunn Choi
2021-01-03Do not disable mouse on SIGCONT before SIGSTOPJunegunn Choi
Fix #2161
2021-01-03Make search toggleableJunegunn Choi
- `--phony` renamed to `--disabled` for consistency - `--no-phony` is now `--enabled` - Added `enable-search`, `disable-search`, and `toggle-search` actions for `--bind` - Added `--color` options: `query` and `disabled` Close #2303
2020-12-31Add preview-top and preview-bottom actionsJunegunn Choi
2020-12-31Fix alt-, for --expectJunegunn Choi
2020-12-30Extend support for alt key chordsJunegunn Choi
"alt-" with any case-sensitive character is allowed
2020-12-30Add "last" action to move the cursor to the last matchJunegunn Choi
This is the opposite of "first" (previously known as "top").
2020-12-23Prevent index out of range errorJunegunn Choi
Fix #2293
2020-12-07Make --color attributes mergeableJunegunn Choi
So you can override the colors and still have the text attributes # Default colors and attributes fzf export FZF_DEFAULT_OPTS='--color hl:-1:underline,hl+:-1:underline:reverse' # Default colors with underline+reverse attributes fzf # Different colors with underline+reverse attributes fzf --color hl:176,hl+:177 Related: https://github.com/junegunn/fzf.vim/issues/1197#issuecomment-739804363
2020-12-05Fix slice bound error on extremely narrow screenJunegunn Choi
2020-12-05Add --preview-window follow optionJunegunn Choi
2020-12-04Add change-prompt actionJunegunn Choi
Close #2270
2020-12-04Change how hl:-1 or hl+:-1 is applied to text with background colorJunegunn Choi
2020-11-25Fix unit testsJunegunn Choi
2020-11-25Support ANSI code for clearing the rest of the line (ESC[0K)Junegunn Choi
Some programs use it to set the background color for the whole line. fzf --preview "printf 'normal \x1b[42mgreen\x1b[0K \x1b[43myellow\x1b[m\nnormal again'" fzf --preview 'delta <(echo foo) <(echo bar) < /dev/tty' Fix #2249
2020-11-24Fix handling of arrow keys with alt and/or shift modifierJunegunn Choi
Fix #2254 - Properly handle extra chars in the buffer. Patch suggested by @mckelly2833. - Support alt-arrow sequences in \e[1;3A format - Support shift-alt-arrow sequences in \e[1;10A format