Re: Clippings with multiple similarly-named substitution placeholders

2013-09-09 Thread Gregg Thomason
Don't forget to send email to supp...@barebones.com with the feature 
request. I've sent a version of this (if not this exactly) before, I think; 
never underestimate the power of "upvotes".

On Friday, September 6, 2013 11:00:44 AM UTC-4, Damian Carrillo wrote:
>
> Hi All, 
>
> If I have a clipping that uses #PLACEHOLDERSTART# and #PLACEHOLDEREND# to 
> bracket a substitution placeholder, is there any way to make the "label" 
> between the start and end apply across multiple similarly-named 
> placeholders. For example, picture a typical mutator after the clipping has 
> been inserted into a document: 
>
> void setSomething(SomeType <#name#>) { 
>this.<#name#> = <#name#>; 
> } 
>
> Is there anyway to have the second and third <#name#> be replaced with the 
> value I type into the first? 
>
>
> Thanks, 
>
> Damian

-- 
This is the BBEdit Talk public discussion group. 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.
To post to this group, send email to bbedit@googlegroups.com.


Re: Clippings with multiple similarly-named substitution placeholders

2013-09-08 Thread Damian Carrillo
All,

Thanks for the feedback. I'll look into further assistance with AppleScript 
even though it's not very arduous to enter the same text a few times.

Regards,

Damian

> On Sep 8, 2013, at 3:03 PM, "G. T. Stresen-Reuter"  
> wrote:
> 
> On Sep 8, 2013, at 8:23 PM, Oliver Taylor  wrote:
> 
>>> Is there anyway to have the second and third <#name#> be replaced with the 
>>> value I type into the first?
>> 
>> I'd love to be proven wrong, but as far as I can tell this (much vaunted 
>> TextMate feature) is not possible.
>> 
>> However, you could write an AppleScript that would prompt you for the #name# 
>> and insert/transform the text you want.
> 
> You may also be able to use the #selection# placeholder and then, type the 
> name, select it, and then select the clipping from the menu (or assign a 
> keyboard shortcut to it). Not optimal, but not terrible either.
> 
> Ted
> 
> -- 
> This is the BBEdit Talk public discussion group. 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.
> To post to this group, send email to bbedit@googlegroups.com.

-- 
This is the BBEdit Talk public discussion group. 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.
To post to this group, send email to bbedit@googlegroups.com.


Re: Clippings with multiple similarly-named substitution placeholders

2013-09-08 Thread G. T. Stresen-Reuter
On Sep 8, 2013, at 8:23 PM, Oliver Taylor  wrote:

>> Is there anyway to have the second and third <#name#> be replaced with the 
>> value I type into the first?
> 
> I'd love to be proven wrong, but as far as I can tell this (much vaunted 
> TextMate feature) is not possible.
> 
> However, you could write an AppleScript that would prompt you for the #name# 
> and insert/transform the text you want.

You may also be able to use the #selection# placeholder and then, type the 
name, select it, and then select the clipping from the menu (or assign a 
keyboard shortcut to it). Not optimal, but not terrible either.

Ted

-- 
This is the BBEdit Talk public discussion group. 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.
To post to this group, send email to bbedit@googlegroups.com.


Re: Clippings with multiple similarly-named substitution placeholders

2013-09-08 Thread Oliver Taylor
On Sep 6, 2013, at 8:00 AM, Damian Carrillo  wrote:

> Is there anyway to have the second and third <#name#> be replaced with the 
> value I type into the first?

I'd love to be proven wrong, but as far as I can tell this (much vaunted 
TextMate feature) is not possible.

However, you could write an AppleScript that would prompt you for the #name# 
and insert/transform the text you want.

-- 
This is the BBEdit Talk public discussion group. 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.
To post to this group, send email to bbedit@googlegroups.com.


Clippings with multiple similarly-named substitution placeholders

2013-09-08 Thread Damian Carrillo
Hi All,

If I have a clipping that uses #PLACEHOLDERSTART# and #PLACEHOLDEREND# to 
bracket a substitution placeholder, is there any way to make the "label" 
between the start and end apply across multiple similarly-named placeholders. 
For example, picture a typical mutator after the clipping has been inserted 
into a document:

void setSomething(SomeType <#name#>) {
   this.<#name#> = <#name#>;
}

Is there anyway to have the second and third <#name#> be replaced with the 
value I type into the first?


Thanks,

Damian

-- 
This is the BBEdit Talk public discussion group. 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.
To post to this group, send email to bbedit@googlegroups.com.