Open Kristinita opened 7 years ago
It would be nice, if will be added feature — convert .sublime-keymap to .suricate-profile file.
.sublime-keymap
.suricate-profile
Some plugin developers not added commands in command palette. For example, developers Macroptimize, ConEmu, Filefinder, SyncFileYouWant, SublimeRestart and Zeal packages.
This is not good, because
Often I need to create commands in my command palette or change hotkeys manually. It may takes a lot of time.
Ctrl+Shift+P → KeyBindingsHelper: Convert Keymap To Suricate → I select package neediest in conversion → Enter → conversion will be made:
KeyBindingsHelper: Convert Keymap To Suricate
Before:
[ {"keys": ["$keys$"], "command": "$example_command$"}, ]
After:
"suricate_$example_command$": { "caption": "$Package Name$: $Example Command$", "keys": ["$keys$"], "call": "sublime.$example_command$", },
Example for CopyBlock package:
[ {"keys": ["ctrl+shift+c"], "command": "copy_block"}, {"keys": ["ctrl+shift+x"], "command": "cut_block"} ]
"suricate_copy_block": { "caption": "CopyBlock: Copy Block", "keys": ["ctrl+shift+c"], "call": "sublime.copy_block", }, "suricate_cut_block": { "caption": "CopyBlock: Cut Block", "keys": ["ctrl+shift+x"], "call": "sublime.cut_block", },
Thanks.
I think such a conversion command would be better placed inside the suricate package.
@nsubiron, what you think about it? Thanks.
1. Request
It would be nice, if will be added feature — convert
.sublime-keymap
to.suricate-profile
file.2. Justification
Some plugin developers not added commands in command palette. For example, developers Macroptimize, ConEmu, Filefinder, SyncFileYouWant, SublimeRestart and Zeal packages.
This is not good, because
Often I need to create commands in my command palette or change hotkeys manually. It may takes a lot of time.
3. Desirable behavior
Ctrl+Shift+P →
KeyBindingsHelper: Convert Keymap To Suricate
→ I select package neediest in conversion → Enter → conversion will be made:Before:
After:
Example for CopyBlock package:
Before:
After:
Thanks.