-
Contributing guidelines
Module(s)mini.pick QuestionI am wondering how a simple workspace based workflow can be implemented using mini.pick (maybe with mini.extra also). For example, in sublime text and lite-xl, you can add a folder to the project/workspace and then your fuzzy finders automatically include the files for searching. This does not require any LSP whatsoever, it's just a workspace based find_files or live_grep. A typical workflow when starting a new project is to add the language standard library directories to the workspace so you can easily search for both a function or class in your project as well as in the core libraries. The core libraries will always reside in the same directory so I don't mind hardcoding the search paths. I just need them to be included in my pickers so I can search them when needed. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Not sure the full "file files inside all of these directories" is concisely feasible. Both "find files" and "grep" pickers are mostly designed to work within a single directory. The 'grep_live' picker can take I think the most realistic approach here would be something like #1141, i.e. a "two staged" search: first select a directory to run search or open file explorer; then do the search or explore. I use it in my config. For the case of different hardcoded libraries, the first step might be a plain |
Beta Was this translation helpful? Give feedback.
Thanks for the info, the snippet below works.
This allows me to pick between different directories under '~/stdlib' then launch a files picker after for that directory.
question: if I replace the return statement with the following, I end up in my current directory, why is that? I copied your version out of curiosity.