Templater icon indicating copy to clipboard operation
Templater copied to clipboard

Prompt to import external files

Open pablogila opened this issue 10 months ago • 0 comments

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

The function tp.system.prompt() prompts the user for a text string. This complicates importing long strings of text, such as JSON files with a lot of content.

Describe the solution you'd like

It would make a lot of sense to have an option to prompt for a (text-based) file, so that the user could drag and drop or open a file in the explorer. It should have the same effect as manually copying the content of the file with the current prompt function.

Describe alternatives you've considered

I am trying to import my kindle highlights with Templater to customise the output. I previously tried the obsidian kindle plugin, which lets the user drag and drop a text file to be processed. This can not be achieved with the current version of Templater, where the text content must be manually copied into the prompt box.

pablogila avatar May 01 '25 22:05 pablogila