|
|
Modify cursor movement keys in Terminal
Anybody know of a way to delete an entire word in terminal, so we can map option-backspace to it? That would be incredibly useful, especially when you are working with directories. Imagine you typed in "cd /Library/WebServer/Documents/", but then realized you want to go to "/Library/WebServer/". Now you have to delete "Documents/" letter by letter, but if we bind option-backspace to delete words, it would only take one keystroke.
Modify cursor movement keys in Terminal
Control-W should delete the word to the left of the cursor.
Modify cursor movement keys in Terminal
In my Terminal Inspector, I checked "Use option key as meta key". Then I edited the key mapping for the del key to \004 (type control-d). I added a new key mapping for del using a key modifier of option and set this to \033d (type escape d).
Modify cursor movement keys in Terminal
Can you tell me how you modified the option-backspace mapping? backspace doesn't show up in the list of modifiable keys in the small window for adding/editing a key mapping (OS X 10.4.7).
Modify cursor movement keys in Terminal
ctrl-w deletes one word to the right of the cursor (forward delete word)
Modify cursor movement keys in Terminal
[this is followup to iSao's comment, if you're seeing it non-threaded]
Setting the wordchars variable influences word-oriented tcsh editor commands. I use: set wordchars = '*?[]~=' And magic-space can be a handy function, meant to be bound to the space character: bindkey ' ' magic-space |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks 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 |
|