Skip to content

Idea: add basic analysis for the context of conflicting keymaps #2

@bizoo

Description

@bizoo

This is one of my overlap conflict:

 [ctrl+shift+r]
   delphi_switch_head_body                  Delphi                [{"operator": "equal", "operand": "source.pascal", "key": "selector"}]
   (ctrl+shift+r,ctrl+shift+c)
     python_regenerate_cache                User                  [{"operator": "equal", "operand": "source.python", "key": "selector"}]
   (ctrl+shift+r,ctrl+shift+d)
     goto_python_definition                 User                  [{"operator": "equal", "operand": "source.python", "key": "selector"}]

Actually, it's not a conflict because this keymap is used for different selector.
Maybe you can analyze the context of the keymap to remove these keymaps from conflicts.

Another candidate could be this:

 [ctrl+v]
   paste                                    Default               
   fuzzy_clipboard                          FuzzyFileNav          [{"key": "fuzzy_paste"}]

or this:

 [home]
   move_to                                  Default               
   repl_home                                SublimeREPL           [{"operator": "equal", "operand": true, "key": "setting.repl"}]

Usually, I think that this kind of test are used to enabled a keymap only in a very limited scope, so it's not really a conflict, but there's no way to know it for sure.
Maybe putting these conflicts in another section of the report is a good idea.

Thanks again for your work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions