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

[Feature request] Convert .sublime-keymap to .suricate-profile file #3

Open
Kristinita opened this issue Jan 14, 2017 · 2 comments
Open

Comments

@Kristinita
Copy link

Kristinita commented Jan 14, 2017

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

  1. Hotkeys can be used in other plugins.
  2. Captions in command palette easier to remember than hotkeys.

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+PKeyBindingsHelper: Convert Keymap To Suricate → I select package neediest in conversion → Enter → conversion will be made:

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:

Before:

[
    {"keys": ["ctrl+shift+c"], "command": "copy_block"},
    {"keys": ["ctrl+shift+x"], "command": "cut_block"}
]

After:

"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.

@r-stein
Copy link
Owner

r-stein commented Jan 15, 2017

I think such a conversion command would be better placed inside the suricate package.

@Kristinita
Copy link
Author

@nsubiron, what you think about it? Thanks.

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

No branches or pull requests

2 participants