[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: shortcut keys for commit and update

From: Denny Valliant <valliant_at_unm.edu>
Date: 2005-10-09 01:24:33 CEST

Jeff Holmes wrote:

> Is there any way to setup shortuct keys for subclipse tasks like
> commit or update? Right now the only way I can see to perform a commit
> within eclipse is to right click and select Team > Commit. I would
> like to be able to do this without having to use the mouse at all. In
> Eclipse 3.1.1 under Window > Preferences > General > Keys, there is
> the ability to create custom shortcut keys but none of the subclipse
> commands seem to be available. I see a command category for CVS which
> includes commit, update, etc. but nothing for a subverison repository.
> I assumed the commands would be under the Team category but the only
> options listed there are Repeat last synchronization and Synchronize.
>
> If a shortcut key isn't possible is there any way I can add the commit
> and update commands to the toolbar or is my only option right clicking
> and navigating the menu everytime?

I don't think there is a way. The commands aren't exposed in a way for
eclipse to grab them, more or less.

I've created a patch for the commit key to be bindable, but it only
updates the currently selected folder in the navigator view.
This works fine for me, as when I'm constantly commiting, it's usually
to one project, so I just leave it highlighted and have whatever files I
need open in the editor.

If I ever figure out how to clean up the "selected resource" part (I.E.
enable the current "being edited" file to be auto-selected, etc.) I'll
post it to the dev@ list, as well as add update; whatnot commands. I
don't see this happening anytime soon tho :-(.

If you feel up to it, it's a relatively simple matter. Just a few edits
to the ui plugin.xml and (the way I did it) copies of the original
action classes slightly modified to be "grabbable" by eclipse for such
stuff as key-binding, etc.

Theoritically. Obviously if it was sooooo easy, I'd've got it going by
now. ;-) I'm pretty sure it's something that an experienced java
programmer would make short work of. Experienced java coders seem to be
in short supply for the pro-bono work at the moment :-), and I don't
think it's a priority or even on anyone's radar but mine, so...

I've found my patch works 90% of the time, and it's amazing how often I
use it, so I'm like, stoked, as it is.
'course, making it easy to commit makes it easy to skip comments [log],
which is (in my opinion) bad.
At least I have the fire tho -if I burn myself it's my bad.

Bah.

The patch&source is at http://www.unm.edu/~valliant/subclipse I
believe... ~valliant should get you there.

If you fix it, feel free to post it to the dev list... ;-P

Happy weekend, if it's the weekend where you are. =-]
:Denny
Received on Sun Oct 9 09:24:33 2005

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.