Giter VIP home page Giter VIP logo

Comments (7)

mjdescy avatar mjdescy commented on July 28, 2024 1

Finally!

from todotxtmac.

mjdescy avatar mjdescy commented on July 28, 2024

I will look into developing this feature. It is one I would like to have.

from todotxtmac.

jrhorn424 avatar jrhorn424 commented on July 28, 2024

Would this be the appropriate issue to register interest for an auto-save feature, or should I open a new issue? What I want is for TodoTxtMac to autosave when the window loses focus, or if that isn't achievable, trigger a save event every half minute or so.

from todotxtmac.

mjdescy avatar mjdescy commented on July 28, 2024

@jrhorn424 Are you experiencing any data loss? The todo file should autosave within seconds of changes. TodoTxtMac does atomic saves rather than directly overwriting the file each time it autosaves (which is safer). Still, it should be pretty good about saving the file without any user settings necessary.

from todotxtmac.

jrhorn424 avatar jrhorn424 commented on July 28, 2024

I've noticed a couple of times that the doc on my mac gets out of sync with what is on dropbox on my phone. I've got my todo.txt files living inside my nvAlt notes folder (in dropbox), so there may be some sort of conflict there.

from todotxtmac.

jrhorn424 avatar jrhorn424 commented on July 28, 2024

I can't reproduce today. I do notice that nvAlt alerts me that the todo.txt~ gets removed from disk. I may have been working fast and hit cancel on the prompt to remove it from disk. Should I let that file hang around or delete it as nvAlt is indicating?

from todotxtmac.

mjdescy avatar mjdescy commented on July 28, 2024

Here's something interesting I noticed today. If you open your todo.txt file in TodoTxtMac and in TextEdit simultaneously, the todo.txt file is automatically refreshed in each app when changes are made in the other. Therefore, in some small way, TodoTxtMac already has auto-refresh enabled. The problem is, it just works with TextEdit!

I don't normally use TextEdit, so I never noticed this. Changes made in apps such as Sublime Text, or by file sync services such as Dropbox, do not automatically cause TodoTxtMac to refresh the file. Non-Apple text editors likely don't use the NSDocument model, like TextEdit and TodoTxtMac do, and therefore would require me to implement something to make auto-refresh work.

I'd like to get this working, but it is tough to get right.

from todotxtmac.

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.