obsidian-tray icon indicating copy to clipboard operation
obsidian-tray copied to clipboard

Quick note conflicts with daily notes

Open wsw70 opened this issue 2 years ago • 4 comments

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).

wsw70 avatar Oct 09 '23 11:10 wsw70

+1 for this feature, could it also be possible to choose a template for a new files?

MaxThom avatar Dec 12 '23 20:12 MaxThom

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 avatar Jan 06 '24 06:01 lunule

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 avatar Jan 24 '24 11:01 dragonwocky

@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.

lunule avatar Jan 26 '24 04:01 lunule