obsidian-tray
obsidian-tray copied to clipboard
Quick note conflicts with daily notes
I wanted to use the Quick Note functionality to open or create a new Daily Note. Unfortunately, a new file is created every time, and the filename is postfixed with an incremental counter (2023-10-09 1, 2023-10-09 2, 2023-10-09 3...).
Would it be possible to check if the file exists before forcefully creating a new one?
I saw that the file is created at https://github.com/dragonwocky/obsidian-tray/blob/main/main.js#L177 but I could not locate createNewMarkdownFile anywhere in the docs (I was expecting to see it at https://docs.obsidian.md/Reference/TypeScript+API/FileManager/FileManager but I have no idea how the plugins work with Obsidian so it may be elsewhere).
+1 for this feature, could it also be possible to choose a template for a new files?
Seems to be the same issue - or not ¯_(ツ)_/¯: on Windows, I had to uninstall the plugin, because when it's active, it binds a New Quick Note functionality to my 'Alt+N' key combo, something I don't want because it prevents me from using curly braces.
Seems to be the same issue - or not ¯(ツ)/¯: on Windows, I had to uninstall the plugin, because when it's active, it binds a New Quick Note functionality to my 'Alt+N' key combo, something I don't want because it prevents me from using curly braces.
@lunule all of the plugin's hotkeys are configurable under the plugin settings... you can change them to whatever you want or just clear them to disable them completely. Alt+N isn't a hotkey this plugin sets by default, though, so your problem may be elsewhere?
@dragonwocky Thanks for your reply.
Alt+N isn't a hotkey this plugin sets by default, though, so your problem may be elsewhere?
It is on my Windows - I don't know why is this is and/or what exactly is happening, but
- the problem I described only occurs when the Tray plugin in active,
- the only way to fix it is setting a custom key combo for the "Toggle window focus hotkey" setting.