numeroflip / obsidian-auto-template-trigger

An obsidian.md plugin, to automatically trigger a template on new file creation
MIT License
33 stars 0 forks source link

Move current file to another folder after template selection #19

Closed lifehaschanged closed 4 months ago

lifehaschanged commented 5 months ago

Hi @numeroflip !

Big thanks for the plugin!

When I create a new note, I often need to move the file to another folder. I would be great if you can add an option. There is an Obsidian command: "Move current file to another folder" that opens this popup

grafik

Do you think it's possible to give us a new option that after the template selection from your plugin this command from above will run automatically?

lifehaschanged commented 5 months ago

Why it's important: Often, when working in an editor, you create new notes inline using [[ ]], and if you were to click on the link to create the note, you would be asked to specify the template and then immediately prompted to move it to the folder process.

The advantage is that you wouldn't have to select the correct folder during the inline linking process (the link suggestion popup doesn't support autocomplete folders) because this happens later during the creation process through your plugin.

numeroflip commented 5 months ago

Hey @lifehaschanged, thanks for suggesting this feature. It seems like a very sensible thing to do, and it's definitely worth considering.

Although since this plugin is designed to be lightweight, and simple, this feature might be a bit out of scope.

Have you tried this plugin? : https://github.com/farux/obsidian-auto-note-mover I believe it's an excellent opportunity to combine 2 plugins to arrive at this desired behavior. Eg you can add a rule, so the presence of a given tag, will automatically move a note to a given folder, and add that tag into one of the templates. This way every time you select that template, the note will be moved to the assigned folder.

Eg you create a new note -> select a Template -> it gets automatically moved to the folder, if the template's content is such as "auto-note-mover" moves it there.

That's just an idea, so let me know, if it might serve your needs, or if you would still prefer this kind of functionality in a single plugin, so we can further discuss the details. IDK. In general, I would like to avoid adding a lot of extra functionality to keep it simple, but I'm open to it, so please let me know

lifehaschanged commented 4 months ago

Thanks, your recommendation is very good. I use your plugin in combination with Quickadd macro function: https://github.com/chhoumann/quickadd So I can right click on a link to create a note, then run a QuickAdd macro that will trigger a move to folder command with a delay of 500ms in combination with your template plugin popup function. I think I can close this, because with your plugin, auto-note-mover and QuickAdd, it's all I need in this regard. Thank you.