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

Settings option to open a file at the top or bottom #1407

Open
fxha opened this issue Sep 30, 2019 · 8 comments · Fixed by pencilheart/marktext#1 · May be fixed by #3122
Open

Settings option to open a file at the top or bottom #1407

fxha opened this issue Sep 30, 2019 · 8 comments · Fixed by pencilheart/marktext#1 · May be fixed by #3122
Labels
🦁 need discuss the issue or PR need to discuss 🦄 feature request New feature or request

Comments

@fxha
Copy link
Contributor

fxha commented Sep 30, 2019

Describe your feature request

We should add a settings option to open a file at the top or bottom because auto scroll to the bottom makes sense when continuing writing but I always need to scroll to the top of the document.

What problem does this feature solve? [optional]

It's really troublesome to scroll every file to the top.

@Jocs
Copy link
Member

Jocs commented Sep 30, 2019

A better solution is to remember the last closed cursor position?

@Jocs Jocs added the 🦁 need discuss the issue or PR need to discuss label Sep 30, 2019
@fxha
Copy link
Contributor Author

fxha commented Sep 30, 2019

A better solution is to remember the last closed cursor position?

I guess that's an advanced feature and could be integrated with sessions as metadata.

@fxha fxha added the 🦄 feature request New feature or request label Sep 30, 2019
@Jocs
Copy link
Member

Jocs commented Oct 1, 2019

I guess that's an advanced feature and could be integrated with sessions as metadata.

Yes!

@adrienbeau
Copy link

Like fxha, I find myself having to "go back to the top" way too often when I open a file. I understand that when working on a file, it is nice to be able to go back "where I last was".

An option to choose between the two behaviors would be nice to have.

Alternatively, a "smart" behavior could be implemented: if the file has been "recently" modified, then go back to the last cursor position; if it has not been "recently" modified, then go to the top when opening it. Depending on users (this could also be a setting...) "recently" could be "one week" for example.

@brainchild0
Copy link
Contributor

brainchild0 commented Jun 19, 2020

Please remember that the application already supports random access jumps to a different document location, only that currently the target location must be a heading. Perhaps some clever graphical representation is possible that includes in the side-bar table of contents a way to jump to the beginning or end of a document.

@karnh
Copy link

karnh commented Sep 13, 2020

Open a file at the top is very useful when using marktext to view already existing markdown files.

@brainchild0
Copy link
Contributor

My previous suggestion was to add a feature to the table of contents that supports jumps to the beginning or end of a document. Would this feature help with your needs?

@karnh
Copy link

karnh commented Sep 14, 2020

That will be really helpful for my use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🦁 need discuss the issue or PR need to discuss 🦄 feature request New feature or request
Projects
None yet
5 participants