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

A separate command for remapping all kinds of key shortcuts Code supports #1543

Open
rebornix opened this issue Apr 20, 2017 · 7 comments
Open

Comments

@rebornix
Copy link
Member

Our current remappers can only map keystorkes we registered in package.json but we can't do this for all kinds of key shortcuts. However we can provide a command to allow users to do that, by leveraging arguments of keybindings. For example

    {
        "key": "F3",
        "command": "vim.remap",
        "when": "editorTextFocus",
        "args": {
            "value": ["a", "b", "c", "<Esc>"]
        }
    }

F3 can enter Insert Mode, insert bc and quit Insert Mode. And we don't need to make our package.json dirty.

@WangRongda
Copy link

why this is not working for me?

@millionbonus
Copy link

The feature never work since it was born.
Time flies. I have been waiting for this to be fixed for 1 year....

@jpoon
Copy link
Member

jpoon commented May 3, 2018

To clarify, this is a feature request so the example posted above will not work.

@millionbonus feel free to make a PR.

@millionbonus
Copy link

@jpoon
OK~ It seems that I had misunderstood that the change log of v0.7.0 said "Added new remapping options to remap any key". So that I thought it should be able to work as the issue described.

New Features:
...
....
Added new remapping options to remap any key. #1543 As an example, this functionality can cover #1505 and #1452.

@cl51287
Copy link

cl51287 commented Nov 7, 2018

@millionbonus How do you solve this problem now? I have the same problem!

@cl51287
Copy link

cl51287 commented Nov 7, 2018

@jpoon Has this problem been solved?Has this problem been solved? I have encountered the same problem.

@solson
Copy link

solson commented Sep 9, 2020

This actually does work today, as I just explained on another issue,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants