Mara-Li / obsidian-create-note-in-folder

Set a folder in settings and get directly a command to create a note in it. Use this with QuickAdd/Button to get more pratical things :D
GNU General Public License v3.0
20 stars 0 forks source link

Bug: If folder is added, New Note Quick Switcher stops working #7

Closed redactedscribe closed 1 year ago

redactedscribe commented 1 year ago

Thanks for the quick switcher feature, it's much appreciated. There's a bug however:

In the plugin's options, "Add folder" and then define its folder path, existing or not (I tried {{current}} in an attempt to figure out how to use it -- I'm still not sure how -- I also tried test which doesn't exist, and / which of course does). After this, pressing the hotkey for the plugin's quick switcher no longer works (I re-assigned Ctrl+N). It can no longer be see in the Hotkeys list either. The only option is to disable and re-enable the plugin.

Thanks.

Mara-Li commented 1 year ago

Strange, will check this out!

For {{current}}, just set "{{current}}" in the path. You could also set something/{{current}}/something (normally, I must test it more), and if a file is opened, you can find the command and use it. It will create the something/thefolderofthefile/something for example.

Mara-Li commented 1 year ago

Oh god, I know what cause this bug, i'm stupid!

redactedscribe commented 1 year ago

Thanks for the fix, but it unfortunately appears to still be broken. Maybe you can check if adding a new folder is causing the plugin's two quick switcher options in the Command Palette to still disappear?

For {{current}}, just set "{{current}}" in the path. You could also set something/{{current}}/something (normally, I must test it more), and if a file is opened, you can find the command and use it. It will create the something/thefolderofthefile/something for example.

Once it's fixed, I can try using {{current}}.

Mara-Li commented 1 year ago

Bruh, ty, will check this out. It was a little typo 🤦

redactedscribe commented 1 year ago

Once it's fixed, I can try using {{current}}.

Just to confirm, {{current}} works now 🙂