Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Quit mode keymaps #1434

Closed
AlgusDark opened this issue May 3, 2024 · 1 comment
Closed

Rename Quit mode keymaps #1434

AlgusDark opened this issue May 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@AlgusDark
Copy link

AlgusDark commented May 3, 2024

Is your feature request related to a problem? Please describe.
Hi, I would like to request a feature to have different quit mapping for rename when I'm in different modes. For example, I would love to quit the rename with "" or "q" only when I'm in normal mode; but I would like to be able to quit, when in other mode with "".

Describe the solution you'd like
Maybe a table on the config would be nice solution:

{
  rename = {
    in_select = false,
    keys = {
      quit = {  -- if a string, then applies to {"n", "i", "x"}
            {"n"} = "q",
            {"i", "v"} = "<C-K>",
          },
        },
    },
}
@AlgusDark AlgusDark added the enhancement New feature or request label May 3, 2024
@AlgusDark
Copy link
Author

I was able to do this with autocommands, so it's not really neccesary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant