Skip to content

Search & open files in a specific set of directories recursively using mini.pick #1369

Closed Answered by echasnovski
tachmonite37 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for kind words!

I'm trying to figure out a way to open/search files in a specific set of directories recursively. For example, C:\Program Files\Double Commander\doc , C:\Users\Anthony\Documents\01.20.SC.DOTS\01.23.SC.AUTH C:\Users\Anthony\Downloads\12.40.SC.LIT\12.43.LTST
using mini.pick.

Yes, it is possible. All built-in pickers can be given a source.cwd ("current working directory") as a field of its opts argument.

If you plan to do it frequently and interactively, here is an example of how to modify built-in files registry entry to accept cwd. With this you can do something like :Pick files cwd='C:\\Program\ Files\\...' (not escaping of \ and spaces).

I would prefer to easily…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tachmonite37
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants