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

Navigate "views" in addition to cursor position #20

Open
notuntoward opened this issue Oct 21, 2023 · 0 comments
Open

Navigate "views" in addition to cursor position #20

notuntoward opened this issue Oct 21, 2023 · 0 comments

Comments

@notuntoward
Copy link

notuntoward commented Oct 21, 2023

Thanks. This is almost what I was looking for. It's good for jumping around on a singe page -- already a big plus -- but it doesn't work well when flipping between pages. It seems to be looking for literal cursor positions, so if you skip through pages without going into a mode where you can place a cursor, then the trail is lost.

Seems like function of the native obsidian page forward/back functions could be combined in with this.

In the combination, I can imagine a back or forward navigation doing the following:

If no cursor position has been established on the current page,

  • then go forward/backward in the page history, placing the cursor in that page's last position, if it has one.
    elseif there is a cursor history on the current page
  • navigate to it
    else
  • navigate page history

I'm sure there corner cases...

Another way could be going forward and backward between "views" like some pdf viewers do, where you move the cursor around if the view within the page hasn't changed; undo/redo scrolling if it has, and then move between pages if the page changes, restoring the past view and cursor position on that page.

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

No branches or pull requests

1 participant