Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick note conflicts with daily notes #31

Open
wsw70 opened this issue Oct 9, 2023 · 4 comments
Open

Quick note conflicts with daily notes #31

wsw70 opened this issue Oct 9, 2023 · 4 comments

Comments

@wsw70
Copy link

wsw70 commented Oct 9, 2023

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

@MaxThom
Copy link

MaxThom commented Dec 12, 2023

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

@lunule
Copy link

lunule commented Jan 6, 2024

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.

@dragonwocky
Copy link
Owner

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?

@lunule
Copy link

lunule commented Jan 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants