Giter Club home page Giter Club logo

Comments (1)

dschuyler avatar dschuyler commented on August 25, 2024

Thanks for asking. Here's what I just tried (to check whether it's working for me)
On OSX:

  1. we file_name
  2. type "one" (or any text), ctrl+s, ctrl+q
  3. reopen the file with we file_name
  4. ctrl+z to undo (works), ctrl+y to redo (works)
    Please let me know if the above works for you (i.e. it may take something more for me to see the issue - it's super helpful to see the issue for me to fix it).

What's happening to make it work:

  • When ci_edit starts up it (tries to) creates a directory in the user's home directory called ".ci_edit".
  • It will then save undo information at "$HOME/.ci_edit/history.dat".
  • The code that saves the file history (undo info) is in "ci_edit/app/history.py" (if you're a programmer you're invited to have a look, if you're not a programmer no worries - I'm happy to help)
  • Something that's a bit iffy is that the file history is stored entirely by the file contents (hash). So if two files have the identical content they are considered the same file in the eyes of the undo history. If you're using two files with identical content and one seems to lose undo information, this could be the issue (and would be something I'd want to fix/change).

from ci_edit.

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.