vipzhicheng / logseq-plugin-block-calendar

A block calendar for Logseq.
MIT License
37 stars 13 forks source link

right click copy date link #24

Closed marcocolnaghi closed 1 year ago

marcocolnaghi commented 1 year ago

Hi, thanks for your nice plugin!

I suggest this simple feature: right click on a day copies to clipboard the day link.

This allows the user to put day reminders simply pasting it in a block

i.e. in my logseq I have date format YYYYMMDD

left click on 13 December opens the page 20221213

it would be very useful if right click on 13 December puts in clipboard [[20221213]]

Thanks

vipzhicheng commented 1 year ago

I need to ask Logseq Team. As I tested, I can not catch the right click event using current API.

marcocolnaghi commented 1 year ago

Hi Richard, thanks for your kind reply, I understand. For desktop could it be possible to use Ctr+Click for date copy?

Thanks, Marco.

On Fri, Dec 16, 2022 at 7:00 PM Richard Yu @.***> wrote:

I need to ask Logseq Team. As I tested, I can not catch the right click event using current API.

— Reply to this email directly, view it on GitHub https://github.com/vipzhicheng/logseq-plugin-block-calendar/issues/24#issuecomment-1355324394, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO3JJMHHXH2FFQ3PU4FNWH3WNSU2RANCNFSM6AAAAAASW3MG6E . You are receiving this because you authored the thread.Message ID: @.***>

vipzhicheng commented 1 year ago

Hey, I just release a version, it now supports cmd+click on Mac and ctrl+click on Windows to copy the calendar date to the clipboard. But for the current version I did not add [[ and ]] to surround the date, I guess someone may not need this.

What do you think. It's OK or need an option to let you can copy [[20221213]] format to the clipboard?