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

Unexpected behaviour when jumping to next header #342

Open
doak opened this issue Feb 9, 2020 · 1 comment
Open

Unexpected behaviour when jumping to next header #342

doak opened this issue Feb 9, 2020 · 1 comment

Comments

@doak
Copy link

doak commented Feb 9, 2020

As stated in documentation, ]] should jump to next header of same level.
Although not stated explicitly, I would assume that it jumps to the next upper level, if there is no same level. In contrast the current implementation jumps to a more nested layer which IMHO is not the desired behaviour. This is even more confusing if that level three is folded (not visible).

Please consider the following example:

* LEVEL 0
* LEVEL 1
** LEVEL 1.1
*** LEVEL 1.1.1
** LEVEL 1.2
*** LEVEL 1.2.1
*** LEVEL 1.2.2
* LEVEL 2
** LEVEL 2.1
** LEVEL 2.2
* LEVEL 3

Use ]] on LEVEL 1.2 jumps to LEVEL 1.2.1, but not to LEVEL 2 as I would expect.
If any case, documentation should express the designed behaviour explicitly.

I am using current master (v0.6.0-28-gc6cd668).

@doak doak changed the title Unexpected behaviour when jumping to next header (]]) Unexpected behaviour when jumping to next header Feb 9, 2020
@doak
Copy link
Author

doak commented Feb 9, 2020

Btw. jumping to previous header ([[) works like expected, hence there is a mismatch in behaviour.

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