|
|
Consider "TextExtras"
I also loved old "vi"'s ability to use any filter, in the manner gshenaut described. I used to miss that on the GUI editors.
Consider "TextExtras"
OK, I really like TextExtras. But there are a couple issues I have with it: first, the Command-| hotkey didn't work, I don't know why. I finally figured out how to make a "User Scripts" menu to show up on the menu bar, and that's OK. Second, I didn't really like their pipeline command too much--there are too many options on it, it won't use the user's default shell, and it doesn't display error messages. So, here's my version of the pipeline command, called "aaafilter.sh" (the "aaa" is so it goes at the top of the menu):
It does more or less the same thing as the built-in pipeline, but to me it seems more convenient. You have to have CocoaDialog for it to work.
Greg Shenaut
Full circle
OK, this is great stuff. First, on the aaafilter.sh script I posted previously, it may be necessary to insert code to set the PATH to something other than the default, or otherwise initialize the shell, to let it see all the possible filter commands you want to run. On my system, I can do ". /etc/profile" in the script for this, but YMMV.
Second, I made this little script, which I call "xvi":
which, if typed into the filter window will start up vi on the selected text in an X window. When you write it out, the result will replace the selected text. You could use your favorite editor instead of vi if you want.
Bottom line: with this trick, you can now use any editor you want to edit text in GUI programs like Mail.app, TextEdit, and so on, and you can do all the text filtering you want. Cheers, Greg Shenaut |
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 |
|