Code Monkey home page Code Monkey logo

Comments (9)

lfos avatar lfos commented on July 30, 2024

I pushed a partial solution to the pu branch. With d483407 (Do not blindly overwrite files when saving, 2017-09-07), calcurse checks whether the data files were changed before saving. If they were, you can either overwrite, cancel or run the merge tool to keep both changes.

from calcurse.

lfos avatar lfos commented on July 30, 2024

I will look into implementing an auto-reload feature as soon as possible.

from calcurse.

randomizedthinking avatar randomizedthinking commented on July 30, 2024

Thanks a bunch!

from calcurse.

lfos avatar lfos commented on July 30, 2024

I looked into it but it is a bit more involved than I thought. For example, it is not clear what to do if an appointment is deleted in the data files and the reload is triggered while the user is currently editing that appointment...

from calcurse.

randomizedthinking avatar randomizedthinking commented on July 30, 2024

from calcurse.

lfos avatar lfos commented on July 30, 2024

Discarding the editing is not a good idea because the user will be surprised. I think we should rather turn off the automatic reload temporarily during any interactive edit operations...

from calcurse.

mvhulten avatar mvhulten commented on July 30, 2024

I agree with @lfos: in normal operation check for and update changes. When editing a new appointment, todo or note, don't do that.

But then you don't cover some common synchronisation issues, which you appear to cover with your patch.

Does CalDAV accomplish the same? Or does that have disadvantages, e.g. overkill, over a solution within calcurse?

from calcurse.

lfos avatar lfos commented on July 30, 2024

I don't quite understand. How is CalDAV an alternative to reloading files once changes are detected?

from calcurse.

mvhulten avatar mvhulten commented on July 30, 2024

@randomizedthinking wanted to use calcurse at different machines and be sync'ed between them. Would CalDAV not do that (with the need of a CalDAV server, of course)?

Though even if one would accept this as a solution for synchronising between different calcurse sessions, there may be additional reasons for wanting to check for changes.

from calcurse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.