This is how I do it:
1. select the entire line either with a triple click in it, or click in the left margin*
*Requires turning on prefs 'Editing: General -- Allow single-click line selection'
2. hit command-c, command-v, command-v
Cheers
> Welcome to TextWrangler Cam.
>
> This is how I do it:
>
> 1. select the entire line either with a triple click in it, or click in the left margin*
Cmd+L
> *Requires turning on prefs 'Editing: General -- Allow single-click line selection'
>
> 2. hit command-c, command-v, command-v
Jean-Christophe Helary
----------------------------------------
fun: http://mac4translators.blogspot.com
work: http://www.doublet.jp (ja/en > fr)
tweets: http://twitter.com/brandelune
Well, the answer is no and yes.
No, because there is no standard feature in TextWrangler to do this (AFAIK).
Yes, because TextWrangler is very scriptable: Look at the AppleScript Menu (the one with the scroll) in TextWrangler:
Open Script Editor
Create an AppleScript:
tell application "TextWrangler"
tell window 1
select line the (startLine of the selection)
copy (contents of the selection) as text to myText
set the contents of the selection to myText & myText
end tell
end tell
and save it as script "Duplicate Line" to TextWrangler's Scripts Folder.
Then choose Windows -> Palettes -> Scripts, select "Duplicate Line" and assign it Ctrl-D or whatever you like.
This flexibility is what makes TextWrangler so useful for me.
All the best
Thomas
--
This is the TextWrangler Talk public discussion group.
If you have a feature request or would like to report a problem,
please email "sup...@barebones.com" instead of posting here.
---
You received this message because you are subscribed to the Google Groups "TextWrangler Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to textwrangler...@googlegroups.com.
I know this is an old post, but I was wondering how I might be able to adapt your script to repeat the copy of the first line below it for a large number of times (1500+)? I need to parse a database file, which oddly enough, has the same values for 1566 rows.