Link Details

Link 137194 thumbnail
User 282629 avatar

By sandipchitale
via code.google.com
Published: Nov 30 2008 / 06:45

Clips Eclipse (3.2 and above) plug-in This plug-in supports cut/copy/paste and management of multiple snippets of text. * Commands * Copy text selected in text editor as a clip `Alt+Shift+X Alt+Shift+C` * Cut text selected in text editor as a clip `Alt+Shift+X Alt+Shift+X` * Copy Clipboard text content as a clip `Alt+Shift+X Alt+Shift+B` * Paste clip in active text editor `Alt+Shift+X Alt+Shift+V`. The pasted text is left selected. If this command is invoked again within ~1 sec the successive clips are pasted. * Rotate Clips Up `Alt+Shift+X Alt+Shift+9` * Rotate Clips Down `Alt+Shift+X Alt+Shift+0` * Swap top two clips `Alt+Shift+X Alt+Shift+6` * Clips View * Clips View Actions * Paste first selected clip in the active text editor * Remove selected clips * Remove All clips * Rotate Clips Up * Rotate Clips Down * Swap top two clips * Clips preferences page * Automatically create clips after Cut or Copy commands * Number of clips to store Update Site http://clipseclipseplugin.googlecode.com/svn/trunk/ClipsUpdateSite/
  • 5
  • 1
  • 1599
  • 295

Comments

Add your comment
User 234189 avatar

kirlich replied ago:

0 votes Vote down Vote up Reply

Nice idea. I suggest that you reconsider your shortcuts since Alt+Shift+X is prefix shortcut to run stuff from current context like:

Alt+Shift+X, J run Java application
Alt+Shift+X, T run JUnit test
Alt+Shift+X, Q run Ant build
and more

I'm not sure for others but I use this to run (or debug with Alt+Shift+D prefix) stuff in eclipse, so Clips shortcuts would get in the way. Even if they can be configured in Clips preferences (I don't see it on preferences page), it would be nice if default ones are changed not to conflict with eclipse Alt+Shift+X

User 282629 avatar

sandipchitale replied ago:

0 votes Vote down Vote up Reply

The key bindings for the commands can be changed using the standard General:Keys preferences page to your liking.

I am open to changing the default key bindings if anyone can suggest better key bindings. I chose the current set of key bindings because they were:

- available
- somewhat similar to standard Cut (Ctrl+X), Copy (Ctrl+C), Paste (Ctrl+V) - in the sense of use of X, C, and V keys
- (relatively) easy once you have your fingers on (Alt+Shift) keys

BTW I have made additional changes to the plug-in. Get the latest.

User 234189 avatar

kirlich replied ago:

0 votes Vote down Vote up Reply

I made my previous comment before I actually tried shortcuts, and from quick read I was convinced (wrongly) that:

Alt+Shift+X Alt+Shift+C

were two shortcuts (for two different commands). Now I see that Alt+Shift+X is used as prefix in same sense as for run commands. I'm aware that one can configure shortcuts in Preferences -> General -> Keys but I made suggestion since I thought default ones would conflict with run shortcut. So, regarding my initial concern your shortcuts are OK. But anyway I would suggest following key bindings:

Alt+Shift+X, C - Copy
Alt+Shift+X, X - Cut
Alt+Shift+X, V - Paste
(same for: B,0,9)

They are all available, at least in my case, they are similar to standard Cut,Copy,Paste (as you've said:"in the sense of use of X, C, and V keys"), and they are similar to other bindings that have prefix, like run where you don't keep your fingers on Alt+Shift keys.

Other suggestion would be to see if there is available prefix combination, say Alt+Shift+Q, and make that combination as a prefix for all Clips commands.

User 282629 avatar

sandipchitale replied ago:

0 votes Vote down Vote up Reply

I will try your suggestion.

The reasoning behind my using Alt+Shift in the second keystroke is to not have to remember/quickly manage to lift the fingers on Alt+Shift keys before you type the second key stroke. This reasoning becomes even more compelling for the paste case which cycles through the clips in place when you repeatedly type Alt+Shift+X Alt+Shift+V (pastes first clip)...within one second...Alt+Shift+X Alt+Shift+V (pastes second clip) and so on.

User 282629 avatar

sandipchitale replied ago:

0 votes Vote down Vote up Reply

Lots of improvements. Check them out at the Google code project page.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (5)



Voters Against This Link (1)