feat: add actions.get_current_line (#391)

This commit is contained in:
oberblastmeister
2021-01-05 02:50:44 -05:00
committed by GitHub
parent 9503603f88
commit f750159203
2 changed files with 7 additions and 0 deletions

View File

@@ -43,6 +43,10 @@ function actions.get_selected_entry()
return state.get_global_key('selected_entry')
end
function actions.get_current_line()
return state.get_global_key('current_line')
end
function actions.preview_scrolling_up(prompt_bufnr)
actions.get_current_picker(prompt_bufnr).previewer:scroll_fn(-30)
end