coreh-deprecated / nide

Beautiful IDE for Node.js
http://coreh.github.com/nide/
712 stars 111 forks source link

Stateful Per-File Cursors? #35

Closed cmundi closed 12 years ago

cmundi commented 12 years ago

Is it feasible for nide to remember the last-known cursor position within a file and return to that position the next time the file is selected/opened? This would not have to persist across sessions.

coreh commented 12 years ago

Hmm, yeah.

The CodeMirror editing component is currently destroyed whenever you switch between files. Perhaps we could just hide it?

To keep memory usage on a sane level, if there are more than a set number of components (say 10 or 20) we could just destroy the least recently used one.

cmundi commented 12 years ago

That sounds very reasonable. On Dec 31, 2011 11:44 AM, "Marco Aurlio" < reply@reply.github.com> wrote:

Hmm, yeah.

The CodeMirror editing component is currently destroyed whenever you switch between files. Perhaps we could just hide it?

To keep memory usage on a sane level, if there are more than a set number of components (say 10 or 20) we could just destroy the least recently used one.


Reply to this email directly or view it on GitHub: https://github.com/Coreh/nide/issues/35#issuecomment-3322419

coreh commented 12 years ago

@cmundi: This is now implemented in master, and will ship with the next version.

cmundi commented 12 years ago

Pure genius. I am really enjoying nide on my current project. On Jan 3, 2012 7:00 PM, "Marco Aurlio" < reply@reply.github.com> wrote:

@cmundi: This is now implemented in master, and will ship with the next version.


Reply to this email directly or view it on GitHub: https://github.com/Coreh/nide/issues/35#issuecomment-3349661