Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remember and restore the line:column cursor and document scroll position for recent files #2725

Open
dandv opened this issue Jul 6, 2016 · 10 comments

Comments

@dandv
Copy link

dandv commented Jul 6, 2016

  1. Open a file
  2. Scroll to the end (common if working on, say, a book)
  3. Close the file
  4. Open the file again, to continue working on your book

Notice the cursor position is 1:1, instead of where you left off.

@dandv
Copy link
Author

dandv commented Aug 31, 2016

Bountysource

@dandv
Copy link
Author

dandv commented Sep 3, 2016

Kate supports this. Convince me not to switch.

@elextr
Copy link
Member

elextr commented Sep 4, 2016

To paraphrase Stallman, the father of open source, "we make the software because we want to, we are happy if its useful to others, but we do not gain from having users, and we are sad but we do not lose if they use another tool".

@dandv dandv closed this as completed Jan 2, 2019
@dandv
Copy link
Author

dandv commented Jan 4, 2019

Issue still present in v1.33. Cursor positions are saved for the open tabs when Geany is restarted, but not when a file is re-opened from Recent Files.

@dandv dandv reopened this Jan 4, 2019
@eht16 eht16 transferred this issue from geany/geany Mar 29, 2019
@eht16
Copy link
Member

eht16 commented Mar 29, 2019

You could have a look at the GeanyNumberedBookmarks plugin which has feature close to what you request, it can save fold states and bookmarks for documents and restores them when the document is opened again.
Currently, it does not yet support restoring line number and column but it is probably easiest to implement in this plugin as there is already the infrastructure for saving settings per document and your feature is close to bookmarks.

I just transferred this issue to the Geany-Plugins project where the GeanyNumberedBookmarks plugin lives.

@elextr
Copy link
Member

elextr commented Mar 29, 2019

@dandv BTW which plugin are you expecting to do this?

@dandv
Copy link
Author

dandv commented Jan 10, 2021

@elextr: I expect Geany core (not a plugin) to remember the cursor and scroll position for recent files, and restore them when the file is opened again.

@dandv dandv changed the title Retain the line:column position for recent files Remember and restore the line:column cursor and document scroll position for recent files Jan 10, 2021
@elextr
Copy link
Member

elextr commented Jan 10, 2021

@dandv this is the plugins issues, thats why I asked.

@dandv
Copy link
Author

dandv commented Jan 11, 2021

@elextr - super weird. No idea why I created this issue here and not in the geany repo.

Can an admin please transfer the issue in the other repo?

CC @geanyadmin, @eht16, @ntrel

@codebrainz codebrainz transferred this issue from geany/geany-plugins Jan 11, 2021
@elextr
Copy link
Member

elextr commented Jan 11, 2021

Could add cursor position to the end of recents filenames, that would allow the cursor to move to where it was (or as near as possible if the file changed and its now past the end) and that would be onscreen. Similarly could do getfirst visible and set first visble to scroll position.

A well written pull request would probably be accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants