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

Feature request: Scroll to next/prev same level block #6

Open
Zachu opened this issue Mar 27, 2023 · 2 comments
Open

Feature request: Scroll to next/prev same level block #6

Zachu opened this issue Mar 27, 2023 · 2 comments

Comments

@Zachu
Copy link

Zachu commented Mar 27, 2023

Hey!

Thanks for the plugin! It feels really awesome for starters. I think it'll find its way to my workflow easily =)

I think it would be pretty useful to have in the jump menu something like CTRL+Down to jump to the next same level block or higher one so one could jump over some large amount of sub-blocks easily. CTRL seemed at least for me intuitive button to try at first if it would work like that already =)

So to explain with an example:

- First level1 
  - First level2
    - First level3
    - Second level3
    - Third level3
  - Second level2
  - Third level2
- Second level1
- Third level1

If I would be on the "First level2" block in the jump menu, I would want CTRL+Down to take me to "Second level2" (jumping over the sub-blocks of "First level2") and regular Down to "First level3" (like it does for now).

I think in a case where there is no same level block, like in following example:

- First level1 
  - First level2
    - First level3
    - Second level3
    - Third level3
- Second level1
- Third level1

Jumping from "First level2" with CTRL+Down should bring you to "Second level1" because it should still jump over the sub-blocks of the block one is currently at.

I guess it's a bit up for a debate how the reverse should work. CTRL+Up could take you to a parent block of the current one or have that kind of similar "to previous sibling or if none, to parent block"-functionality.

@freder
Copy link
Owner

freder commented Mar 27, 2023

it's on my list already ;)

not sure if it'll be a separate plugin or part of this one, but https://marketplace.visualstudio.com/items?itemName=aPinix.indent-jump is what I use in vscode, so I will probably make it similar to that.

@hacker-DOM
Copy link

The Vim extension has this functionality, but unfortutanely the only Api we have is logseq.Editor.scrollToBlockInPage, which also scrolls the screen, even if it is unnecessary. I would wait until we have a better Api :-) (also see vipzhicheng/logseq-plugin-vim-shortcuts#50)

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

No branches or pull requests

3 participants