Open ishirbhan opened 9 months ago
@ishirbhan Thanks for this detailed report.
The behavior you are seeing is due to the way the MeetingNote function looks to see if a note already exists. Because a MeetingNote uses a template, you could name a meeting note absolutely anything, and so you need to tell it the 2nd time what template to use (should be the same as you used before) and it will look for a note with the proper title (after template processing) and should ask you:
Is this not the behavior you are seeing?
All of this can be avoided if you set your meeting note template that the plugin should use in the Event Helpers plugin preferences:
In that case, it will never ask you for a template and it will jump straight to the "Note exists" selector above.
You would think that rewriting the "Meeting Note" link in the daily note to just point to the newly created note would be an easy thing to do, but it's not that easy given how x-callback links work, we don't know what link you clicked (or even what note you clicked in or whether you were in NotePlan at all) that sent you to the "create meeting note for event" function. I have asked @EduardMe before if he could provide us with this information, but I'm sure that's at the very bottom of his todo list. So it is what it is. I can imagine ways that the plugin could scan notes trying to guess at the link you clicked, but still, you would be guessing. And recurring events have the same ID, so they could be in every one of your daily notes. So the way it works seemed like a good compromise, especially with the template setting. Thoughts?
cc: @jgclark
My issue is actually not with being prompted for the template - I expect that and it's no problem.
The issue is that, once I create the note and go back to the daily note, I expect the Meeting Link would just take me to the note. However, it's not doing that. It's instead prompting me again for the template, and then gives me additional options once it finds the note already exists. Is this expected behavior?
@ishirbhan Yes that's how it's supposed to work given the limitations I described previously.
The issue is that a recurring calendar item has the exact same ID and so we need to know whether to create a note for this particular meeting or whether you want to have one note for the entire series. Also, you could have a name title collision with a note that already exists. Do you have suggestions on how to work around all of this? I really really wish we could rewrite the link. You clicked to know exactly what note you opened/created, but because that's not possible I'm not sure what the solution is. Ideas are welcome
I'm still not getting this to work...I have a non-repeating event that I created via clicking on the "Meeting Note" link after triggering my template for my daily note. The line is:
The link correctly prompts me for a template and then creates a note the first time I click it. When I go back my daily note, I expect this link will now link to the meeting note I just created. However, it again prompts for a template selection and tries to create a new note (and later prompts for options when it finds a note already exists).
My "Lunch" meeting note has the following line: Event: ![📅](2024-02-06 12:00:::FE77F2F7-FED9-4C56-BD28-1D7B9F77BF73:::NA:::Lunch:::#1BADF8)
The question is why are the ID of the meeting not match? I assume that's why the meeting note link is not leading me back to the note.
I have no problem getting to the note via the popup on the calendar sidebar.
Let's ask @EduardMe how he's doing it in the sidebar and if he can make the same available through the newMeetingNoteFromID function in np.MeetingNotes
@ishirbhan I have found a partial workaround, but one of the APIs I need is crashing NotePlan. So I have asked @EduardMe in Discord
@ishirbhan I think I have a solution for this. I uploaded the new MeetingNotes code. You need the latest Testflight beta of NotePlan to run it. I think a new release of NotePlan is coming out soon also.
Thanks, I’ve been meaning to try the beta. I’ll sign up for the TestFlight.
On Feb 12, 2024 at 7:34:59 PM, David Wertheimer @.***> wrote:
@ishirbhan https://github.com/ishirbhan I think I have a solution for this. I uploaded the new MeetingNotes code. You need the latest Testflight beta of NotePlan to run it. I think a new release of NotePlan is coming out soon also.
— Reply to this email directly, view it on GitHub https://github.com/NotePlan/plugins/issues/524#issuecomment-1939874536, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEUF5NUOGBLYXOD2LR2AXLYTKYLHAVCNFSM6AAAAABCTDC5NSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZZHA3TINJTGY . You are receiving this because you were mentioned.Message ID: @.***>
Based on quick testing on one meeting, it looks like it's fixed.
Describe the bug After inserting a list of events using the "insert todays events as list" command, the Meeting Note link will indeed create a new note, but it is not linked to the calendar event. Going back to the Meeting Note link on the calendar page will load the created note but instead will offer to create a new one. If I do this, it realizes the note already exists and gives me various options.
To Reproduce Steps to reproduce the behavior:
Expected behavior After Step 5, I expected the note I created in step 3 to load without prompting for a template or warning that the note already exists.
Screenshots If applicable, add screenshots to help explain your problem.
System
Additional context I'm thinking the issue is that the event ID's don't match between the event and the Meeting Note links:
Event link in today's note ![📅](2024-01-31 08:00:::E5FD21CC-5DB5-4E77-9C9D-6499183F9365/RID=728398800:::NA:::ClinOps/ CR AGT :::#1BADF8)
Event link in meeting note (the same) ![📅](2024-01-31 08:00:::E5FD21CC-5DB5-4E77-9C9D-6499183F9365/RID=728398800:::NA:::ClinOps/ CR AGT :::#1BADF8)
Link to Meeting Note in Event List Meeting Note
Plugin Console Log To provide us with more clues about where the bug/error is occurring...
NotePlan's menu > Preferences > Plugins
and clicking the settings "cog" icon next to the plugin in question. Scroll to the bottom and set the logging level to "DEBUG" and click "Save & Close"Noteplan > Help > Plugin Console