-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Keymap Wrappers | ||
|
||
As described in the [README](../README.md) in the root of this repository, it is required to write a keymap wrapper for a keymap extension so that the keymap works combined with this Keyboard Macro extension. | ||
|
||
A keymap wrapper is a list of keybindings to wrap each keyboard shortcut of a keymap to enable it to record. | ||
|
||
To use a keymap wrapper, you simply insert the whole keybindings into your `keybindings.json`. | ||
|
||
While you can create your own keymap wrapper for your favorite keymap extension by hand-writing, it is better to use a script to generate one based on the `package.json` of the keymap extension. | ||
|
||
And of course the more better way is to use existing keymap wrapper. | ||
|
||
## Available Keymap Wrappers | ||
|
||
| Keymap extension | Extension ID | Keymap wrapper | | ||
| ---------------- | ------------ | -------------- | | ||
| Vz Keymap | `tshino.vz-like-keymap` | [tshino.vz-like-keymap.json](tshino.vz-like-keymap.json) | | ||
|
||
I am currently working to add more keymap wrappers to support some popular keymap extensions. | ||
|
||
## Making a Keymap Wrapper | ||
|
||
1. `git clone` this repository | ||
2. Run `npm install` | ||
3. Make a config file for a new keymap wrapper in the `keymap-wrapper` directory. The file name should be in the form of `{EXTENSION-ID}.config.json`. | ||
4. Run `npm run update-keymap-wrapper` (on bash) which downloads `package.json` of each target keymap extension into `keymap-wrapper/tmp` directory and generates and writes a keymap wrapper file into `keymap-wrapper` directory. (or run `node generator/gen-keymap-wrapper.js` to skip downloading) |