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

Automatic reloading #92

Closed
CyanMonkey opened this issue Dec 10, 2023 · 5 comments
Closed

Automatic reloading #92

CyanMonkey opened this issue Dec 10, 2023 · 5 comments

Comments

@CyanMonkey
Copy link

I have a cron job that runs vdirsyncer every 30 minutes to sync with a caldav server. However any new events/changes that are downloaded to my computer are not updated in calcure. I have to quit calcure and then reopen calcure for the new events to propagate.

I am planning to leave calcure running indefinitely in a tmux session with my MUA, neomutt, and detach and attach the session as needed.

Does anyone have any suggestions?

@anufrievroman
Copy link
Owner

anufrievroman commented Dec 11, 2023

I think it can be implemented. Would you prefer auto-reload every N minutes or reload upon key press? The little problem is that for some users it takes a long time to load huge ics files so it is not a default behavior.

Actually, I have exactly the same setup with tmux, neomutt etc, but most programs need to reloaded anyway, especially neomutt. But hopefully calcure will be more stable for long runs.

@CyanMonkey
Copy link
Author

I think the reload every N minutes would be best for me but I would be happy with any implementation you can come up with.

Perhaps add in both but give the user the option to toggle the reload after N minutes?

anufrievroman added a commit that referenced this issue Dec 11, 2023
This addresses issue #92 about ability to reload ics items. Now "Q" reloads all ics data.
@anufrievroman
Copy link
Owner

The most minimal implementation I could think of I just made in 4b44f3b Now pressing Q will reload ics user data. This will appear in the next version, or you can try by installing from main branch.

pipx install git+https://github.com/anufrievroman/calcure

About periodic reload I am not sure, I'll see how to better make it, because now we don't really measure past time in the program.

@CyanMonkey
Copy link
Author

That will work for me, Thanks a bunch :)

@anufrievroman
Copy link
Owner

Okay, then I'll close the issue, thank you for your suggestion.

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

No branches or pull requests

2 participants