diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2016-09-25 02:02:00 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-09-25 02:02:00 +0900 |
| commit | 66d55fd89349b38e61ba2180ea8e7d8e5656c878 (patch) | |
| tree | 1d317b4ff4d2c84d1c205be016fb7dc7f726dca6 /src/options.go | |
| parent | 7fa5e6c86184b3127f64ce0f7a45b945df077e77 (diff) | |
| download | fzf-66d55fd89349b38e61ba2180ea8e7d8e5656c878.tar.gz | |
Make preview windows scrollable
Close #669
You can use your mouse or binadble preview-up and preview-down actions
to scroll the content of the preview window.
fzf --preview 'highlight -O ansi {}' --bind alt-j:preview-down,alt-k:preview-up
Diffstat (limited to 'src/options.go')
| -rw-r--r-- | src/options.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/options.go b/src/options.go index 6ff71c0f..3b412f83 100644 --- a/src/options.go +++ b/src/options.go @@ -663,6 +663,10 @@ func parseKeymap(keymap map[int]actionType, execmap map[int]string, str string) keymap[key] = actTogglePreview case "toggle-sort": keymap[key] = actToggleSort + case "preview-up": + keymap[key] = actPreviewUp + case "preview-down": + keymap[key] = actPreviewDown default: if isExecuteAction(actLower) { var offset int |
