feat: adds M mapping in normal mode (#544)

This commit is contained in:
Hubert Pelczarski
2021-02-24 03:35:52 +01:00
committed by GitHub
parent 10627e889e
commit 67b0661537
4 changed files with 18 additions and 1 deletions

View File

@@ -78,6 +78,11 @@ function actions.move_to_top(prompt_bufnr)
))
end
function actions.move_to_middle(prompt_bufnr)
local current_picker = actions.get_current_picker(prompt_bufnr)
current_picker:set_selection(p_scroller.middle(nil, current_picker.max_results, nil))
end
function actions.move_to_bottom(prompt_bufnr)
local current_picker = actions.get_current_picker(prompt_bufnr)
current_picker:set_selection(p_scroller.bottom(current_picker.sorting_strategy,