Skip to content

goto_split spatial directions should wrap #8406

@mitchellh

Description

@mitchellh

Discussion: #6826

All our previous/next bindings across tabs and splits wrap. I think it makes sense for the spatial directions to wrap as well.

To achieve this, the wrapping should still be spatially aware. The best way to achieve this is conceptually duplicate the grid in the direction you're going, and find the next plausible target. For example, if you're at the top and do a goto_split:up, it should act as though you're below the bottom in the same x/y and go up. This will give the most expected behavior, I believe.

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