quickadd icon indicating copy to clipboard operation
quickadd copied to clipboard

[FEATURE REQUEST] variable that prompts selection between files in folder

Open prayidae opened this issue 3 months ago • 0 comments

Is your feature request related to a problem? Please describe.

I would like to be able to create a quickadd capture that prompts to choose from a selection list of files in a given folder, and then inserts the filename (or wikilink) of the file I choose in the targeted location.

Describe the solution you'd like

Option 1:

Provide an option to set a global variable based on a folder. Rather than individually inputting every value option for the global variable, you would associate the global variable with a given folder and it would automatically update itself to include whatever files are currently in that folder. When the global variable is invoked, it would prompt a selection from the files in that folder. It would output either the filename of the selection (just name of the file itself, not the entire path plus file extension, i.e. "filename" rather than "path/to/filename.md") or a wikilink to the file.

(Filename would probably be the more flexible option. For my personal usecase a link is more useful, but I can easily format a link from a filename by writing [[{{global variable that outputs filename}}]] whereas I cannot as easily convert a link to a plaintext filename.

Option 2 Add a dedicated format syntax variable that calls for a selection prompt of files from a given folder.

Describe alternatives you've considered

The only workaround I've been able to figure so far is typing into the capture format box [[{{value: filename}}]] which prompts me to type in the name of the file and then formats it as alink. But this requires me to remember exactly what files are in the folder and exactly what they're named.

Additional context

I think this would have broad usefulness but the specific thing I'm trying and failing to do right now is create a quickadd command that appends a file link to a list property in the frontmatter of a file.

I have my notes organized in folders by note type. I have for example a note type Research Topic and a note type Source. These note types have templates and thus predictable property keys.

The Source note type has a list property research-topics. I can create a quickadd that adds this format:

  - "[[{Value: file name}]]"

under the line

research-topics:

in a Source note, thus adding a link to the file for that research topic into the frontmatter of the Source note so that I have connected the source to the topic it relates to. But I want to be prompted for a list of research topic files that already exist in my vault (which are all in the folder "Research Topics"), and select between them, rather than have to try to remember exactly what the relevant research topic file is called.

prayidae avatar Sep 27 '25 20:09 prayidae