Skip to content

Navigate to next / previous page with arrow keys #5221

@senekor

Description

@senekor

Is your feature request related to a problem? Please describe.

I'm used to mdbook, where one can navigate to the next page with the right arrow key and the previous page with the left arrow key. I really like that feature for efficient skimming of documentation. As far as I can tell, I have to navigate vitepress pages with the mouse.

Describe the solution you'd like

Provide some way to navigate vitepress pages with the keyboard. Ideally, right arrow navigates to the next page, left arrow to the previous one.

Describe alternatives you've considered

No response

Additional context

I have struggled to add this feature myself by customizing the default theme. I don't know much about Vue. Any tips to get this working myself are also appreciated!

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions