Only discovered ST a couple of weeks ago and I’m already in love. Previously I used ultraedit which is a great editor but ST has all that it does, is just as fast and is so much more extensible and pretty.
The thing I missed the most was being able to press F3 to search for whatever text was selected. If nothing is selected it searches for whatever you last searched for in the find panel. I’ve put together a really simple plugin to match this functionality and it’s up here: github.com/CodeEffect/FindSelected My python is a little rusty as it’s been a while so your comments /feature requests / bugs / suggestions would be very much appreciated. Here’s the bumf:
[quote]Two additional search methods are available:
find_selected_next - If some text is selected then it is searched for and the cursor highlights the next occurrence of the text. If no text is selected then depending on the passed argument we either search for the last Find search term (“last_search”) or the clipboard (“clipboard”).
find_selected_previous - As above but we search backwards
This package doesn’t really add much in the way of new functionality, it just makes available existing functionality under one method or keypress. Previously to search for the last search term you would call the “find_next” method or to search for selected text you would call the “find_under” method. Now you can just call the “find_selected” method and depending on whether text is selected or not the appropriate built-in method is called for you. It’s a somewhat trivial change in behaviour but one I found that I missed greatly when migrating from UltraEdit. There is also the added ability to search for whatever is on the clipboard in one keypress.[/quote]
I can’t believe that the second plugin doesn’t exist in one form or another as it seemed like such an obvious requirement but I was unable to find anything after a quick google search (cue links to 10 other similar plugins ). Bound Keys github.com/CodeEffect/BoundKeys lists all key combinations from installed plugins (that aren’t ignored) from your platform. It presents the data in a sort of table and lists key combination, command, arguments and clashes with other key combinations including whether or not it’s been overridden and if so by which file. Again, any feedback / comments etc is very much appreciated. My next task will be to give it a bit of colour so if anyone has suggestions on the best route to accomplish that I’d be grateful for any advice.
The bumf again:
[quote]A plugin to list the contents of keymap files and indicate any clashes / overrides. Sublime Text 2 (sublimetext.com/2).
The plugin lists the contents of all installed sublime-keymap files from active plugins along with the user and default files. The last column of the table lists clashes of key combinations whilst he prescence of asterisks indicate that the combination is overridden by the other file.
The presented columns of data are: Key combination, command called, arguments to command and clashes.[/quote]
Both only tested on ST2 in windows but when I get round to sorting my broken RAID I’ll be able to test on nix too.
I really enjoyed putting those two together so if anyone has any ideas on a plugin they’d like built either post here or bung me a PM. If I’ve got the time and it’s not too much of a beast I’ll (probably!) have a go at putting it together.
Thanks for such a great app, will be buying a license shortly