feat: adds M mapping in normal mode (#544)
This commit is contained in:
committed by
GitHub
parent
10627e889e
commit
67b0661537
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user