Giter VIP home page Giter VIP logo

Comments (11)

nhooyr avatar nhooyr commented on August 24, 2024 1

IE the user shouldn't have to think about saving.

from xi-mac.

jansol avatar jansol commented on August 24, 2024 1

A timed autosave (every 5 minutes or whatever, might as well make it configurable) could also be okay. Personally I wouldn't use it in xi-mac, especially once state restoration is fully working, but it is a common feature in other applications and certainly holds value for some people.

from xi-mac.

nhooyr avatar nhooyr commented on August 24, 2024

Just like Intellij/Xcode etc.

from xi-mac.

jansol avatar jansol commented on August 24, 2024

Xcode doesn't autosave...

from xi-mac.

jansol avatar jansol commented on August 24, 2024

It does save on exit and on build, yes, but not continuously. Save-on-close could be an option. Building from xi-mac is not possible yet so that part is irrelevant (and would probably be the responsibility of the plugin that deals with building).

from xi-mac.

nhooyr avatar nhooyr commented on August 24, 2024

My bad, I will clarify. I meant save on lost focus which Xcode does do and sublime has an option for as well and jet brains IDE's all do by default.

from xi-mac.

jansol avatar jansol commented on August 24, 2024

That sounds like a reasonable option. Can you update the issue title and OP to reflect this? Something like "more save triggers". Maybe add a list of checkboxes for the various save scenarios so we can use this as a tracking issue.

from xi-mac.

jansol avatar jansol commented on August 24, 2024

The most difficult part about this would be the config I think? The core does not know about focus and not all frontends will have a concept for it so I'm not sure where the setting would belong. @cmyr thoughts?

from xi-mac.

nangtrongvuon avatar nangtrongvuon commented on August 24, 2024

This doesn't seem too tricky - maybe overriding windowWillResignKey and calling save in XiWindow would work.

from xi-mac.

cmyr avatar cmyr commented on August 24, 2024

This feels closely related to having state-restoration (xi-editor/xi-editor#913) / autosave implemented in general. I'm not a huge fan of overwriting files on disk until we're asked to explicitly (but maybe having this as an option makes sense) but I agree probably makes sense as a client feature.

from xi-mac.

nhooyr avatar nhooyr commented on August 24, 2024

Going to close as it has been a while and I'm not sure if this is relevant anymore.

from xi-mac.

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.