Skip to content

Reload jumps to the end of the doument #2304

Closed

Description

@Ausbildungsleiter

Describe your feature request

What I find annoying is that the editor jumps after a reload to the end of the document, so that I have to search everytime the position where I changed something - which of course is what I want to see right now.

What problem does this feature solve? [optional]

Usability for users with multi editors ( I use notepadd++ to edit) or settings with generated markdown. When I fix something in my generator and generate a new version of markdown text, I have to check it in the next step. And thgat is not always at the end. External spell checking could be another use case where jumping to the end would be annoying.

Activity

  1. joel-porquet commented on Feb 25, 2021

    @joel-porquet

    I am experiencing a similar bug. All of a sudden, the cursor jumps to the very end of a document and I have to scroll back up to where I was. I'm not sure where it is coming from.

  2. fuzzyharry commented on Dec 3, 2021

    @fuzzyharry

    Me too. After say 20 seconds the cursor jumps to the end of the file.
    v0.16.3

  3. indirection commented on Apr 6, 2022

    @indirection

    I am experiencing a similar bug. All of a sudden, the cursor jumps to the very end of a document and I have to scroll back up to where I was. I'm not sure where it is coming from.

    v0.17.1

  4. Ziflin commented on May 10, 2022

    @Ziflin

    This happens in v0.17.1 when opening files from the Sidebar (Opened files or Folder list). Every file that is opened from there is opened with the cursor at the end of the file which is quite annoying.

  5. lord-anador commented on Apr 1, 2023

    @lord-anador

    I have similar when switching between code mode and normal mode. To work around I select any piece of text just before switching and then after switching marktext doesn't jump to the end.

  6. JoJoJoJoSiah commented on Mar 31, 2025

    @JoJoJoJoSiah

    About every 30 seconds, my cursor jumps to the bottom. This basically makes this software unusable for me. Has anyone found a fix? I am syncing my files through Syncthing. Maybe it has to do with this, as someone else mentioned?

  7. JeremieBethmont commented on Apr 2, 2025

    @JeremieBethmont

    +1

  8. djlerman commented on May 27, 2025

    @djlerman

    When I have AutoSave on. The Curser jumps to the bottom of the document every 30 seconds or so. I assume right after an auto save.

  9. theryanbreck commented on May 1, 2026

    @theryanbreck

    I've got this issues, too. It's super annoying as it jumps to the end. I've condition myself to Ctrl+S often, but it would be nice if I didn't have to.

  10. added
    🐛 bug
    🪲 pri/major
    on May 16, 2026
  11. Jocs commented on Jun 23, 2026

    @Jocs
    Member

    Thank you for reporting this, and to everyone who left follow-up comments over the years.

    The scroll-position-on-reload behavior has been addressed in the current codebase. The loadChange path (triggered by external file changes via the filesystem watcher) now explicitly preserves the editor's scroll position before applying the new content and restores it afterwards — see the "Preserve scroll across external reload so the editor stays put" logic in the desktop renderer store. The autosave path does not reload content at all; it only writes to disk and marks the tab as saved, so it cannot cause a scroll jump on its own.

    If you are still seeing the cursor jump to the bottom on a recent build, it is most likely caused by a file-sync tool (e.g. Syncthing) writing the file back to disk shortly after MarkText saves it, producing a second filesystem-change event that MarkText treats as an external modification. In that case the scroll position should still be preserved through the same code path. If you can reproduce the issue on a current build without a sync tool involved, please open a new issue with the MarkText version and the exact steps.

    Closing this as resolved in the current codebase.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    🪲 pri/major🐛 bug🔭 area/editor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions