diff options
| author | haorenW1025 <whz861025@gmail.com> | 2020-09-17 00:20:45 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-16 12:20:45 -0400 |
| commit | 7d1a8292b6c7db7401af05f75e6d9992fc8ed28a (patch) | |
| tree | d0d3a0c34b5ad8e70583c2a1c8c67d87abda89a5 /lua/telescope/pickers.lua | |
| parent | 9bdf5b3d4af99b76d3cd25466af708d57d6a1483 (diff) | |
feat: add scrolling in preview window (#47)
* feat: add scrolling in preview window
refactor into two layers
* remove redundant code
* add error message for scroll_fn and send_input
* consider count for preview scrolling
Diffstat (limited to 'lua/telescope/pickers.lua')
| -rw-r--r-- | lua/telescope/pickers.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index 66973f7..bf88b63 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -42,6 +42,9 @@ local default_mappings = { ["<C-x>"] = actions.goto_file_selection_split, ["<C-v>"] = actions.goto_file_selection_vsplit, ["<C-t>"] = actions.goto_file_selection_tabedit, + + ["<C-u>"] = actions.preview_scrolling_up, + ["<C-d>"] = actions.preview_scrolling_down, }, n = { @@ -57,6 +60,9 @@ local default_mappings = { ["<Down>"] = actions.move_selection_next, ["<Up>"] = actions.move_selection_previous, + + ["<C-u>"] = actions.preview_scrolling_up, + ["<C-d>"] = actions.preview_scrolling_down, }, } |
