summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2019-03-17Add color option for gutterJunegunn Choi
fzf --color gutter:-1 Close #1529 Close #1468
2019-03-07Always prepend ANSI reset code before re-assembling tokensJunegunn Choi
2019-03-07Remove unnecessary ANSI code injectionJunegunn Choi
2019-03-07Use simple string concatenation instead of using fmt.SprintfJunegunn Choi
2019-03-06Preserve the original color of each token when using --with-nth with --ansiJunegunn Choi
Close #1500
2019-02-22Export FZF_PREVIEW_LINES and FZF_PREVIEW_COLUMNS to preview processJunegunn Choi
fzf will still override LINES and COLUMNS as before but they may not hold the correct values depending on the default shell. Close #1314
2019-02-19Add placeholder expression for zero-based item index: {n} and {+n}Junegunn Choi
Close #1482
2018-12-22Fix tab width after ANSI reset code in preview windowJunegunn Choi
Close #1423
2018-12-19Inverse-only matches should not reorder the remaining resultsJunegunn Choi
Fix #1458
2018-12-13Avoid unnecessary redraw of preview windowJunegunn Choi
Close #1455
2018-12-05Render preview window when the initial query fails to matchJunegunn Choi
Only if preview template contains {q} Fix #1452 Related #1307
2018-10-070.17.50.17.5Junegunn Choi
2018-09-28Do not wait for more keystrokes after double escape charactersJunegunn Choi
Close #1393
2018-09-28Kill running preview process after 500ms when focus has changedJunegunn Choi
Close #1383 Close #1384
2018-09-27Restore STDIN during execute-silentJunegunn Choi
This allows users to terminate the process with CTRL-C when it hangs.
2018-09-27Don't drop buffered input data in findOffset() (#1392)Tim Cuthbertson
2018-08-08Handle incomplete ESC sequence in typeahead buffer (#1350)Michael Kelley
If an ESC char is found while processing characters, continue to check for characters. This prevents fzf from prematurely exiting. Close #1349
2018-06-25Allow search query longer than the screen widthJunegunn Choi
By implementing horizontal scrolling of the prompt line. Maximum length is hard-coded to 300-chars. Close #1312 Fix #1225
2018-06-100.17.40.17.4Junegunn Choi
2018-06-10Provide an option to reverse items only (#1267)Akinori MUSHA
2018-06-10Improve preview window update eventsJunegunn Choi
- Update preview window even if there is no match for the query string if any of the placeholder expressions evaluates to a non-empty string. - Also, if the command template contains {q}, preview window will be updated if the query string changes even though the focus remains on the same item. An example: git log --oneline --color=always | fzf --reverse --ansi --preview \ '[ -n {1} ] && git show --color=always {1} || git show --color=always {q}' Close #1307
2018-04-25Implement ttyname() in case /dev/tty is not availableJunegunn Choi
Close #1266 Close #447
2018-04-12Do not print non-displayable charactersJunegunn Choi
fzf used to print non-displayable characters (ascii code < 32) as '?', but we will simply ignore those characters with this patch, just like our terminals do. \n and \r are exceptions. They will be printed as a space character. TODO: \H should delete the preceding character, but this is not implemented. Related: #1253
2018-04-12Add support for alt-{up,down,left,right} keysJunegunn Choi
Close #1234
2018-03-30Implement flag for preserving whitespace around field (#1242)ZDNoFYVe
2018-03-13Make fzf pass go vetRyan Boehning
Add String() methods to types, so they can be printed with %s. Change some %s format specifiers to %v, when the default string representation is good enough. In Go 1.10, `go test` triggers a parallel `go vet`. So this also makes fzf pass `go test`. Close #1236 Close #1219
2018-02-15Add shift-up and shift-downJunegunn Choi
For now, they are respectively bound to preview-up and preview-down by default (TBD). Not available on tcell build. Close #1201
2018-01-17Update Windows default command to print relative paths (#1200)Jan Edmund Lazo
2017-12-030.17.30.17.3Junegunn Choi
2017-12-03Fix panic when replace-query is triggered on empty result setJunegunn Choi
2017-12-03Revert "0.17.2"Junegunn Choi
This reverts commit 2f1edeff78e275662667abc616287e7b9909c1c0.
2017-12-030.17.2Junegunn Choi
2017-12-02Add accept-non-empty actionJunegunn Choi
'accept-non-empty' is similar to 'accept' (which is bound to 'enter' and 'double-click' by default) but it prevents fzf from exiting without any selection. Close #1162
2017-12-01Add replace-query actionJunegunn Choi
replace-query action replaces the query string with the current selection. If the selection is too long, it will be truncated. If the line contains meta-characters of fzf search syntax, it is possible that the line is no longer included in the updated result. e.g. echo '!hello' | fzf --bind ctrl-v:replace-query Close #1137
2017-12-01Inject $LINES and $COLUMNS when running preview commandJunegunn Choi
Close #1168
2017-12-01Support binding of left-click and right-clickJunegunn Choi
left-click and right-click are respectively bound to "ignore" and "toggle" (after implicitly moving the cursor) by default. Close #1130
2017-12-01Revert default command: find with -fstype requiredJunegunn Choi
In #1061 we changed the default command to retry with a simpler find command with fewer arguments if the first find command failed. This was to support stripped-down verions of find that do not support -fstype argument. However, this caused an unwanted side-effect of yielding duplicate entries when the first command failed after producing some lines. We revert the change in this commit, so the default command will not work with find without -fstype support. But we now print better error message in that case so that the user can set up a working $FZF_DEFAULT_COMMAND. Close #1120 #1167
2017-10-160.17.10.17.1Junegunn Choi
2017-10-15Do not immediately check --height option on Windows (#1082)Junegunn Choi
2017-10-15Fix compilation error of Windows binaryJunegunn Choi
2017-10-14Fix ExecCommandWith for cmd.exe in Windows (#1072)Jan Edmund Lazo
Close #1018 Run the command as is in cmd.exe with no parsing and escaping. Explicity set cmd.SysProcAttr so execCommand does not escape the command. Technically, the command should be escaped with ^ for special characters, including ". This allows cmd.exe commands to be chained together. See https://github.com/neovim/neovim/pull/7343#issuecomment-333350201 This commit also updates quoteEntry to use strings.Replace instead of strconv.Quote which escapes more than \ and ".
2017-09-28Update FZF_DEFAULT_COMMANDJunegunn Choi
- Use bash for `set -o pipefail` - Fall back to simpler find command when the original command failed Related: #1061
2017-09-09Clean up renderer codeJunegunn Choi
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-08Fix custom foreground color inside preview window (addendum)Junegunn Choi
This fixes foreground color inside preview window when the text has ANSI attributes except for foreground color. Close #1046
2017-09-08Fix custom foreground color inside preview windowJunegunn Choi
Close #1046
2017-09-02Delete ncurses implementationJunegunn Choi
2017-08-270.17.00.17.0Junegunn Choi
2017-08-27Make --expect additiveJunegunn Choi
Similarly to --bind or --color. --expect used to replace the previously specified keys, and fzf#wrap({'options': '--expect=f1'}) wouldn't work as expected. It forced us to come up with some ugly hacks like the following: https://github.com/junegunn/fzf.vim/blob/13b27c45c8bdf6c3a41376bb83e4895edadf8c7e/autoload/fzf/vim.vim#L1086
2017-08-27Optimize rank comparison on x86 (little-endian)Junegunn Choi
2017-08-26Remove an unnecessary code branchJunegunn Choi