Re: Is there a way to duplicate a line?

2009-10-23 Thread daedalus

Thank you everyone for your tips and suggestions. I'm going to try
them out and see what works best.

Richard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Clippings going to terminal have bad returns

2009-10-23 Thread Steve Kalkwarf

On Oct 23, 2009, at 10:23 AM, Burk wrote:

> As for the new "features" of snow leopard clippings, I would rather
> that clippings could still be dragged to the Terminal and actually
> work there as directly dragged text does. Can the "rich text" features
> be turned off? If anyone has a workaround for dragging clippings with
> returns into the Terminal, I still be obliged.

I'm not sure what you're asking for. I grabbed some text in your  
email, dragged it to the Desktop, then dragged the resulting clipping  
file to a Terminal window. The text I dragged out appeared in the  
terminal as if I had typed it.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Clippings going to terminal have bad returns

2009-10-23 Thread Burk

> I am puzzled by the statement, "Neither textedit nor pages seems to be  
> able to create finder clippings". I have no problem making clippings  
> from either of these applications.

I see- It took me a while to get the hang of how to select text for
clipping from these apps. You are right.

As for the new "features" of snow leopard clippings, I would rather
that clippings could still be dragged to the Terminal and actually
work there as directly dragged text does. Can the "rich text" features
be turned off? If anyone has a workaround for dragging clippings with
returns into the Terminal, I still be obliged.

Thanks!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
-~--~~~~--~~--~--~---



Re: How to indicate NEW content in a timely manner?

2009-10-23 Thread RobS

Thanks to all for this. Looks like Ronald's and Brian's ideas combined
will do the trick.

Rob

P.S.
Sorry to have bothered the BBEdit list about this. I would have put it
in the Web list but it's so that I assumed my question would just sit
there unanswered.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Is there a way to duplicate a line?

2009-10-23 Thread Johan Solve

At 14.35 -0700 2009-10-22, daedalus wrote:
>I'm coming from Windows where most of the editors I used had a built-
>in way to duplicate a line. I cannot seem to locate that functionality
>in BBEdit. Is there a built-in way I'm just overlooking or a macro or
>something I can do that would allow me to accomplish this?
>
>Thanks,
>Richard

Here are a couple of scripts I wrote that I use almost daily. I've mapped them 
to cmd-opt-up and cmd-opt-down. The line at the selection point or all lines 
that the current selection touches will be duplicated. The resulting selection 
will be the entire duplicated lines.

I also have corresponding scripts to move line(s) upwards and downwards, but 
they are a little bit buggy (I haven't been able to work around all edge case 
quirks) so I don't include them here, but they are mapped to cmd-ctrl-up/down.


-- Duplicate line(s) downwards
-- Johan Sölve 2008-12-20
tell application "BBEdit"
set selStart to (startLine of selection)
set selEnd to (endLine of selection)
set seloffset to (characterOffset of selection)
set selLength to (length of selection)
if selLength > 1 then
-- check if full lines are selected, in that case deselect the 
trailing linebreak
select (characters seloffset thru (seloffset + selLength - 2) 
of document 1)
if (endLine of selection) < selEnd then set selEnd to (endLine 
of selection)
else if selLength = 1 then
-- a single character can only be a single line, but a selected 
empty line looks like two lines, fix this
set selEnd to selStart
end if
set copylines to contents of (lines selStart thru selEnd) of document 1
-- insert after last line of selection
select insertion point after line selEnd of document 1
set selection to return & copylines
-- we have a new selection now, deselect the leading linebreak to make 
repeated duplicates work properly
set seloffset to (characterOffset of selection)
set selLength to (length of selection)
select (characters (seloffset + 1) thru (seloffset + selLength - 1) of 
document 1)
end tell


-- Duplicate line(s) upwards
-- Johan Sölve 2008-12-20
tell application "BBEdit"
set selStart to (startLine of selection)
set selEnd to (endLine of selection)
set seloffset to (characterOffset of selection)
set selLength to (length of selection)
if selLength > 1 then
-- check if full lines are selected, in that case deselect the 
trailing linebreak
select (characters seloffset thru (seloffset + selLength - 2) 
of document 1)
if (endLine of selection) < selEnd then set selEnd to (endLine 
of selection)
else if selLength = 1 then
-- a single character can only be a single line, but a selected 
empty line looks like two lines, fix this
set selEnd to selStart
end if
set copylines to contents of (lines selStart thru selEnd of document 1)
-- insert before first line of selection
select insertion point before line selStart of document 1
set selection to copylines & return
-- we have a new selection now, deselect the trailing linebreak to make 
repeated duplicates work properly
set seloffset to (characterOffset of selection)
set selLength to (length of selection)
select (characters seloffset thru (seloffset + selLength - 2) of 
document 1)
end tell



-- 
 Johan Sölve[FSA Member, Lasso Partner]
 Web Application/Lasso/FileMaker Developer
 MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se   mailto:jo...@montania.se
 (spam-safe email address, replace '-' with 'a')

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
-~--~~~~--~~--~--~---



Re: Is there a way to duplicate a line?

2009-10-23 Thread Mike Conley

> --> So are we going to celebrate the start of a new decade at the end of this 
> year? Or do the tens start at in January 2011? <--

Yes (for varying definitions of 'we'), and yes.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
-~--~~~~--~~--~--~---