Skip to content

feature request: Support for Mode-Specific Keymaps in Oil Buffer #187

Closed
@mroavi

Description

Did you check existing requests?

  • I have searched the existing issues

Describe the feature

I would like the ability to specify the mode for a keymap in the Oil buffer. For example, I want to map the action.close function to the <Esc> key, but I only want this mapping to be active when in Normal mode. This means that if there is a visual selection active, pressing <Esc> should not close the Oil buffer. Instead, it should exit Visual mode and return to Normal mode, keeping the Oil buffer open.

I couldn't find information in the current documentation on how to accomplish mode-specific keymapping in the Oil buffer. If this is already possible, please do let me know.

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions