sundevista / local-quotes

📜 Collect your quotes from all over the vault and embed them in different locations with refresh delays
https://sundevista.github.io/local-quotes/
MIT License
40 stars 1 forks source link

[FEATURE REQUEST] Auto refresh without reopening #25

Closed OmniNaut closed 11 months ago

OmniNaut commented 1 year ago

Describe the bug My understanding of the refresh argument within the code is that every X second/minutes/hours/days a new quote is loaded automatically. Somehow this does not work for me. When I'm in live preview or reading mode, the only way to (auto) refresh is to click the edit code block button, and then click out of it again or close and reopen the note.

To Reproduce Steps to reproduce the behaviour:

  1. Code block used:
    id 1
    search *
    refresh 5s

    image

  2. After 5 seconds it's still the same.
  3. Click edit this block
  4. Click outside of the code block
  5. Only now the quote is refreshed image

Expected behaviour Quotes are refreshed automatically (without any user input) refreshed within the given time interval.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

sundevista commented 1 year ago

It can refresh only after note reopen. After each opening, it checks whether refresh time is elapsed or not. So, actually, it's not a bug. But I can add it to the roadmap if you want this kind of refresh behavior.

OmniNaut commented 1 year ago

Yes as a new feature will be awesome. I use this plugin more in a dashboard (canvas) setting, so auto refresh without reopening will be 👍🏼

BTW, thank you for your work 🙏🏼

OmniNaut commented 1 year ago

Hi @decatetsu,

Any follow up on this request?

sundevista commented 1 year ago

Hello, @OmniNaut. I have to finish my exams these weeks, immediately after that I will start updating the plugin. I need to rewrite some components to fix issues with canvas, plus auto-refresh feature involves some rewriting.

sundevista commented 1 year ago

Development was abandoned for a bit because of my university tasks, sorry for waiting

OmniNaut commented 1 year ago

@decatetsu Don't worry, I was just checking in. University and exams have a higher priority, good luck the next weeks.

sundevista commented 11 months ago

@OmniNaut I'm happy to introduce you to automatic quote refreshing in the latest version (1.9.0)

OmniNaut commented 11 months ago

Awesome, thank you so much. Works as expected.