Giter VIP home page Giter VIP logo

Comments (7)

timhor avatar timhor commented on July 23, 2024

I'm not sure how this would work, since there's no cursor or selection to use as a starting point?

from obsidian-editor-shortcuts.

wenlzhang avatar wenlzhang commented on July 23, 2024

there's no cursor or selection to use as a starting point?

This indeed can be an issue. How about always make the first or last header as the staring point then?

from obsidian-editor-shortcuts.

timhor avatar timhor commented on July 23, 2024

Well, by 'starting point' I'm essentially referring to an anchor from which you would search for the next or previous heading. For example, if your cursor was on line 3, character 5 in edit mode, the command to Go to next heading would look for the next heading after that exact position. If you don't have a corresponding anchor in preview mode and instead always assign it to search from the first or last heading, it's not ideal for navigating between headings since you'd need to step through every single one.

from obsidian-editor-shortcuts.

timhor avatar timhor commented on July 23, 2024

If your use case is simply to jump between various headings while reading, I'd suggest using the Outline plugin (you'll find it under Core plugins). That will display a list of headings in the current file which allows you to click to jump to a particular heading.

from obsidian-editor-shortcuts.

wenlzhang avatar wenlzhang commented on July 23, 2024

That will display a list of headings in the current file which allows you to click to jump to a particular heading.

Thanks for the suggestion. However, with the outline plugin, one needs to use it to navigate among headings by clicking them in the side pane? Is it possible to navigate among headings by using hotkeys, without needing to open the side pane?

from obsidian-editor-shortcuts.

timhor avatar timhor commented on July 23, 2024

Ah, Outline doesn't support hotkeys as far as I'm aware. I just had a quick search though and found Quick Switcher++, which can be mapped to a hotkey. See if that works for you instead.

I can experiment with your original request at some point, but it'll be a while before I have the time to do that. I've tracked it here in the meantime: https://github.com/timhor/obsidian-editor-shortcuts/projects/1#card-76194970

from obsidian-editor-shortcuts.

wenlzhang avatar wenlzhang commented on July 23, 2024

I just had a quick search though and found Quick Switcher++, which can be mapped to a hotkey. See if that works for you instead.

Thanks for the help!

from obsidian-editor-shortcuts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.