Skip to content

Why does opleader create mapping in both normal and visual mode? #117

@mawkler

Description

@mawkler

Why does opleader create a mapping in both normal and visual mode? I noticed that the mapping I set for operator-pending mode appears as an xmap as well. Is there a specific reason for why it is set in visual mode as well? Is it even possible to perform an operator-pending command from visual mode?

From the README:

---LHS of operator-pending mappings in NORMAL + VISUAL mode
---@type table
opleader = {
    ---Line-comment keymap
    line = 'gc',
    ---Block-comment keymap
    block = 'gb',
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem rightquestionQuestion related to integration and other stuff

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions