Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use GUI editors for $VISUAL editing' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use GUI editors for $VISUAL editing
Authored by: durin on Feb 11, '05 11:18:24AM

Uh....look at the edit command line tool. It can optionally wait until the document you're editing is closed, you don't have to quit TW to be done.

from the manpage:
EDIT(1) TextWrangler Command Line Reference EDIT(1)



NAME
edit - (TextWrangler) Whip some ASCII.

.............
-w, --wait
Wait until the file is closed in TextWrangler. Normally, the edit
tool exits immediately after the file arguments are opened in Tex-
tWrangler. The -w option allows the edit tool to be used as an
external editor for Unix tools that use the EDITOR global environ-
ment variable. To make this work using tcsh, add the following
line to your .cshrc (or .tcshrc) file:

setenv EDITOR "edit -w"

Some tools (notably crontab), will not work correctly if your EDI-
TOR variable consists of multiple terms. You can work around this
by creating a simple shell script that calls edit -w, and then
using the shell script as your EDITOR. For example:

#!/bin/sh
edit -w "$@"

---
Go not to the elves for council, they will say both no and yes



[ Reply to This | # ]