summaryrefslogtreecommitdiff
path: root/src/options.go
AgeCommit message (Collapse)Author
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
2020-11-09Add --padding optionJunegunn Choi
Close #2241
2020-10-29Fix nil error on --color=bwJunegunn Choi
Fix #2229
2020-10-26Add more --border optionsJunegunn Choi
Instead of drawing the window border in Vim using an extra window, extend the --border option so that we do can it natively. Close #2223 Fix #2184
2020-10-25Add support for text styling using --colorJunegunn Choi
Close #1663
2020-10-11Add --preview-window=default for resetting the optionsJunegunn Choi
2020-10-09Add nowrap, nocycle, nohidden for --preview-windowJunegunn Choi
Close #2203
2020-10-09Reset preview window flags that are not style-relatedJunegunn Choi
Fix #2203
2020-10-06Fix preview window size calculationJunegunn Choi
2020-10-06Allow splitting preview-window optionsJunegunn Choi
e.g. --preview-window sharp --preview-window cycle
2020-10-06Add --preview-window option for cyclic scrollingJunegunn Choi
Close #2182
2020-10-05Add preview-half-page-down and preview-half-page-up (#2145)Tinmarino
2020-08-23Revert 1ab4289: Preview window of size 0 is allowedJunegunn Choi
2020-08-23Add more preview window options and reduce vertical padding on noborderJunegunn Choi
Fix #2138 Fix #2029
2020-08-23Support preview scroll offset relative to window heightJunegunn Choi
Related: https://github.com/junegunn/fzf.vim/issues/1092
2020-08-21Disallow preview-window size of zeroJunegunn Choi
2020-07-27Allow negative field index in preview-window scroll offsetJunegunn Choi
2020-07-27Add preview window option for setting the initial scroll offsetJunegunn Choi
Close #1057 Close #2120 # Initial scroll offset is set to the line number of each line of # git grep output *minus* 5 lines git grep --line-number '' | fzf --delimiter : --preview 'nl {1}' --preview-window +{2}-5
2020-06-21Add preview action for --bindJunegunn Choi
Fix #2010 Fix #1638
2020-06-20Add refresh-preview actionJunegunn Choi
2020-06-07Add backward-eof event for --bindJunegunn Choi
2020-03-11Add --keep-right option to keep the right end of the line visibleJunegunn Choi
Close #1652
2020-03-10Make height option work under Windows (#1341)Michael Kelley
Separate Unix & Windows code into platform specific files for light renderer
2020-03-05Add more --border options; default changed to "rounded"Junegunn Choi
--border option now takes an optional argument that defines the style - rounded (new default) - sharp - horizontal (previous default)
2020-02-28Add backward-delete-char/eof action (#1891)James Wright
'backward-delete-char/eof' will either abort if query is empty or delete one character backwards.
2020-02-24Add 'insert' key for --bindJunegunn Choi
Close #1744
2020-02-17Make pointer and multi-select marker customizable (#1844)Hiroki Konishi
Add --pointer and --marker option which can provide additional context to the user
2020-02-16Fix bug of validation of jump-labels (#1875)Hiroki Konishi
When jump-labels are specified with `--jump-labels=` way, validation was not carried out.
2019-12-12Add preview-fg and preview-bg for --colorJunegunn Choi
Close #1776
2019-12-07Add clear-query and clear-selectionJunegunn Choi
Close #1787 Related #1364
2019-11-21Allow action composition over multiple --bindJunegunn Choi
# Note + prefix in the second bind expression fzf --bind u:up --bind u:+up fzf --bind u:up+up
2019-11-21Fix parse error of --bind expressionJunegunn Choi
2019-11-15Update error message for --preview-windowJunegunn Choi
2019-11-15Add `--preview-window noborder` option to disable preview borderJunegunn Choi
Close #1699
2019-11-15Add --info=STYLE [default|inline|hidden]Junegunn Choi
Close #1738
2019-11-14More key chords for --bindJunegunn Choi
Close #1752
2019-11-10Experimental implementation of "reload" actionJunegunn Choi
# Reload input list with different sources seq 10 | fzf --bind 'ctrl-a:reload(seq 100),ctrl-b:reload(seq 1000)' # Reload as you type seq 10 | fzf --bind 'change:reload:seq {q}' --phony # Integration with ripgrep RG_PREFIX="rg --column --line-number --no-heading --color=always --smart-case " INITIAL_QUERY="" FZF_DEFAULT_COMMAND="$RG_PREFIX '$INITIAL_QUERY'" \ fzf --bind "change:reload:$RG_PREFIX {q} || true" \ --ansi --phony --query "$INITIAL_QUERY" Close #751 Close #965 Close #974 Close #1736 Related #1723
2019-11-10Add --phony option for disabling searchJunegunn Choi
With --phony, fzf becomes a simply selector interface without its own search functionality. The query string is only used for building the command for preview or execute action. Close #1723
2019-11-05Improvements to code quality and readability (#1737)Alexandr
* Remove 1 unused field and 3 unused functions unused elements fount by running golangci-lint run --disable-all --enable unused src/result.go:19:2: field `index` is unused (unused) index int32 ^ src/tui/light.go:716:23: func `(*LightWindow).stderr` is unused (unused) func (w *LightWindow) stderr(str string) { ^ src/terminal.go:1015:6: func `numLinesMax` is unused (unused) func numLinesMax(str string, max int) int { ^ src/tui/tui.go:167:20: func `ColorPair.is24` is unused (unused) func (p ColorPair) is24() bool { ^ * Address warnings from "gosimple" linter src/options.go:389:83: S1003: should use strings.Contains(str, ",,,") instead (gosimple) if str == "," || strings.HasPrefix(str, ",,") || strings.HasSuffix(str, ",,") || strings.Index(str, ",,,") >= 0 { ^ src/options.go:630:18: S1007: should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (gosimple) executeRegexp = regexp.MustCompile( ^ src/terminal.go:29:16: S1007: should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (gosimple) placeholder = regexp.MustCompile("\\\\?(?:{[+sf]*[0-9,-.]*}|{q}|{\\+?f?nf?})") ^ src/terminal_test.go:92:10: S1007: should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (gosimple) regex = regexp.MustCompile("\\w+") ^ * Address warnings from "staticcheck" linter src/algo/algo.go:374:2: SA4006: this value of `offset32` is never used (staticcheck) offset32, T := alloc32(offset32, slab, N) ^ src/algo/algo.go:456:2: SA4006: this value of `offset16` is never used (staticcheck) offset16, C := alloc16(offset16, slab, width*M) ^ src/tui/tui.go:119:2: SA9004: only the first constant in this group has an explicit type (staticcheck) colUndefined Color = -2 ^
2019-11-02Fix argument parser for -mJunegunn Choi
/cc @tessus
2019-11-02--multi to take optional argument to limit the number of selectionJunegunn Choi
Close #1718 Related #688
2019-10-27Add 'f' flag for placeholder expression (#1733)Simon Fraser
If present the contents of the selection will be placed in a temporary file, and the filename will be placed into the string instead.
2019-04-21Output --help message to standard outputJunegunn Choi
Close #1554
2019-03-29Add --no-unicode option to draw borders in ASCII charactersJunegunn Choi
Close ##1533
2019-03-17Add color option for gutterJunegunn Choi
fzf --color gutter:-1 Close #1529 Close #1468
2018-06-10Provide an option to reverse items only (#1267)Akinori MUSHA
2018-04-12Add support for alt-{up,down,left,right} keysJunegunn Choi
Close #1234
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
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