Reintroducing automatic note creation through :ObsidianNew
as an option
#600
Closed
Vourliotis
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
Hey @Vourliotis I would consider this a bug. Let me see if I can fix. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Seems to work flawlessly @epwalsh, thank you for the change! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone,
First off, thanks a lot to everyone involved in this plugin! I wanted to start a discussion about a "feature" that used to be in the plugin but was removed in #490.
:ObsidianNew
automatically created any non-existent folders given a path, along with the new note. When creating a new note, I often include a path with folders that might not exist yet. Without the automatic creation, an error gets thrown due to a function trying to access a non-existent path (get_workspace_for_dir
).I tried handling this with the
enter_note
callback, but since another function or callback runs first, I wasn't successful. The only way to make it work again was through an autocmd:Do you think it’s worth bringing this feature back as an option? Are there any good workarounds for this that I might have missed?
Would love to hear your thoughts!
Beta Was this translation helpful? Give feedback.
All reactions