From 0b5f1d69d793660900552ad4606c3adcc9934963 Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Sun, 15 May 2022 16:08:16 -0400 Subject: feat: Add ability to choose window to edit (#745) --- lua/telescope/config.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lua/telescope/config.lua') diff --git a/lua/telescope/config.lua b/lua/telescope/config.lua index 37a2846..f5cc3c6 100644 --- a/lua/telescope/config.lua +++ b/lua/telescope/config.lua @@ -787,6 +787,20 @@ append( Default: nil]] ) +append( + "get_selection_window", + function() + return 0 + end, + [[ + Function that takes function(picker, entry) and returns a window id. + The window ID will be used to decide what window the chosen file will + be opened in and the cursor placed in upon leaving the picker. + + Default: `function() return 0 end` + ]] +) + append( "file_previewer", function(...) -- cgit v1.2.3