Skip to content

Bug: go_(next/prev)_heading jumps to lines starting with # in code blocks #17

Open
@mmirus

Description

@mmirus

When using the default ]] and [[ mappings to jump to the next or previous heading, lines in code blocks that start with # are also jumped to.

Given the example below, if the cursor started on the first line and I pressed ]] three times, I would jump to heading one, to the comment in the shell code block, then to heading 2.

Introductory content...

# Heading 1

```sh
# This is some example command:
some_example --command
```

# Heading 2
Yada yada...

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