Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Allow variables in folder for new notes #91

Open
nonhymn opened this issue Feb 6, 2023 · 2 comments
Open

[Feature request] Allow variables in folder for new notes #91

nonhymn opened this issue Feb 6, 2023 · 2 comments

Comments

@nonhymn
Copy link

nonhymn commented Feb 6, 2023

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

@leelhn2345
Copy link

leelhn2345 commented Mar 10, 2023

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.

@QuAzI
Copy link

QuAzI commented Oct 2, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants