KEYBOARD NERD FILTER: What are some tips for ultra-efficient text manipulation within a document (a la vi's H-J-K-L or Raskin's LEAP idea) in OS X?
-
What are some tips for ultra-efficient text manipulation within a document (a la vi's H-J-K-L or Raskin's LEAP idea) in OS X? I have a part-time job where I have to edit a lot of text written by non-native English speakers. This entails rearranging words, changing punctuation and all those other tedious little problems that need fixing. Currently, I've progressed to the point where I rarely use the mouse to move around in the Word documents I'm given, and now I don't even used the normal arrow keys. KeyRemap4MacBook allows for holding the 's' and 'd' keys simultaneously to turn on H-J-K-L cursor movement like in vi. Combine that with holding 'option' for skipping a word, 'command' for moving to the beginning/end of a line and 'shift' to highlight text for cutting/copying and I'm fairly quick at getting things done. But imagine how this works: I want to highlight the next 3 words to 'cut' them, so I must hold 's'+'d'+'shift'+'option' (4 KEYS!) and then tap the 'l' key three times. I assure you this is faster than having to take my hand off the keyboard and use a mouse or the arrow keys, but isn't there an even faster way? I know many of you reading this are not the übergeeky types that don't like having to remove your fingers from the home row, but for those of you who are, what do you do? I'm vaguely aware of Jef Raskin's idea of using a LEAP key to quickly move inside of text, but don't know if that's ever been picked up as a viable option. So, any other ideas? Any other tips?
-
Answer:
If you have the capability (ie: not dealing with large amounts of formatting), I'd suggest using vim directly. Your example would be `d3w`, deletes (which is vi-speak for cut) the next 3 words. Here's a guide specifically about moving around text in vim: http://blog.carbonfive.com/2011/10/17/vim-text-objects-the-definitive-guide/
phaedrus441 at Ask.Metafilter.Com Visit the source
Other answers
I use emacs, it has keyboard shortcuts for just about everything, and allows you to use vi movement keys if you want. Per your example, to cut the next 3 words I'd hit C-space, M-f, M-f, M-f, C-w, where C is control and M is meta (alt on modern keyboards)- C-space starts highlighting, M-f moves you forward one word, and then C-w yanks the text. To past you hit C-y. To delete everything to the end of the line C-k. There are a zillion of these, and they all make sense (to me at least: Y to yank, a to goto start of line, k to kill...). I also find it pretty easy to get started in, as there are good guides, and you can use the GUI until you find yourself doing stuff enough you want to learn the shortcut for it. You can also easily write macros if you are doing the same thing over and over again. There is also a very good version of it for Mac (Or so I'm told; I'm a hater) called Aquaemacs.
Canageek
Awesome suggestion ConstantineXVI, but unfortunately because I'm editing articles for a journal, I need to maintain a revision history, so .DOC files it is... Very cool link, though. Are there any utilities that add more vim or emacs-type capabilities to GUI text editors (like Word) in OS X? Finding KeyRemap4MacBook changed the way I used OS X...
phaedrus441
@phaedrus441: Why don't you use a revision system like Git or Mercurial then? You could commit each change, and then would have a much more comprehensive log of what you've changed. Sorry, I only know about stuff for windows and linux. You might find the answers in this thread useful, hhttp://stackoverflow.com/questions/162896/emacs-on-mac-os-x-leopard-key-bindings
Canageek
Oh, here are some additional guides that might help you: http://hints.macworld.com/article.php?story=20070215034801484 http://emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/EventOverview/TextDefaultsBindings/TextDefaultsBindings.html I don't know exactly which applications for mac are written using those APIs, but I have to imagine there is something you can use.
Canageek
You could use http://startly.com/products/quickeys/mac/4/ to make a single shortcut that, when activated by a certain keystroke, would press "'s'+'d'+'shift'+'option' (4 KEYS!) and then tap the 'l' key three times." You could also use http://www.boastr.de/ to activate that QuicKeys shortcut with a touchpad gesture, which is just too cool for words. As far as I'm concerned, both of these programs are individually great, and they work great together for incredible efficient control of your mac.
zachawry
Whoa, these are awesome responses! Canageek, great links! As for using Git or Mercurial, the problem is that I'm basically sent huge numbers of Word documents that I review/rewrite/translate and then return them. At which point, my changes are reviewed by their staff... Zachawry, I *love* BetterTouchTool-- the Window snapping with hotkeys is amazing on a big monitor.
phaedrus441
http://www.viemu.com/ claims to do this for a bunch of Microsoft products, but is spendy and Windows only.
rockindata
Oh, one other thing you might be able to do is use Pages (which should be much more amenable to the cocoa solutions posted above) to edit the word documents. I have used track changes pretty seamlessly between Word and Pages on a Mac in the past.
rockindata
Related Q & A:
- How can I mount a network drive in Mac OS X in Java?Best solution by Stack Overflow
- How to create a virtual file on mac OS X?Best solution by Super User
- What is the most functional Mac OS X all-in-one printer?Best solution by Yahoo! Answers
- What is the fastest and most efficient way to heal a canker sore?Best solution by Yahoo! Answers
- What are some tips on becoming a U.S. Marshal?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.