Git Product home page Git Product logo

Comments (7)

mpeterson2 avatar mpeterson2 commented on July 25, 2024

It kind of is supported now since Atom automatically scrolls down to the cursor position when it is set, but if you scroll away from that position, it of course won't remember that.

Supporting it fully shouldn't be too hard though. My only worry is that it may slow the system down since the package hasn't been optimized at all yet. I'll look into this for sure though.

from save-session.

gespinha avatar gespinha commented on July 25, 2024

Yes, but since the cursor can only be on one file at once, the scrolling only saves for the last file that is selected. You should try to mimic Sublime Text's behaviour, since its what most users are used to.

It would be perfect if the package saved the exact scrolling location or at least the cursor position on every single page.

It still great as it is, you've done a really good job on this, but every single aspect matters on a decent workflow ;)

from save-session.

mpeterson2 avatar mpeterson2 commented on July 25, 2024

I just released an update that is working towards supporting this. It's certainly not 100% there yet, but it will restore the position kinda. Unfortunately, Atom's scroll control is a bit lacking, so this was a little more difficult than I was expecting.

Atom doesn't seem to create a consistent experience with scrolling at all. When it receives a command to scroll to a line, it will only scroll to it if it isn't already visible. It also doesn't seem to care where the line ends up. There is an option to center it, but it doesn't seem to work all the time.

It's getting there, but I wouldn't call it complete yet.

from save-session.

gespinha avatar gespinha commented on July 25, 2024

Yeah it seams its still hardly working, but in time this will get there, this feature working fine is one those that is missing to make me swap from Sublime Text to Atom full time, thanks!

from save-session.

sarod avatar sarod commented on July 25, 2024

In what update is this supposed to work.
I'm using save-session 0.11.0 on atom 0.152.0 and this doesn't seem to work.

from save-session.

mpeterson2 avatar mpeterson2 commented on July 25, 2024

It doesn't work quite yet. As of 0.9.9, there has been some experimental code to test if it will be possible or not. For some more information, read my last post on this issue.

I haven't worked on this project in a while because I haven't had the time. If anyone wants to take a look at it, I'd be happy to accept pull requests though.

from save-session.

mpeterson2 avatar mpeterson2 commented on July 25, 2024

This should be in Atom core now.

from save-session.

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.