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

hotkey to weekly note in periodic notes not working #250

Open
ekr0 opened this issue Feb 21, 2025 · 0 comments
Open

hotkey to weekly note in periodic notes not working #250

ekr0 opened this issue Feb 21, 2025 · 0 comments

Comments

@ekr0
Copy link

ekr0 commented Feb 21, 2025

When I set hotkey to daily note, it works perfectly. When I set a hotkey to weekly note, nothing happens, regardless of whether the weekly note already exists or not.

I tried many weekly note naming patterns (it is now YYYY/MM/YYYY-MM-DD-[week]), and many hotkeys (eg cmd+G, cmd+shift+m) but nothing works. When I open the weekly note from the palette of commands, it does work (but does not show the hotkey next to it as it does for other commands with bound hotkeys). On hotkey press, Dev tools shows

app.js:1 TypeError: Cannot read properties of undefined (reading 'openOrCreateWeeklyNote')
at Object.checkCallback (plugin:calendar:4419:27)
at pW (app.js:1:1966086)
at e.executeCommand (app.js:1:1967682)
at e.onTrigger (app.js:1:1211136)
at e.handleKey (app.js:1:773824)
at e.handleKey (app.js:1:773937)
at t.handleKey (app.js:1:774146)
at e.onKeyEvent (app.js:1:775080)

I would appreciate a fix or any workaround. I saw online workarounds but neither worked (one was playing with the naming pattern, another around legacy editor - i don't have that option in settings)

Pasting debug info below in case it's helpful. I'm on Apple M2 macbook, on macOS 15.3.1.
SYSTEM INFO:
Obsidian version: v1.8.7
Installer version: v1.6.7
Operating system: Darwin Kernel Version 24.3.0 (redacted the rest)
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: light
Community theme: AnuPpuccin v1.5.0
Snippets enabled: 0
Restricted mode: off
Plugins installed: 14
Plugins enabled: 13
1: Highlightr v1.2.2
2: Natural Language Dates v0.6.2
3: Outliner v4.8.1
4: Periodic Notes v0.0.17
5: Style Settings v1.0.9
6: Excalidraw v2.8.3
7: Advanced Tables v0.22.1
8: Code Styler v1.1.7
9: Emoji Shortcodes v2.2.0
10: Spaced Repetition v1.13.2
11: Templater v2.9.2
12: Calendar v1.5.10
13: Git v2.31.1

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

1 participant