liamcain/obsidian-periodic-notes

[FEATURE] less redundant hotkeys for opening next/previous periodic note

courtney-bryce-hilton opened this issue · 7 comments

Hi,

Currently, one is able to assign hotkeys separately to open the next or previous Daily Note. And same for Weekly, Monthly, and Yearly notes.

This is great but has a lot of redundancy in at least how I use it (e.g., 8 key mappings). It would be great if you could assign a single key mapping for opening the next and previous periodic note, and have it automatically detect whether you currently have open a Daily, Weekly, Monthly, or Yearly note to then decide on whether that next note needs to be a Daily, Weekly, Monthly or Yearly note. I.e., conceptually I just want to go NEXT or PREVIOUS on whatever note type I am currently on.

Hope that makes sense.

Thanks for the amazing plugin

Support.
When I use calendar plugin only, I set hotkey: alt+↓=today, alt+→/←=next/previous day, and alt+↑=weekly note.

Since there is a structure (levels) in periodic notes, so I suggest just 4 hotkeys as default for quick navigate:
alt+alt+→/←=next/previous same level
alt+↑=to higher level
alt+↓: first note in lower level

Ah yea, I like the idea of being able to go 'up' and 'down' the levels of periodic notes too! Although the option to go down the hierarchy seems more complicated. Going down to the 'first note in the lower level' doesn't seem ideal, especially, for example if you have years worth of Daily notes.

Maybe instead, going down in note level could go do something like going to the first note in the lower level that falls within the higher level grouping. For example, if you're on a given Weekly note, going 'down' would take you to the first Daily note within that week. And if you're on a Monthly Note, it would take you to the first Weekly note of that Month. And so on

  1. Yeah, down should go to 1st note not of all but of the group defined by the uppper note.

  2. I use 1.0.0-beta.3 and get a unmentioned feature/bug:

  • only define hotkeys shift+right/left for next/prev daily note
  • but when u press shift+right/left, it also works in weekly/monthly/yearly notes.
    so the left/right movement is unified across all levels.
    wait up/down in future.

ps. before that, I define alt+down=today, alt+up=this week, alt+m=this month, alt+y=this year.

+1
It would be a great feature!

esm7 commented

Came here to open a FR for this, found it already exists so big +1.
Needing to assign separate hotkeys for "next daily note", "next weekly note", "next quarterly note" etc is too much for my fragile memory :(

I will note a workaround: since these bindings are only in use for the specified note type (e.g. next weekly note is only active in a weekly note, etc.) that you CAN bind the same hotkey for all of these. Obsidian will let you do this just fine, but it will complain that you have hotkey conflicts. In reality they don't conflict due to the way the plugin works, but Obsidian has no way to know that.

I've been doing this for some time with prev/next daily and weekly key bindings, and it works great.

ht00 commented

I will note a workaround: since these bindings are only in use for the specified note type (e.g. next weekly note is only active in a weekly note, etc.) that you CAN bind the same hotkey for all of these. Obsidian will let you do this just fine, but it will complain that you have hotkey conflicts. In reality they don't conflict due to the way the plugin works, but Obsidian has no way to know that.

I've been doing this for some time with prev/next daily and weekly key bindings, and it works great.

Obsidian does indeed let you bind the same hotkey for all these, but the keys do not behave like you said. It just defaults to the first binding. Say, if I initially assigned ctrl+f as the binding for the next weekly note, and then later also assign ctrl+f as the next daily note (creating binding conflict), pressing ctrl+f will work as intended when the active note is a weekly note, but it will default to the first ever weekly note if the active note is a daily note.

Same goes the other way. If I initially assign ctrl+f as the binding for the next daily note, and then later also assign ctrl+f as the next weekly note, pressing ctrl+f will work as intended when the active note is a daily note, but it will default to the first ever daily note if the active note is a weekly note.

Is there anything you're doing differently?