Home Download Buy Blog Forum Support

Plugin proposal/idea: "Find clashing keymaps"

Plugin proposal/idea: "Find clashing keymaps"

Postby hced on Thu Nov 08, 2012 3:44 pm

 
 
I have a plugin idea that I'm quite convinced would prove useful to the entire user spectra of Sublime Text:

"Find clashing keymaps"

My first incarnation of the idea just involved dealing with User vs Default (builtin) keymaps, but after a few seconds worth of imagination, I came to the assumption that it might be a hell of a perk if this could also account for Package keymaps. In fact, I assume it would probably help a lot of things in the package dev community. Regrettably, I'm not a programmer myself, so I'm not capable of creating this myself. Perhaps someone more competent than me picks the idea up and creates it?
 
 
Operational Workflow

    1.   Parse User/Default (OS).sublime-keymaps (A).
    2.   Compare with Default/Default (OS).sublime-keymaps to see which keymaps have been remapped in (A).
    3.   Parse user installed packages' *.sublime-keymaps and perform same task as in (2).
    4.   Output (console?) results: include filenames and lines of clashing keymaps.


Notes

    - The plugin should be intelligent enough to be able to associate "super+ctrl+i" and "ctrl+super+i" as identical.
    - BONUS REQ: differentiate between remapped keys vs. remapped actions.

Granted, this is a rough sketch and the steps could be more detailed and specified, e.g. step 4 (results feedback).
 
 
hced
 
Posts: 18
Joined: Sat May 14, 2011 3:32 pm

Re: Plugin proposal/idea: "Find clashing keymaps"

Postby bizoo on Thu Nov 08, 2012 3:48 pm

bizoo
 
Posts: 879
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Plugin proposal/idea: "Find clashing keymaps"

Postby skuroda on Thu Nov 08, 2012 9:20 pm

What great timing you have! As bizoo posted, I just posted something to do just this. Take a look. I'm looking for as much feedback as I can get, so let me know what you think!

Thanks.

https://github.com/skuroda/FindKeyConflicts
skuroda
 
Posts: 677
Joined: Fri Oct 05, 2012 8:11 am

Re: Plugin proposal/idea: "Find clashing keymaps"

Postby hced on Sat Nov 10, 2012 12:52 am

bizoo: oh :oops: Thanks for the tip, this plugin seems to do it quite nicely.
hced
 
Posts: 18
Joined: Sat May 14, 2011 3:32 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 9 guests