4
15
Fork
You've already forked app
3

Editor returns to top of file when switching from preview mode #12

Closed
opened 2026年06月26日 05:20:07 +02:00 by JohnBlommers · 2 comments

The editor returns to the top when switching from preview mode

After checking the preview one returns to the editor only to find it's lost your place and scrolled back to the top. This is super annoying.

Proposed solution

The editor needs to remember the place it was last editing so the user can quickly return where they left off.

Alternatives considered

Why not have a live preview pane next to the editor pane, optionally visible perhaps.

Or perhaps the user can simply have a terminal open with typst watch file.typ running while having file.pdf open.

<!-- Thanks for the idea. A clear problem statement is more useful than a pre-decided solution; it leaves room for the best design. --> ## The editor returns to the top when switching from preview mode After checking the preview one returns to the editor only to find it's lost your place and scrolled back to the top. This is super annoying. ## Proposed solution The editor needs to remember the place it was last editing so the user can quickly return where they left off. ## Alternatives considered Why not have a live preview pane next to the editor pane, optionally visible perhaps. Or perhaps the user can simply have a terminal open with `typst watch file.typ` running while having `file.pdf` open.
Owner
Copy link

Thanks for noticing this, I had fixed that at one point in the past and must have undone it. I will look into it for the next update.

I'd been thinking about making side-by-side panes show updates but wasn't sure how useful it would be so it's good to know someone would take advantage of that.

Thanks for noticing this, I had fixed that at one point in the past and must have undone it. I will look into it for the next update. I'd been thinking about making side-by-side panes show updates but wasn't sure how useful it would be so it's good to know someone would take advantage of that.
Owner
Copy link

Hello, the return-to-top issue should no longer occur (editor should keep its position when switching back from viewing mode) as of f2f85ea0c2. The latest 26.7.2 release ought to work properly. I'll need some time (coming back to this next month) to give more thought to a sync side-by-side. Thanks for reporting!

Hello, the return-to-top issue should no longer occur (editor should keep its position when switching back from viewing mode) as of f2f85ea0c2. The latest 26.7.2 release ought to work properly. I'll need some time (coming back to this next month) to give more thought to a sync side-by-side. Thanks for reporting!
Sign in to join this conversation.
No Branch/Tag specified
main
v26.7.3
v26.7.2
v26.6.18
v26.6.16
v26.6.14
v26.6.12
26.6.10
v26.6.10
v26.6.8
26.6.6
v26.6.2
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
InkyCap/app#12
Reference in a new issue
InkyCap/app
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?