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

FR: show current note in calendar #64

Closed
ksdavidc opened this issue Jan 6, 2025 · 4 comments
Closed

FR: show current note in calendar #64

ksdavidc opened this issue Jan 6, 2025 · 4 comments
Labels
enhancement New feature or request

Comments

@ksdavidc
Copy link

ksdavidc commented Jan 6, 2025

Another one for you.

Not sure if this is possible, feasible, or a good idea, so feel free to shut it down if it is impractical or just not to your taste, no questions asked.

Here it is: When browsing a given note from a certain day, I often find I want to access were created around that time. It would be convenient if I could make the calendar open in such a way to make that note's corresponding entry visible (keycode, command, mouse action/button?).
Likewise for daily notes, I often want to open a daily note that is near a note I am looking at, and it would be nice to make the currently viewed daily note entry visible in the calendar.

(as described, effectively, these are very similar cases, which i only separate out as they may involve different approaches or may actually be subtly different.)

@bartkessels
Copy link
Owner

Hello, thanks for your suggestion. I've tried to do something similar in the past based on the title of the periodic note. Thus the note with title 2025-12-31 would display all notes created on december 31st below the calendar. But because of my title template, this wasn't possible.

But from your suggestion I'm guessing you want to display the notes that are created on the same day as the note you have currently opened. Is that correct? And to ask some more, would you rather have the calendar automatically update when you open a file. Thus, if you open file a that's created on december 31st, all notes created on december 31st are displayed below the calendar. Or would you rather have to do something yourself before the notes created on the creation date of the current note are displayed?

@bartkessels bartkessels added the enhancement New feature or request label Jan 6, 2025
@ksdavidc
Copy link
Author

ksdavidc commented Jan 7, 2025

display the notes that are created on teh same day as the note you have currently opened

what I originally was thinking was make the calendar visible and either highlight (possibly select/activate) the entry for that day. I supposed taht would entail showing the corresponding entries as well.

do you mean display those notes in the area below the calendar, without necessarily affecting the selected date? would this replace what was originally there? would this change the display of the calendar itself (e.g. red current day notfication)?

automatically update

YOu mean always show the relevant date as I switch notes? not what I originally was thinking. I wouldn't want that as a default behavior, but it might be okay as an option to be used at certain times. I am not sure if that would serve me, but it could be useful for others.

You are raising a good question. Should the function of the two panels be disentangled. That's a step farther than I had gone. I could offer potential for practical uses, but I think the interface/gui would have to be carefully designed to make this not confusing (when there was a mismatch between the two.)

@ksdavidc
Copy link
Author

ksdavidc commented Jan 7, 2025

to clarify further, I think the difference between what I first imagined and what you suggested is that I was imagining the proposed functionality to be

  • adjustment of the displayed calendar month/day (which I now realize could be implemented with (C+) or without (C-)corresponding adjustment of the note list display area)

I think you are proposing:

  • adjustment of the note display (with (N+) or without (N-) corresponding adjustment of the calendar)

As far as notifications go, this creates a dichotomy between "date whose notes are being displayed below" and "date of currently displayed note."

All 4 of these might have merit, or be of use. As I use it now, in my particular use case, which is arguably not the most common, I could imagine C- as best, with C+ also okay. preferably toggleable. But that is not to say that would be the most..."popular"...use case.

@bartkessels
Copy link
Owner

Okay, I've given it some thought (and I am a bit biased because of the code 😄). I think the best method would be to update the calendar and the notes below. That means that if I have a note open (which is created on december 31st), it should update the calendar to highlight december 31st and below that display all other notes created on december 31st.

This is how I currently implemented this feature (I was working on the other feature request to display an indicator for the number of non daily notes, and I thought this was part of it). Thus in the upcoming release 1.13.0 this will be available as a command.

And as always, thank you for your suggestions if you have any other or encounter any bugs feel free to open up another issue. The same goes for this command, if it's not implemented as you expected/hoped for please let me know!

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

No branches or pull requests

2 participants