note-refactor-obsidian icon indicating copy to clipboard operation
note-refactor-obsidian copied to clipboard

[Feature request] Allow variables in folder for new notes

Open nonhymn opened this issue 2 years ago • 2 comments

Allow for variables in the "Folder for new notes" setting, similar to how the "Custom attachment location" plug-in allows for this.

In the image below, ${filename} should be replaced automatically with the name of the currently open file.

image

nonhymn avatar Feb 06 '23 23:02 nonhymn

i managed to find a workaround to this requested feature with the use of templater plugin.

image

edit: if there is already another file with the same file title as the refactored note, you'll have to specify the wiki link in your original note.

leelhn2345 avatar Mar 10 '23 20:03 leelhn2345

I have Daily Notes (YYYY-MM-DD.md files) where I track all my tasks

## TASK-123 Do something
details

## TASK-124 Do something
details
...

Every so often, I want to move big tasks into subdirectory YYYY-MM-DD <TaskName>/<TaskName>.md And automatically move all attached images (because they stored in subfolder files under the current folder) And after it, I can put in this folder a lot of other files connected to task (logs, documents, SQL files, httpYac requests...)

Template in my case should be like

{{original_filename}} {{note_title}}/{{note_title}}.md

Currently, the plugin doesn't allow using note title (first line) or original file name in directory template. Also, if I put a directory name into "Type file to append or create" dialog - nothing works. And it would be pretty fine to have full predefined filename right in this dialog. Now it is absolutely unclear which file will be created. Moreover, if this dialog is non-standard, please adjust it for tab completion

QuAzI avatar Oct 02 '23 08:10 QuAzI