Viewing By Entry / Main
November 4, 2005
This request was a bit more vague so I really need your help here in defining this!

A couple of people asked for a way to bind specific keyboard shortcuts to snippets but that's not really possible with the way Eclipse handles shortcuts. That's why you have the keyword followed by a key command (shift-control-.) to insert shortcuts. Of course, we're open to suggestions on improving that so feel free to download the CFEclipse source and try stuff out...

Other than that specific issue, folks asked for "improvements" and "better customization" so let's have some comments around that, nailing down what it is you really want.

A general impression I get is that folks would like to see a HomeSite-compatible set of keyboard shortcuts where possible. What about situations where a HomeSite keyboard shortcut differs from, say, a Dreamweaver shortcut or a Flex Builder 2 shortcut or some other Eclipse plugin? Is consistency within Eclipse more important? Is Dreamweaver compatibility also a desire?

What specific keyboard shortcuts do you miss?

Comments

I may be off here as it has been a while since I last used CFEclipse (my laptop just bogs down with Eclipse).

But, I would like to use CTRL-U for upper and CTRL-L for lowercase. I have tried, many times, to map these both with the Eclipse setting window and I haven't ever gotten both to work consistently.

More than likely this is something I am doing wrong.

On a different, but, related note: Many of us in my office use different editors. Along with that we have grown accustomed to different keymaps. For instance some guys like vi, some like brief, others like the standard "windows" keymap (I don't know what it is called). It would be handy if there were a way to quickly switch between these different "standard" keymap settings. (if that already exits - well, then maybe I should mess with Eclipse more before talking again :O) )


On the topic of shortcuts, the way to do it is simply to allow the user to define their shortcuts as they prefer, as Homesite does it (or better than Homesite). That's the only way shortcuts are really going to really work. I've read the comments about how "this isn't possible in Eclipse" - similar to the word wrap issue.

I'm sure that's the argument that won the day at Microsoft many a time - "Well, those user requirements don't really fit with our codebase, so why don't we just do it this way ... ". It's also the argument that seems to have launched Alan Cooper's career as an interaction designer - in the diametrically opposite direction.

It's kind of funny actually to recognize his "Inmates are running the asylum" observation at work here, in an application built for developers by developers.

WORD WRAP? NO! ... it's easier to use the horizontal scroll bar for every line that's wider than the window!

CUSTOMIZABLE SHORT CUTS? NO! ... it's easier to make everyone use and memorize a standard set of shortcuts that we define for them!

This is a light-hearted post, btw! I'm giggling to myself as i write this out. Sean, you know, maybe we could convince Raymond Camden set the default width of the BlogCFC layout to 2850 pixels and release it as an update so we could all learn to enjoy that horizontal scroll bar feature.

;) Nando


I know this isn't really part of CFEclipse, but I totally miss the Control-Shift-U for uploading the current file. I haven't found a way to make a shortcut key to upload files with changes. This kills me, as I miss it from dreamweaver. So.... Anything you can do in this area would be great.


I haven't used or tried to change the eclipse shortcut keys myself, but taking a look at the preferences, it seems to me that they are already fully customizable in eclipse. But I guess they aren't specific to the current perspective?

So to make everyone happy, I'd think the two different shortcut-key-camps just be given a way to import a set of shortcuts that are created for each of their own needs.

Eclipse camp would match existing eclipse shortcuts, and maybe should be the default since cfeclipse is only a plugin.

The homesite camp would match homesite shortcuts as closely as possible, and overwrite eclipse keys when necessary.

Then after that the user applies either set they are still free to customize them to their hearts content.

Jordan


I have been using Eclipse and CFEclipse for many months now and am pleased w/ the internal support for shortcut keys w/in Eclipse. My only request is to not add shortcuts that override default Eclipse shortcuts or add shortcuts that duplicate Eclipse shortcuts. For example, the latest version of CFEclipse added a shortcut key for Cntl-M. The CFEclipse Cntl-M would find matching tags. Nice but Eclipse's default behavior for Cntl-M would maximize whatever editor window being used. The change was frustating I had to delete the new CFEclipse version. Another example was adding Cntl-Shft-N to create a new CF project, cfm file or CFC. Using Eclipse's Cntl-N brings up the new file window that allows you to create any new file and by default remembers the last type of file you created.

So when adding new shortcut features please be mindful of existing or default shortcuts w/in Eclipse to prevent duplicate effort or keys.

-Jason


+1 for consistency within Eclipse. CFE has been my first real exposure to the Eclipse platform, but other Java guys that I have introduced tp CFE have complained that it overwrites native Eclipse short cuts that they use. This just seems kind of rude and definitely creates a bad first impression.


Hey Nando

I know you're fooling around a bit, but I don't think anyone has said "its not possible" - more like "its going to be hard and take a real long time".

Line wrap would be nice, but if its at the expense of 4 other features, I can live without it.

Also I fully support the idea of a consistent set of keyboard short cuts across the board. The advantages are much like having the accelerator, brake and clutch in the same place on all cars.

However this universal set of short cuts needs to be configured exactly the way *I* want it ;)

Mark


Let me prefix my comment with the disclaimer that I'm a recent convert to Eclipse/CFEclipse. While the "built-in" shortcuts are not as comprehensive as those in Homesite+ (my previous IDE of choice), I've found that the snippets (and the corresponding trigger text) makes up for that pretty nicely. A couple of notable holes that I'd love to see filled, however:

1. I miss the functionality to "Select Full Tag". I have a keyboard shortcut for that action in Homesite+ and used it frequently.

2. Would be nice if the snippet trigger text wasn't as character restricted. I want to be able to enter "/*" and have CFEclipse fill in the "* */" with my cursor happily in place to type my comment. The character restrictions mean I have to remember some additional keystrokes that are not part of the syntax itself. A minor annoyance.


So, what I am hearing is, to not expect the ability to bind snippets to keyboard shortcuts in CFE? That is too bad. I have up until now refused to make myself memorize a series of keywords and shift-control-. or what ever the keystroke is, in hopes that CFE would allow snippet keyboard short cuts soon. In many cases it is ezer to just type out the shorter snippets then to use CFE's keyword thing.

I have to say since I have switched to CFE, my typing has gotten better and faster due to this issue :-).

Some of the keyboard shortcuts I miss most: -All HTML table tags -CFabort -CF query with datasource="#database#" -Several custom add edit form snippets.

This next thought is a bit off topic, but if keyboard shortcut binding is added to CFE, could the ability to bind keyboard shortcuts to saved find and replace patterns also be added? This would allow you do hit a keystroke and process the selected text with a find regular expression find and replace that you have stored. Real handy for converting a list of values into a list or into a quoted list. Or what ever else you find yourself doing over and over again with the find and replace box.

Keep up the good work.


Eclipse (and so CFEclipse) supports the ability to add shortcuts to any action defined by any plug in or feature. HomeSite+ let you assign a shortcut to any cf tag because it had the equivalent of "actions" to insert all these tags... whereas CFE only has a small handful so far. Adding more tag insertion actions to CFE should be reasonably easy and would also add more keyboard shortcuts (well, potentially) at the same time. I do have to agree with the comments asking not to overwrite existing/established eclipse shortcuts though - shift-ctrl-r should be open resource, *not* cfscript (imho)


The keyboard shortcuts customization features in Eclipse are very powerful but also very difficult to configure.

I really like what Joe Rinehart did with Arf TV. Simple video demos really show a lot. The same for CFEclipse would go along way to spreading knowledge of how the tool is used.


By far, I miss C-j in Homesite. A simple command that brought up a keyword-sensitive list of code snippets.


That's probably why the latest version of CFEclipse has switched to using ctrl+j as the shortcut for inserting snippets based on trigger text. Not exactly what HomeSite does but "close"...


Watch Free Porn videos, Porn Tube site with thousands of sex movies. Download Free Porn and Stream Pornos from all niches, Share your Porn Movies.

http://www.piurl.com/1_XZ


Post Your Comments
Name:
Email Address:
Comments
*** Please note that all comments require moderation so it may be some time before your comment posts to this blog! ***
Remember My Information:
 



Hosting provided by