4coder » Forums » Set the default path for interactive_open_or_new
edrickhong
1 posts
#16000 Set the default path for interactive_open_or_new
1 month, 2 weeks ago Edited by edrickhong on Aug. 12, 2018, 3:14 p.m. Reason: Initial post

Currently calling interactive_open_or_new will use the last path opened. I would prefer if I could set the default file path to the currently open buffer. The operation is called using a Command_ID and is a bit opaque, so I am not sure how I would go about doing this.
Mr4thDimention
Allen Webster
411 posts / 2 projects

Heyo

#16007 Set the default path for interactive_open_or_new
1 month, 1 week ago

If you're okay with writing your own wrapper commands then take a look at directory_set_hot.

What you want to do is get the current buffer's file name and extract it's path and use that to set the hot directory before beginning the file list.