Re: File Counterparts

2013-02-21 Thread Charlie Garrison
On 20/02/13 at 7:56 PM -0800, Corey Ehmke 
 wrote:


Are counterparts (File > Counterpart) only used to switch 
between .c and .h files? It would be really handy if there were 
language-specfic rules, e.g. in Ruby the counterpart for a 
class file would be its corresponding spec, so that foo.rb's 
counterpart would be foo_spec.rb. Heck, why not let the user 
define a custom filename matching regex for file counterparts?


Just as you request; use emacs variable for that, eg:

# Local Variables:
# x-counterpart: foo_spec.rb
# End:

See the excellent manual for more details.
--
   Ꮚ Charlie Garrison ♊ 

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
〠  http://www.ietf.org/rfc/rfc1855.txt

--
--
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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.

Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Grep help?

2013-02-21 Thread Kendall Conrad
I had to switch the \n to \r before that would work.

Nice approach to it.

-Kendall


On Thursday, February 21, 2013 12:49:46 AM UTC-5, Oliver Taylor wrote:
>
> On Feb 20, 2013, at 5:47 PM, Lorin Rivers > 
> wrote:
>
> Oh Mighty Ones,
>
> I have a big list that looks something like this:
> speedo_705494_001.jpg
> speedo_7051210_418.jpg
> speedo_7051210_418_bk.jpg
> speedo_7051200_041.jpg
> speedo_7051200_041_bk.jpg
> speedo_7051200_041_bk_a.jpg
> speedo_7050911_173.jpg
> speedo_7050911_173_bk.jpg
> speedo_7050804_001.jpg
> speedo_7050804_001_bk.jpg
> speedo_705032_001.jpg
> speedo_705031_001.jpg
>
> and I want to make it like this:
> speedo_705494_001.jpg
> speedo_7051210_418.jpg,speedo_7051210_418_bk.jpg
>
> speedo_7051200_041.jpg,speedo_7051200_041_bk.jpg,speedo_7051200_041_bk_a.jpg
> speedo_7050911_173.jpg,speedo_7050911_173_bk.jpg
> speedo_7050804_001.jpg,speedo_7050804_001_bk.jpg
> speedo_705032_001.jpg
> speedo_705031_001.jpg
>
>
> My brain is dead and I can't figure it out.
>
> Anyone have a suggestion for a regex that will accomplish this?
>
>
> Search: *\n(.+bk(_a)?.jpg)+*
> Replace: *,\1*
>

-- 
-- 
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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: File Counterparts

2013-02-21 Thread Corey Ehmke
It's cool that it can be done that way, but I don't want to add that to all 
of my source files. I'd rather configure it per langauge.

On Thursday, February 21, 2013 2:10:40 AM UTC-6, Charlie Garrison wrote:
>
> On 20/02/13 at 7:56 PM -0800, Corey Ehmke 
> > wrote: 
>
> >Are counterparts (File > Counterpart) only used to switch 
> >between .c and .h files? It would be really handy if there were 
> >language-specfic rules, e.g. in Ruby the counterpart for a 
> >class file would be its corresponding spec, so that foo.rb's 
> >counterpart would be foo_spec.rb. Heck, why not let the user 
> >define a custom filename matching regex for file counterparts? 
>
> Just as you request; use emacs variable for that, eg: 
>
> # Local Variables: 
> # x-counterpart: foo_spec.rb 
> # End: 
>
> See the excellent manual for more details. 
> -- 
> Ꮚ Charlie Garrison ♊ > 
>
> O< ascii ribbon campaign - stop html mail - www.asciiribbon.org 
> 〠  http://www.ietf.org/rfc/rfc1855.txt 
>
>

-- 
-- 
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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Grep help?

2013-02-21 Thread Sumtingwong
Here is what I came up with, also going to need a couple of passes.  

On the first run:

Find: 

\.jpg\n(.*?\_bk\_?.+)

Replace with:

\.jpg,\1

On the second run:

Find:

\.jpg\n(.*?\_bk\_.+)

Replace with the same as the first one:

\.jpg,\1

Hope this works!

Cheers,

Spencer

-- 
-- 
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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: File Counterparts

2013-02-21 Thread Rich Siegel
On Wednesday, February 20, 2013, Corey Ehmke 
 wrote:


Are counterparts (File > Counterpart) only used to switch 
between .c and .h files?


No. The "Counterparts" menu in the navigation bar should show 
all possible counterparts for the file you're editing, based on 
a prefix match of the file name. "Open Counterpart" is a little 
more strict, requiring an exact match of the base name 
(otherwise you'd go insane quite rapidly).


R.
--
Rich Siegel Bare Bones Software, Inc.
  

Someday I'll look back on all this and laugh... until they 
sedate me.


--
--
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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.

Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




How do I add specific markups to the markup palettes?

2013-02-21 Thread bdtanowitz
I know this must be a simple fix, but I do not see where I can add specific 
markups to the palette.

thanks,

BT

-- 
-- 
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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Grep help?

2013-02-21 Thread Oliver Taylor
On Feb 21, 2013, at 3:58 AM, Kendall Conrad  wrote:

> I had to switch the \n to \r before that would work.

\n and \r are interchangeable in 10.5+

-- 
-- 
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

If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.