summaryrefslogtreecommitdiffstats
path: root/src/options.go
AgeCommit message (Collapse)Author
2023-10-26(Experimental) Improve Sixel graphics support (#2544)Junegunn Choi
Progress: * Sixel image can now be displayed with other text, and is scrollable * If an image can't be displayed entirely due to the scroll offset, fzf will render a wireframe to indicate that an image should be displayed * Renamed $FZF_PREVIEW_{WIDTH,HEIGHT} to $FZF_PREVIEW_PIXEL_{WIDTH,HEIGHT} for clarity * Added bin/fzf-preview.sh script to demonstrate how to display an image using Kitty or Sixel protocol An example: ls *.jpg | fzf --preview='seq $((FZF_PREVIEW_LINES*9/10)); fzf-preview.sh {}; seq 100' A known issue: * If you reduce the size of the preview window, the image may extend beyond the preview window
2023-10-23Experimental Sixel support (#2544)Junegunn Choi
2023-10-11Add offset-up and offset-downJunegunn Choi
# Scrolling will behave similarly to CTRL-E and CTRL-Y of vim fzf --bind scroll-up:offset-up,scroll-down:offset-down \ --bind ctrl-y:offset-up,ctrl-e:offset-down \ --scroll-off=5 Close #3456
2023-10-11Add mouse events for --bindJunegunn Choi
Close #3473
2023-07-25Add toggle-header optionJunegunn Choi
Close #3358
2023-07-20Add API Keys for fzf --listen (#3374)Boaz Yaniv
2023-06-11Add --info=rightJunegunn Choi
Related: #3322
2023-06-10Add --info=inline-rightJunegunn Choi
Close #3322
2023-06-10Add new border style: 'thinblock' (#3327)Mike
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2023-05-21Add key combinations for ctrl-delete and shift-delete (#3284)Syphdias
Currently there is not option to bind ctrl-delete and shift-delete. As suggested by issue #3240, shift-delete could be used to bind "delete entry from history" as it is a common way to do so in other applications, e.g. browsers. This, however, does only implement to use the key combination itself and does not assign a default action to any of them. This does enable to call one's all predefined actions. With the exec action this can expanded like the issue #3240 suggested. If desirable, the key combinations could later get a default behavior. Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2023-05-16Allow customizing scrollbar of the preview window via --scrollbar=xyJunegunn Choi
2023-05-16Add new border style: 'block'Junegunn Choi
2023-05-16Allow customizing the color of preview scrollbar via 'preview-scrollbar'Junegunn Choi
2023-05-05Fix the behavior of change-preview-window action (#3280)Junegunn Choi
* change-preview-window restores the initial preview window options, and overrides the properties that are specified * However, 'hidden' property is treated differently. It is set to 'false' if the specified properties of the action is non-empty. * cf. toggle-preview takes the "current" preview window options and toggles the 'hidden' property.
2023-04-26Add 'zero' eventJunegunn Choi
Close #3263
2023-04-22Add 'track' actionJunegunn Choi
2023-04-22Add change-header and transform-headerJunegunn Choi
Close #3237
2023-04-22Fixed --track when used with --tacJunegunn Choi
Fix #3234
2023-04-12Disallow using --track with --tacJunegunn Choi
Close #3234
2023-04-01Add 'one' eventJunegunn Choi
Close #2629 Close #2494 Close #459
2023-04-01Add --track option to track the current selectionJunegunn Choi
Close #3186 Related #1890
2023-03-26Respect 'regular' attribute in 'bw' base themeJunegunn Choi
Don't make the text bold if an element is explicitly specified as 'regular'. Fix #3222
2023-03-19Omit port number in `--listen` for automatic port assignmentJunegunn Choi
Close #3200
2023-02-11Add become(...) action that replaces current fzf processJunegunn Choi
Close #3159
2023-01-31Add 'show-preview' and 'hide-preview'Junegunn Choi
For cases where 'toggle-preview' is not enough
2023-01-24Sanitize input strings that should be a single lineJunegunn Choi
2023-01-24Support custom separator of inline infoJunegunn Choi
Close #2030 Close #3084
2023-01-23Add 'focus' eventJunegunn Choi
Can we find a better name? I have considered the followings. * 'point', because "the pointer" points to the current item. * 'shift', 'switch', 'move', etc. These are not technically correct because the current item can change without cursor movement (--tac, reload, search update) * 'change' is already taken. 'change-current' feels a bit wordy and sounds wrong, 'current-changed' is wordy and doesn't go well with the other event names * 'target', not straightforward Close #3053
2023-01-22Add 'transform-border-label' and 'transform-preview-label'Junegunn Choi
2023-01-22Add change-border-label and change-preview-label actions, update manjpcrs
2023-01-21Action argument in enclosed form should allow new linesJunegunn Choi
Close #3138
2023-01-16Better support for Windows terminalsJunegunn Choi
* Default border style on Windows is changed to `sharp` because some Windows terminals are not capable of displaying `rounded` border characters correctly. * If your terminal emulator renders each box-drawing character with 2 columns, set `RUNEWIDTH_EASTASIAN` environment variable to `1`.
2023-01-07Prevent fzf crashing on malformed remote actionJunegunn Choi
2023-01-07Allow toggling of alternative preview window layout that is hiddenJunegunn Choi
Fix #3113
2023-01-01Add scrollbarJunegunn Choi
Close #3096
2022-12-31Add transform-prompt(...) actionJunegunn Choi
2022-12-29Add reload-sync actionJunegunn Choi
Close #2816
2022-12-29Add 'load' event that is triggered when the input stream is completeJunegunn Choi
and the first search (with or without query) is complete
2022-12-28Add transform-query(...) actionJunegunn Choi
Test case authored by @SpicyLemon Close #1930 Close #2465 Close #2559 Close #2509 (e.g. fzf --bind 'space:transform-query:printf %s%s {q} {}')
2022-12-27Allow put action with an argument i.e. put(...)Junegunn Choi
2022-12-27Add pos(...) action to move the cursor to the numeric positionJunegunn Choi
# Put the cursor on the 10th item seq 100 | fzf --sync --bind 'start:pos(10)' # Put the cursor on the 10th to last item seq 100 | fzf --sync --bind 'start:pos(-10)' Close #3069 Close #395
2022-12-25Revert "Add GET endpoints for getting the state of the finder"Junegunn Choi
This reverts commit 750b2a63130fc6b67aaa64c59d42cff428c26b4a. This can cause a deadlock if the endpoints are accessed in the core event loop via execute action. fzf --listen 6266 --bind 'space:execute:curl localhost:6266' Technically, there's no reason to use the API because the information is already available via `{}` and `{q}`, but I'd like to completely remove the risk of misuse.
2022-12-25Add GET endpoints for getting the state of the finderJunegunn Choi
* GET / (or GET /current) * GET /query
2022-12-23Fix bind spec parserJunegunn Choi
2022-12-23Rewrite bind spec parserJunegunn Choi
2022-12-21Fix parse error of actions with argumentsJunegunn Choi
2022-12-21Add --listen=HTTP_PORT option to receive actionsJunegunn Choi
Supersedes #2019 See also: * #1728 * https://github.com/junegunn/fzf.vim/pull/1044
2022-12-18Add change-query(...) actionJunegunn Choi
2022-12-11Add 'next-selected' and 'prev-selected' actionsJunegunn Choi
Close #2749
2022-12-10Rename previous-history to prev-historyJunegunn Choi
previous-history is still supported for backward compatibility