Skip to content

VSCode: One-way and/or on-demand cursor sync #2204

@fredcallaway

Description

@fredcallaway

First off, incredible work on this project. Thank you.

Is your feature request related to a problem? Please describe.
I find that the sync feature is basically unusable because it jumps back to the top of the file when I switch to another file and then back to slides.md (if that's not expected behavior, I can file a bug report). More generally, I want to have complete control over their cursor position, without sacrificing the convenience of seeing the slide I'm currently editing.

Describe the solution you'd like
Two parts (either one would be help a lot; both would be ideal)

One-way sync: the preview updates to the position of the cursor but not vice versa. The plugin never changes cursor position.

On-demand sync: add a command that sets the preview slide to the slide the cursor is on (and perhaps also one in the other direction). This is like a "one-shot" version of sync. If you're a latex person, this is how overleaf and the latex-workshop extension work.

Describe alternatives you've considered
I was able to hack the one-way sync using a multi-command that turns sync on and then off immediately. I'm posting this anyway because I think many other users would benefit from the feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions