You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
mroavi
changed the title
Feature request: Support for Mode-Specific Keymaps in Oil Buffer
feature request: Support for Mode-Specific Keymaps in Oil Buffer
Sep 26, 2023
Did you check existing requests?
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.
The text was updated successfully, but these errors were encountered: