|
|
Spiffiness is in the eye of the beholder
I think I must be misunderstanding this, because I can't see why you would want to reallocate the Tab key like this. Tab is immensely powerful by default. Eg:
cd to /Library
type cd and then [Tab] and you'll see something like this:
Addresses/ Internet Plug-Ins/ Printers/ Application Support/ Internet Search Sites/ Recent Servers/ Assistants/ KeyBindings/ Screen Savers/ Audio/ Keyboards/ Scripts/ Caches/ Keychains/ Services/ ColorPickers/ Logs/ Snapz Pro X/ ColorSync/ Mail/ SoftwareLicenses/ Colors/ Mesa3/ Sounds/ Contextual Menu Items/ Mozilla/ Spelling/ Documentation/ Not.Mozilla/ Voices/ Favorites/ NoteBook Files/ VueScanX unmirrored/ Fire/ OpenAG/ VueScanX/ FontCollections/ OpenUp/ iApps/ Fonts/ PStill/ iTunes/ Frameworks/ PreferencePanes/ GNUMail/ Preferences/Do you really want to "cycle round" to VueScanX? Isn't it easier to continue the cd line thus: cd Vu [tab] ... which then completes to cd VueScanX and you just have to hit [Return]. If you wanted "VuescanX unmirrored", instead of [Return] just hit [Space][Tab][Return]. -- el bid
Spiffiness is in the eye of the beholder
I think there is some confusion. To get to "VuescanX umirrored", you can just type "cd Vu [tab][tab]" instead of "cd Vu [tab][space][tab]"
Spiffiness is in the eye of the beholder
I think there is some confusion. To get to "VuescanX umirrored", you can just type "cd Vu [tab][tab]" instead of "cd Vu [tab][space][tab]"
Yes, there was some confusion here on my part -- of course I should have escaped the space in my example above, which introduces one extra keystroke, and strengthens the case for the bindkey reassignment of Tab. But I'm still agin it. Tab by default has an incredibly useful behaviour which will get over-written. It may often happen that you've constructed a long command line to which you only need to add the name of the file to be operated on -- except that you can't remember what is was. Tab will show you the whole directory; Z Tab will show you all the files beginning with Z and so on. And what's more, if your file is actually in a subdirectory, called, say, Zarathustra/part1, a second Tab after Zarathustra has completed (and BTW I completed that second Zarathustra just now by hitting Esc in a Cocoa app -- I assume we all know about that one...) will show me the Zarathustra directory contents. The suggested bindkey reassignment of Tab kills this. Now it happens that there is a standard Emacs key assignment that does pretty well what complete-word-forward does. In Emacs it's called dabbrev-expand, and it's assigned by default to Alt-/, a key combo that isn't assigned to anything under Mac OS X's default shell. As the default bindkey assignment for tcsh is described as "Emacs-style", it seems pretty clear cut to me that a better key to put complete-word-forward on would be Alt/. So my only question is, How do you represent Alt when doing a tsch bindkey assignment? -- el bid
An existing keybinding for TAB
Thanks for encouraging me to spiff up my tcsh completions!
I agree that assigning alt / for complete-word-fwd seems to be more emacs keybinding compliant but it is rather difficult to get fingers around (that is unless you used DoubleCommand to reassign that useless ENTER key ;)..... However, while pouring through the tcsh man looking for the keybinding for alt I did discover that ^D (think Directory) accomplishes the same as the default TAB behaviour, this solution feels pretty natural to me. Try it on for size. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|