Comments (7)
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.
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.
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.
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.
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.
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.
This should be in Atom core now.
from save-session.
Related Issues (20)
- content-to-restore isn't erased when an unsaved window is closed
- Is this still working with atom v1.2.1 ? HOT 11
- Uncaught SyntaxError: Unexpected token b
- do not work on os x HOT 1
- Re-deprecate save-session HOT 2
- can not save session HOT 3
- Can this saves file when I stops typing?
- Is there anything in Atom that makes this package possible now? HOT 1
- does not work osx
- Doesnt work on win10
- Uncaught SyntaxError: Unexpected end of JSON input HOT 1
- Uncaught SyntaxError: Unexpected token u in JSON at position 0 HOT 1
- Should not be depricated HOT 3
- Uncaught TypeError: this.promptToSaveItem(...).then is not a function HOT 10
- Multiple tabs Session save
- MAC OS X: Unable to close temp tab
- Uncaught SyntaxError: Unexpected token r in JSON at position 56
- Uncaught Callback must be a function HOT 7
- Uncaught TypeError: invalid options argument HOT 10
- Uncaught TypeError: Callback must be a function. Received undefined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from save-session.