Re: Is there a keyboard shortcut to toggle Soft Wrapping?

2017-08-11 Thread F. Alfredo Rego
Thanks, Neil and Fletcher. This worked perfectly.

I certainly need to dive into BBEdit’s wonderful preferences in more detail.

I appreciate your guidance.

Alfredo

> On Aug 11, 2017, at 10:05 AM, Neil Faiman  wrote:
> 
> BBEdit > Preferences, Menus & Shortcuts, choose View in the left pane, Text 
> Display > Soft Wrap Text in the right pane, and set the keyboard shortcut of 
> your choice. ( Or Status Bar in the left pane, Text Options > Soft Wrap Text 
> in the right pane.)
> 
> Regards,
> 
>   Neil Faiman



> On Aug 11, 2017, at 10:02 AM, Fletcher Sandbeck  wrote:
> 
> You can assign one. Open Preferences and select Menus & Shortcuts. Find 
> "Status Bar" in the list and you'll find "Soft Wrap Text" within the "Text 
> Options" and can assign a shortcut there.
> 
> [fletcher]

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: How to backspace over only one space?

2017-06-16 Thread F. Alfredo Rego
Rich,

You wrote generically: “There is AN expert preference”. Can you please provide 
the SPECIFIC name and location of this preference, or the specific “defaults 
write” command?

My reason for asking: Searching the Expert Preferences help for “backspace from 
the insertion point” doesn’t lead anywhere (at least here in the mountains, 
under BBEdit version 11.6.7 (397078) ).

Thanks.

Alfredo

> On Jun 14, 2017, at 1:47 PM, Rich Siegel  wrote:
> 
> On Monday, June 12, 2017, Walter Ian Kaye  wrote:
> 
>> If I have a line with several spaces, and I hit backspace at the end of the 
>> line, it erases the entire line instead of only the last space.
>> 
>> How do I adjust BBEdit to only delete one space?
>> 
>> I looked through the prefs but couldn't find any relevant setting.
> 
> There is an expert preference; open the Expert Preferences help and search 
> for "backspace from the insertion point".
> 
> Enjoy,
> 
> R.
> -- 
> Rich Siegel Bare Bones Software, Inc.
>   
> 
> Someday I'll look back on all this and laugh... until they sedate me.

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: [INFO] BBEdit 12.0 Pricing Answers

2017-09-15 Thread F. Alfredo Rego
Great! My gold-lined pockets are burning ;-)

> On Sep 15, 2017, at 12:50 PM, Patrick Woolsey <pwool...@barebones.com> wrote:
> 
> On 9/15/17 at 2:36 PM, f.alfredor...@gmail.com (F. Alfredo Rego) wrote:
> 
>> How about those proactive folks who already have v.11 and who want to 
>> upgrade to v.12 ASAP (or sooner)?
>> 
> 
> Once BBEdit 12 ships, BBEdit 11.x customers[*] will be able to upgrade for 
> US$29.99 (i.e. the same basic arrangement as now but one version newer at 
> each step).
> 
> [*: who aren't eligible for a free upgrade, as Rich's post mentioned ]
> 
> 
> Regards,
> 
> Patrick Woolsey
> ==
> Bare Bones Software, Inc. <http://www.barebones.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: <http://www.twitter.com/bbedit>
> --- 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.
> Visit this group at https://groups.google.com/group/bbedit.

-- 
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: <http://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: [INFO] BBEdit 12.0 Pricing Answers

2017-09-15 Thread F. Alfredo Rego
How about those proactive folks who already have v.11 and who want to upgrade 
to v.12 ASAP (or sooner)?

> On Sep 15, 2017, at 12:13 PM, Rich Siegel  wrote:
> 
> Good afternoon,
> 
> For those readers of the BBEdit-talk list who aren’t sure about our upgrade 
> and pricing policy surrounding major upgrades I thought I’d outline it here 
> for you.  It's been a long time since we've introduced a major version 
> upgrade, so we thought it might be useful.
> 
> The short version is: We offer a free upgrade to anyone who purchases BBEdit 
> relatively near to the date when we release a major version.
> 
> As such, if you buy a BBEdit 11 license now (whether new or as an upgrade 
> from an older version), you will receive a free upgrade to BBEdit 12.0 when 
> it ships. We’ll email you the updated license code, automatically, so please 
> make sure that you provide a valid address when you order.
> 
> Today, the upgrade price from BBEdit 10 to BBEdit 11 is US$29.99. This will 
> get you the free upgrade to BBEdit 12.0.
> 
> Once BBEdit 12.0 ships, the price of upgrading from BBEdit 10.x (*including* 
> Mac App Store purchases), to the current version will go up to US$39.99.
> 
> So, if you’ve been waiting to upgrade from version 10 to version 11, now 
> would be a particularly good time to do it, because you’ll get BBEdit 12.0 as 
> a free upgrade when it ships, and end up $10 ahead.
> 
> Information on how to upgrade is here: 
> .
> 
> We haven’t decided the precise cutoff date for free upgrades from v11 to v12, 
> and our longstanding tradition is to commit to the date when we announce the 
> upgrade is shipping.
> 
> That said, the date has traditionally not been less than three months and has 
> always been generally considered fair, to the point of generous.
> 
> To you, the practical implication is that, whether an upgrade or a new 
> license, if you haven’t already purchased BBEdit 11, you can do so today, 
> knowing that you will get the BBEdit 12.0 upgrade for free.
> 
> I hope that clears up -- or provides a reminder about -- the upgrade and 
> pricing policy surrounding the upcoming BBEdit 12.
> 
> R.
> 
> -- 
> 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.
> Visit this group at https://groups.google.com/group/bbedit.

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Upgrading and Apple Scrip,ts

2017-09-20 Thread F. Alfredo Rego
Congratulations. Good for you.

We need to keep the BBEdit team alive, for the sake of our own lives ;-)


> On Sep 20, 2017, at 5:52 PM, Chuck Dingee  wrote:
> 
> I downloaded demo, worked like a charm. Now upgraded. :-)
> Thanks!

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Losing Preferences

2017-10-09 Thread F. Alfredo Rego
Hi Patrick,

It will be useful to backup BBEdit’s preferences with git, so we can detect any 
unwelcome changes and revert them whenever Apple decides to “help” (In Spanish, 
we say “no me ayudes, compadre” ;-)

What file(s) should we backup thus?

Thanks.

Alfredo



> On Oct 3, 2017, at 10:41 AM, Patrick Woolsey  wrote:
> 
> We've gotten a few similar reports of prefs trouble, and have already 
> reported this issue to Apple as it appears to be due to a bug in High Sierra 
> (macOS 10.13).
> 
> 
> Regards,
> 
> Patrick Woolsey
> ==
> Bare Bones Software, Inc. 
> 
> 
> 
> On 10/3/17 at 12:29 PM, fletc...@cumuli.com (Fletcher Sandbeck) wrote:
> 
>> Curious if anyone else is seeing this.
>> Since upgrading to High Sierra I've had BBEdit reset itself several
>> times. I find BBEdit using the defaults such as opening files in one
>> window and showing line numbers. And I lose the settings in the
>> find/replace window like my chosen file filter and last used folder.
>> However, neither simply restarting BBEdit or the machine reproduces
>> the issue.
>> 
>> I'm also noticing some oddities in Chrome so I'm not sure if this is
>> BBEdit related or something to do with the new OS. Or, if my flash
>> drive is going. The problem is coincident with the 10.6.8 update to
>> BBEdit, but none of the release notes seem relevant.
>> 
>> [fletcher]
>> 
> 
> -- 
> 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.
> Visit this group at https://groups.google.com/group/bbedit.

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Losing Preferences

2017-10-10 Thread F. Alfredo Rego
Thanks, Patrick.

One more arrow in our BBEdit quivers as we defend ourselves against Apple’s 
mischiefs ;-)

Alfredo

> On Oct 10, 2017, at 9:47 AM, Patrick Woolsey <pwool...@barebones.com> wrote:
> 
> On 10/9/17 at 11:16 AM, f.alfredor...@gmail.com (F. Alfredo Rego) wrote:
> 
>> It will be useful to backup BBEdit’s preferences with git, so we
>> can detect any unwelcome changes and revert them whenever Apple
>> decides to “help” (In Spanish, we say “no me ayudes, compadre” ;-)
>> 
>> What file(s) should we backup thus?
>> 
> 
> For reference, BBEdit's core prefs file (which is the most likely to suffer 
> OS mischiefs) is:
> 
> /Users/USERNAME/Library/Preferences/com.barebones.bbedit.plist
> 
> where USERNAME is the short name of your login account.
> 
> Also, for anyone who'd like a full inventory of BBEdit's supporting files, 
> please see Chapter 2 of the PDF manual. :)
> 
> 
> Regards,
> 
> Patrick Woolsey
> ==
> Bare Bones Software, Inc. <http://www.barebones.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: <http://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Losing Preferences

2017-10-13 Thread F. Alfredo Rego
Thanks for Trying, Rod.

We’ll conquer this frustrating annoyance, sooner or later. 

Few things are worse (spam comes to mind) than messing with a perfectly 
fine-tuned working environment that someone has carefully (and lovingly) 
crafted and optimized.

What a perfect example of “No me ayudes, compadre”.

Alfredo

> On Oct 13, 2017, at 7:28 AM, Rod Buchanan <r...@kdsi.com> wrote:
> 
> 
> FYI that doesn't work.  I tried it and it is back to read/write.
> 
> 
>> On Oct 13, 2017, at 8:11 AM, Rod Buchanan <r...@kdsi.com 
>> <mailto:r...@kdsi.com>> wrote:
>> 
>> 
>> I'm just throwing this out ... I have no idea what impact it would have on 
>> BBEdit.
>> 
>> You could try changing the permissions on the pref file to read-only.  You 
>> can do it with Finder or use "chmod 400 filename".
>> 
>> 
>>> On Oct 12, 2017, at 10:37 PM, F. Alfredo Rego <f.alfredor...@gmail.com 
>>> <mailto:f.alfredor...@gmail.com>> wrote:
>>> 
>>> I appreciate your pointer, Patrick.
>>> 
>>> Unfortunately, BBEdit’s “core” prefs file also has myriad “peripheral” 
>>> prefs within its eight thousand five hundred lines (in my case), including 
>>> recent searches and so on.
>>> 
>>> Apparently, Apple sadistically chooses to reset the really 
>>> painful-to-re-enter-every-time “core” preferences while choosing to leave 
>>> “peripheral” preferences alone.
>>> 
>>> As I waste extremely valuable time re-configuring my BBEdit prefs every 
>>> time that I restart BBEdit, I give up on the treasure hunt (within 
>>> com.barebones.bbedit.plist) for the preferences that are truly essential 
>>> and important. 
>>> 
>>> I would be willing to pay for a script (or something) that cruises around 
>>> com.barebones.bbedit.plist and, as soon as it detects underhanded mischief, 
>>> resets MY preferences to whatever I have patiently and lovingly crafted to 
>>> suit MY requirements.
>>> 
>>> I’m sure I’m not the only one being hurt badly, in terms of my time, due to 
>>> this specific issue with High Sierra. Any enterprising folks out there who 
>>> would like to develop a burglar alarm for BBEdit’s prefs?
>>> 
>>> I regret having downgraded to Low Sierra. The options for going back to 
>>> Sierra are even more painful than having to re-enter all of my favorite 
>>> BBEdit prefs.
>>> 
>>> Sigh . . .
>>> 
>>> Alfredo
>>> 
>>>> On Oct 10, 2017, at 9:47 AM, Patrick Woolsey <pwool...@barebones.com 
>>>> <mailto:pwool...@barebones.com>> wrote:
>>>> 
>>>> On 10/9/17 at 11:16 AM, f.alfredor...@gmail.com 
>>>> <mailto:f.alfredor...@gmail.com> (F. Alfredo Rego) wrote:
>>>> 
>>>>> It will be useful to backup BBEdit’s preferences with git, so we
>>>>> can detect any unwelcome changes and revert them whenever Apple
>>>>> decides to “help” (In Spanish, we say “no me ayudes, compadre” ;-)
>>>>> 
>>>>> What file(s) should we backup thus?
>>>>> 
>>>> 
>>>> For reference, BBEdit's core prefs file (which is the most likely to 
>>>> suffer OS mischiefs) is:
>>>> 
>>>> /Users/USERNAME/Library/Preferences/com.barebones.bbedit.plist
>>>> 
>>>> where USERNAME is the short name of your login account.
>>>> 
>>>> Also, for anyone who'd like a full inventory of BBEdit's supporting files, 
>>>> please see Chapter 2 of the PDF manual. :)
>>>> 
>>>> 
>>>> Regards,
>>>> 
>>>> Patrick Woolsey
>>>> ==
>>>> Bare Bones Software, Inc. <http://www.barebones.com/ 
>>>> <http://www.barebones.com/>>
>>> 
>> 
> 
> -- 
> Rod Buchanan
> Kelly Supply Company
> 1004 W Oklahoma Ave
> Grand Island, NE 68802-1328
> 308 382-8764 x1120

-- 
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: <http://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Losing Preferences

2017-10-12 Thread F. Alfredo Rego
I appreciate your pointer, Patrick.

Unfortunately, BBEdit’s “core” prefs file also has myriad “peripheral” prefs 
within its eight thousand five hundred lines (in my case), including recent 
searches and so on.

Apparently, Apple sadistically chooses to reset the really 
painful-to-re-enter-every-time “core” preferences while choosing to leave 
“peripheral” preferences alone.

As I waste extremely valuable time re-configuring my BBEdit prefs every time 
that I restart BBEdit, I give up on the treasure hunt (within 
com.barebones.bbedit.plist) for the preferences that are truly essential and 
important. 

I would be willing to pay for a script (or something) that cruises around 
com.barebones.bbedit.plist and, as soon as it detects underhanded mischief, 
resets MY preferences to whatever I have patiently and lovingly crafted to suit 
MY requirements.

I’m sure I’m not the only one being hurt badly, in terms of my time, due to 
this specific issue with High Sierra. Any enterprising folks out there who 
would like to develop a burglar alarm for BBEdit’s prefs?

I regret having downgraded to Low Sierra. The options for going back to Sierra 
are even more painful than having to re-enter all of my favorite BBEdit prefs.

Sigh . . .

Alfredo

> On Oct 10, 2017, at 9:47 AM, Patrick Woolsey <pwool...@barebones.com> wrote:
> 
> On 10/9/17 at 11:16 AM, f.alfredor...@gmail.com (F. Alfredo Rego) wrote:
> 
>> It will be useful to backup BBEdit’s preferences with git, so we
>> can detect any unwelcome changes and revert them whenever Apple
>> decides to “help” (In Spanish, we say “no me ayudes, compadre” ;-)
>> 
>> What file(s) should we backup thus?
>> 
> 
> For reference, BBEdit's core prefs file (which is the most likely to suffer 
> OS mischiefs) is:
> 
> /Users/USERNAME/Library/Preferences/com.barebones.bbedit.plist
> 
> where USERNAME is the short name of your login account.
> 
> Also, for anyone who'd like a full inventory of BBEdit's supporting files, 
> please see Chapter 2 of the PDF manual. :)
> 
> 
> Regards,
> 
> Patrick Woolsey
> ==
> Bare Bones Software, Inc. <http://www.barebones.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: <http://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Swap compare panels?

2017-08-19 Thread F. Alfredo Rego
Perhaps Patrick and Rich might be inclined to consider placing 
a “swap panes” button somewhere in the differences window itself 
(if this is even feasible, and if this won’t break anything).

> On Aug 19, 2017, at 1:22 PM, Steve J  wrote:
> 
> Wonderful,
> Even though it's not a natural "direct access", it's exactly what I'm looking 
> for.
> Thanks a lot for your help
> Steve
> 
> On Friday, August 18, 2017 at 5:32:21 PM UTC+2, Patrick Woolsey wrote:
> You can do so by bringing up the Find Differences dialog (Search 
> -> Find Differences), choosing which side the compared files 
> should appear on, and performing a new comparison. 
> 
> [PS: There's also a 'swap' button between the Left and Right 
> field labels to quickly switch the position of the selected 
> files (or folders).] 
> 
> -- 

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Auto-select search selected when text is selected

2017-09-02 Thread F. Alfredo Rego
Wrong presumption, Bucky ;-)

I have ALWAYS felt the slight twinge of frustration that vrice mentioned, and I 
have always settled for using the shortcut (Ctrl-Shift-S) that Fletcher 
mentioned.

However, it was only today, after reading their comments, that I realized that 
I would rather not have to settle for this and I would be an even happier 
camper if BBEdit could PLEASE add this functionality.

Obvious in retrospect. I’m willing to bet that many colleagues on this forum 
feel the same way.

Thanks to everyone for having opened my eyes (and probably a can of worms for 
poor Rich ;-)

Alfredo



> On Sep 2, 2017, at 9:40 AM, Bucky Junior  wrote:
> 
> On the other hand, if I wanted to see how many times I had over used a phrase 
> in something I was writing, I would highlight “from my personal experience 
> and in my opinion”, copy it, open the find dialog box, paste in my selected 
> text, I would have to uncheck the find in selected text box to look for 
> occurrences.
> 
> From my personal experience and in my opinion, I don’t think it can be 
> presumed that others are going to do searches like I will.
> 
> Bucky
> 
>> On Sep 2, 2017, at 8:40 AM, Neil Faiman > > wrote:
>> 
>> 
>>> On Sep 2, 2017, at 10:27 AM, Fletcher Sandbeck >> > wrote:
>>> 
>>> You can toggle that setting using a key shortcut, Ctrl-Shift-s. You can see 
>>> all the shortcuts for the Find Windows shortcuts in the Menus & Shortcuts 
>>> preferences. Or, switch them to something easier.
>> 
>> Yes, but what he was requesting was a little extra cleverness built in.
>> 
>> Think about it … if you open the Find dialog and you don’t have a current 
>> selection, the odds are near zero that you want to do a “find in selection” 
>> — so why should you have to toggle a checkbox?
>> 
>> Contrariwise, if you do have a selection, the odds are pretty good that you 
>> want to search in the selection — so why should you have to toggle a check 
>> box?
>> 
>> Years ago, I used a text editor on Windows that actually improved on this 
>> heuristic: it assumed that you wanted to “find in selection” if you had a 
>> current selection that was more than one line long. My experience was that 
>> this was what I wanted probably 99% of the time.
>> 
>> Regards,
>> 
>>  Neil Faiman
>> 
>> 
>> -- 
>> 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 
>> .
>> Visit this group at https://groups.google.com/group/bbedit 
>> .
> 
> 
> -- 
> 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 
> .
> Visit this group at https://groups.google.com/group/bbedit 
> .

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Auto-select search selected when text is selected

2017-09-03 Thread F. Alfredo Rego
Slight editing: 

. . . adding an expert preference to allow users who crave consistency to 
change it themselves would be AN EXCELLENT IDEA.

Alfredo

> On Sep 3, 2017, at 8:46 AM, Dave  wrote:
> 
> It has always puzzled me that "Text" actions like "Apply Text Filter," "Sort 
> Lines...," "Process Lines Containing...," etc. default to the current 
> selection, if there is one, or the entire document otherwise, but 
> Find/Replace doesn't. While this might be too drastic a change to foist upon 
> those who seldom read release notes, adding an expert preference to allow 
> users who crave consistency to change it themselves would not be a bad idea 
> at all.
> 
> On Saturday, September 2, 2017 at 2:46:19 PM UTC-4, Bruce Van Allen wrote:
> I see your point. Maybe you could file a request to BBEdit 
> support for an "Expert Preference" setting, along the lines of: 
> [made-up] 
> "useMultiLineSelectionAsSearchArea boolean TRUE/FALSE" 
> [/made-up]. 
> 
> -- 
> 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 
> .
> Visit this group at https://groups.google.com/group/bbedit 
> .

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: BBEdit for Writers

2017-10-11 Thread F. Alfredo Rego
Very well done, Franz.

Thanks.

Alfredo

> On Oct 11, 2017, at 11:10 AM, Stories & Novels  
> wrote:
> 
> I put together a short guide that might be of interest to someone new to 
> BBEdit and wondering if it would work well for writing prose.
> 
> BBEdit for Writers: A Guide and Appreciation 
>  (storiesandnovels.com/bbedit)

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Numeric Key pad not working in BBEdit

2017-12-15 Thread F. Alfredo Rego
Hi Bas,

I have an Apple keyboard with numeric keypad and it works perfectly fine with 
BBEdit.

I’m on High Sierra 10.13.2 (17C89).

What brand of keyboard do you have? 

Alfredo

> On Dec 15, 2017, at 12:49 AM, SpeedyB  wrote:
> 
> Hi All,
> 
> I found something very annoying today and don't know how to solve it.
> 
> I have a keyboard with numeric keypad and the right side of my keyboard is 
> not working only in BBEdit. 
> I have removed the keyboard twice before testing if it was working in other 
> applications. As it is working in other I suspect something in BBEdit, but 
> could not find anything in the preferences..
> 
> do any of you have any idea?
> 
> I am running Mac OS High Siera
> 
> regards,
> Bas
> 
> -- 
> 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 
> .
> Visit this group at https://groups.google.com/group/bbedit 
> .

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Multiple Cursors

2018-04-30 Thread F. Alfredo Rego
The first hit on google:

https://mjtsai.com/blog/2018/04/29/multiple-cursors-in-xcode/

Enjoy.

Alfredo

> On Apr 30, 2018, at 1:51 AM, Jan Erik Moström  wrote:
> 
> On 30 Apr 2018, at 5:49, Jon B. wrote:
> 
>> Xcode now has a hidden preference for multiple cursors. Hoping the feature
>> can (finally) come to BBEdit!
> 
> Since I don't use Xcode, what does this feature do? (I got a picture of how 
> it works in my mind ... but my idea is just silly)

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: fix for BBEdit crash/problems in High Sierra

2018-02-22 Thread F. Alfredo Rego
Nice.

For the curious:

man atsutil

Alfredo

> On Feb 22, 2018, at 1:03 PM, Donna McMaster  wrote:
> 
> Last week installed BBEdit on a new Mac running 10.13.3. A few days later it 
> crashed, and afterwards the text on the screen was invisible. I spent almost 
> an hour searching for answers and trying to fix it. Wrote to Tech Support and 
> they had a simple fix. Figured I'd post the details here so that if someone 
> else runs into it, they may get back up quicker. 
> 
> Here's the response I got from Tech Support with the solution: 
> 
> Thanks for writing in. The symptom you encountered is the result of a bug in 
> the OS. To restore normal operation, please open a Terminal window and run 
> the following command:
> 
>atsutil server -shutdown
> 
> This should restore normal operation the next time you start BBEdit; but if 
> it does not please let us know.
> 
> 
> And here are the details of the problem, in my message to BBEdit Support: 
> 
> I’ve been using BBEdit since the 90s and just bought a new Mac running 
> 10.13.3. I downloaded and installed BBEdit 12.1.1 a few days ago and used it 
> while setting up my local dev environment. The only thing I customized was to 
> set the color scheme to the light one. Everything was fine.
> 
> Today I opened BBEdit to view a text file that I had created in BBEdit on my 
> old machine. It’s a small file with settings from a Chrome extension. See 
> attached file “speed dial fvd export.txt.” BBEdit crashed. I’ve attached the 
> log file.
> 
> When I reopened BBEdit, I was able to view the “speed dial fvd export.txt” 
> file, but the text was invisible; it was evidently the same color as the 
> background. I verified that the text was there; I was able to select it and 
> paste it into a browser form input box.
> 
> I tried changing to a different color scheme, editing the text color, opening 
> different files, resetting everything to factory defaults, restarting BBEdit 
> several times, but nothing worked. The text is invisible on every background 
> for every file.
> 
> I also tried deleting the BBEdit app and two folders in /Users/me/Library: 
> BBEdit and Application Support/BBEdit. I couldn’t find any more preferences 
> files but evidently there is something hidden somewhere, because a fresh 
> install of BBEdit has the same problem.
> 

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: [LISTMOM] Re: MacBook pro 15-inch 2016 won't update from 10.13.5 to 10.13.6 (an update that Rich highlights in red)

2018-07-26 Thread F. Alfredo Rego
Oops!

Sorry about that, Rich.

I just thought the combined wisdom of our worldwide colleagues might have 
something to say.

I’ll give AppleCare a call.

Scratching my head,

Alfredo


> On Jul 26, 2018, at 11:09 AM, Rich Siegel  wrote:
> 
> On 7/26/18 at 12:53 PM, f.alfredor...@gmail.com (F. Alfredo Rego) wrote:
> 
>> I have tried many times (via Software update and via the downloaded
>> macOSUpd10.13.6.dmg) but, after having gone through the normal
>> “update” motions, my MBP claims to still be on 10.13.5.
> 
> I am pretty sure this is not a suitable topic for this list, our 
> recommendations to update notwithstanding. :-)
> 
> R.
> -- 
> Rich Siegel Bare Bones Software, Inc.
>   <http://www.barebones.com/>
> 
> Someday I'll look back on all this and laugh... until they sedate me.

-- 
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: <http://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Any way to search previous searches?

2018-08-20 Thread F. Alfredo Rego
Barbara:

Nice! This is very helpful and a step in the right direction. 

I look forward to discovering more steps in the journey to learning about more 
and more BBEdit features.


Thank you for the tip.

Alfredo



> On Aug 20, 2018, at 9:53 AM, Barbara Snyder  wrote:
> 
> Alfredo --
> 
> I don't know about searching the past searches, but typing the first couple 
> of letters navigates the list.
> 
> -- Barbara
> 
> 
> On Monday, August 20, 2018 at 7:46:58 AM UTC-7, Alfredo wrote:
> Rich shared a wonderful top tip: the preferences are searchable as well.
> 
> Has anyone found a way to search previous searches (ideally filtering by 
> “Search” vs. “Grep”)?
> 
> Clicking on the history button provides a list that’s not trivial to navigate:
> 
> 
> 
> -- 
> 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 
> .
> Visit this group at https://groups.google.com/group/bbedit 
> .

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Any way to search previous searches?

2018-08-24 Thread F. Alfredo Rego
Hey Chris,

Cool. I’ll dive into it during the weekend.

Thanks!

Alfredo



> On Aug 24, 2018, at 12:54 PM, Christopher Stone  
> wrote:
> 
> On 08/20/2018, at 15:15, F. Alfredo Rego  <mailto:f.alfredor...@gmail.com>> wrote:
>> Rich will probably give me some grief but here is what I did, in case my 
>> fellow BBEdit users might find this useful.
> 
> 
> Hey Alfredo,
> 
> Here's a live working solution.
> 
> It's a bit quick and dirty, so the formatting isn't as precise as I'd like – 
> but I don't have time to do better right now.
> 
> I've provided the source and a compiled AppleScript which can be opened and 
> run with the Script Editor.app (or Script Debugger <https://latenightsw.com/> 
> -- SD-Lite is now free).
> 
> Install here:
> 
> ~/Library/Application Support/BBEdit/Scripts/
> 
> Give it a keyboard shortcut and go-to-town.
> 
> --
> Best Regards,
> Chris
> 
> 
> # Auth: Christopher Stone
> # dCre: 2018/08/24 13:36
> # dMod: 2018/08/24 13:48
> # Appl: BBEdit, AppleScript & Perl
> # Task: Extract Recent Find Strings from BBEdit Preferences.
> # Libs: None
> # Osax: None
> # Tags: @Applescript, @Script, @Save, @Perl, @Extract, @Recent, @Find, 
> @Strings, @Prefs, @Preferences
> 
> 
> set scriptSrc to text 2 thru -1 of "
> #!/usr/bin/env perl -0777 -nsw
> use v5.010;
> 
> $_ = `
> plutil -convert xml1 ~/Library/Preferences/com.barebones.bbedit.plist -o 
> - 
> `;
> 
> /FindDialog_SearchReplaceHistory.+FindDialog_SelectedSourceNodes<\\/key>/ms;
> 
> $_ = $&;
> 
> s!^\\h*(FindDialog_SearchReplaceHistory|FindDialog_SelectedSourceNodes)\\R?!!gm;
> s!^\\h*\\R?!!gm;
> s!^\\t\\t!!gm;
> s!^\\h*(CaseSensitive|EntireWord|GrepEnabled|SearchDate|WrapAround)\\R?!!gm;
> s!^\\h*<(true|false)/>\\R?!!gm;
> s!\\R?!!gm;
> s!\\R*\\Z!!gm;
> s!SearchString\\R?!Find:!gm;
> s!ReplaceString\\R?!Replace:!gm;
> s!!“!gm;
> s!!”!gm;
> s!!!gm;
> s!^\\h+!!gm;
> s!^\\h*Replace:!Repl:!gm;
> s!^(\\d+.+)Z!$1:!gm;
> 
> my @array = split(/\\n+<\\/dict>\\n+/, $_);
> 
> $, = \"\\n\";
> 
> my $temp;
> my @temp;
> 
> foreach ( @array ) {
> @temp = split(\"\\n\", $_);
> @temp = sort @temp;
>   $temp = join \" \", @temp;
>   $_ = $temp;
> }
> 
> $_ = join \"\\n\", @array;
> 
> s!\\h*(Repl:)!\\t\\t\\t$1!gm;
> 
> print;
> "
> 
> set dataStr to do shell script "
> perl -f <<< " & quoted form of scriptSrc
> 
> 
> 
> tell application "BBEdit"
> activate
> set newDoc to make new document with properties {text:dataStr, bounds:{0, 
> 44, 1920, 1200}}
> tell newDoc
> select insertion point before its text
> translate html to text with entity conversion without create new 
> document
> end tell
> end tell
> 
> 
> 
> 
> -- 
> 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: <http://www.twitter.com/bbedit 
> <http://www.twitter.com/bbedit>>
> --- 
> 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 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To post to this group, send email to bbedit@googlegroups.com 
> <mailto:bbedit@googlegroups.com>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.
> 
> 
> -- 
> 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: <http://www.twitter.com/bbedit 
> <http://www.twitter.com/bbedit>>
> --- 
> 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 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To post to this group, send email to bbedit@googlegroups.com 

Re: Any way to search previous searches?

2018-08-27 Thread F. Alfredo Rego
Hey Chris,

Very nice!

Congratulations and many thanks.

Alfredo

> On Aug 26, 2018, at 10:28 PM, Christopher Stone  
> wrote:
> 
> On 08/24/2018, at 13:54, Christopher Stone  <mailto:listmeis...@suddenlink.net>> wrote:
>> On 08/20/2018, at 15:15, F. Alfredo Rego > <mailto:f.alfredor...@gmail.com>> wrote:
>>> Rich will probably give me some grief but here is what I did, in case my 
>>> fellow BBEdit users might find this useful.
>> 
>> Here's a live working solution.
>> 
>> It's a bit quick and dirty, so the formatting isn't as precise as I'd like – 
>> but I don't have time to do better right now.
> 
> 
> Hey Alfredo,
> 
> This is better and less of a hack.
> 
> It produces a table, and it puts a regex in line one that will find each 
> bracketed string (and selects it).
> 
> Cmd-Shift-E to enter the regular expression into the Find dialog behind the 
> scenes.
> 
> Cmd-G to find the next string.
> 
> I've provided the source text and a compiled AppleScript.
> 
> --
> Best Regards,
> Chris
> 
> 
> # Auth: Christopher Stone
> # dCre: 2018/08/26 22:00
> # dMod: 2018/08/26 23:13
> # Appl: BBEdit, System Events
> # Task: Export Find History to a BBEdit Text Document.
> # : Include a regular expression for entry into Find via Cmd-Shift-E.
> # Libs: None
> # Osax: None
> # Tags: @Applescript, @Script, @BBEdit, @System_Events, @Export, @Find, 
> @History, @Text, @Document
> 
> 
> try
> 
> set shCMD to "
> export PATH=/opt/local/bin:/opt/local/sbin:/usr/local/bin:$PATH;
> plutil -convert xml1 ~/Library/Preferences/com.barebones.bbedit.plist -o 
> - 
> "
> set thePlist to do shell script shCMD without altering line endings
> 
> tell application "System Events"
> set bbeditPlist to make new property list item with properties 
> {text:thePlist}
> tell bbeditPlist to set plistValue to value of property list items of 
> property list items
> 
> set collatorList to {}
> 
> tell bbeditPlist
> set FindDialog_SearchReplaceHistory_Value to value of property 
> list item "FindDialog_SearchReplaceHistory"
> 
> tell FindDialog_SearchReplaceHistory_Value
> repeat with theRecord in FindDialog_SearchReplaceHistory_Value
> 
> tell theRecord
> 
> set srchDate to (its SearchDate as «class isot») as 
> string
> set srchDate to findReplTIDS("T", " ", srchDate) of me
> 
> set srchStr to its SearchString
> 
> try
> set replStr to its ReplaceString
> on error
> set replStr to ""
> end try
> 
> set end of collatorList to srchDate & tab & "FIND: ❰" 
> & srchStr & "❱" & tab & "REPL: ❰" & replStr & "❱"
> 
> end tell
> 
> end repeat
> end tell
> 
> end tell
> 
> end tell
> 
> set AppleScript's text item delimiters to linefeed
> set collatorList to collatorList as text
> 
> set shCMD to "
> export LANG=\"en_US.UTF-8\"
> column -t -s$'\\t' <<< " & quoted form of collatorList
> set collatorList to do shell script shCMD without altering line endings
> 
> bbeditNewDoc(collatorList, true) of me
> 
> tell application "BBEdit"
> tell front text window
> set before its text to "(?<=❰)\\S.*?(?=❱)" & linefeed & linefeed
> select characters 1 thru -1 of line 1
> end tell
> # open find window
> # tell find window
> # set selection to "(?<=❰)\\S.*?(?=❱)"
> # # close
> # end tell
> end tell
> 
> on error e number n
> set e to e & return & return & "Num: " & n
> if n ≠ -128 then
> try
> tell application (path to frontmost application as text) to set 
> ddButton to button returned of ¬
> (di

Re: Is there any way to ask BBEdit to use double-click to select "words" with embedded periods?

2018-09-08 Thread F. Alfredo Rego
Thanks, Chris, for the tip. I’ll study John Gruber’s notes and I’ll implement 
variatio(n) on his theme(s).

Alfredo

> On Sep 8, 2018, at 10:56 AM, Christopher Stone  
> wrote:
> 
> On 09/08/2018, at 08:13, F. Alfredo Rego  <mailto:f.alfredor...@gmail.com>> wrote:
>> I’m particularly interested in using a simple double-click to SELECT IP 
>> addresses, such as one of the two in this line:
>> 
>>  IP Range: 87.76.32.0 - 87.76.63.255 (8,192) Kazakstan
> 
> 
> Hey Alfredo,
> 
> As far as I know there isn't a means to do this via clicking with the mouse.
> 
> You can however use an AppleScript to select the current “word”, and this 
> will work with IP addresses.
> 
> https://daringfireball.net/2003/09/select_word_script_for_bbedit 
> <https://daringfireball.net/2003/09/select_word_script_for_bbedit>
> 
> You could also script the selection of an IP address:
> 
> * First IP address in the document.
> 
> * First IP address it the current line.
> 
> * Next IP address.
> 
> Etc.
> 
> BBEdit's own select-word command will not handle an IP address, but an 
> AppleScripted select function can be made quite flexible.
> 
> --
> Best Regards,
> Chris

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Is there any way to ask BBEdit to use double-click to select "words" with embedded periods?

2018-09-09 Thread F. Alfredo Rego
Hey Chris,

Wonderful on all counts.

¡Mil gracias!

Alfredo

> On Sep 9, 2018, at 12:57 PM, Christopher Stone  
> wrote:
> 
> On 09/08/2018, at 12:34, F. Alfredo Rego  <mailto:f.alfredor...@gmail.com>> wrote:
>> I’ll study John Gruber’s notes and I’ll implement variatio(n) on his 
>> theme(s).
> 
> 
> Hey Alfredo,
> 
> You can also use BBEdit find function via AppleScript to get very 
> sophisticated.
> 
> 
> 
> tell application "BBEdit"
> tell front text window's text
> set findRec to find "public\\S+" options ¬
> {search mode:grep ¬
> , starting at top:false ¬
> , case sensitive:false ¬
> , backwards:false ¬
> , returning results:true ¬
> } ¬
> with selecting match
> end tell
> end tell
> 
> 
> 
> I've used AppleScript's continuation character (¬) to make the option list 
> vertical for easier reading, although because of the way the silly 
> AppleScript compiler works it's not exactly pretty.
> 
> You can find forward and backward from the current cursor location and then 
> make a selection based on your findings.
> 
> Gruber's script is elegantly simple for what it does, but you can go way 
> beyond that if desired.
> 
> --
> Best Regards,
> Chris
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <https://www.twitter.com/bbedit 
> <https://www.twitter.com/bbedit>>
> --- 
> 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 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To post to this group, send email to bbedit@googlegroups.com 
> <mailto:bbedit@googlegroups.com>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Is there any way to ask BBEdit to use double-click to select "words" with embedded periods?

2018-09-08 Thread F. Alfredo Rego
Hello everyone,

I’m particularly interested in using a simple double-click to SELECT IP 
addresses, such as one of the two in this line:

IP Range: 87.76.32.0 - 87.76.63.255 (8,192) Kazakstan


Apple Mail allows the selection of IP addresses with a double click, which is 
very convenient.


Is there any way to ask BBEdit to use double-click to select “words" with 
embedded periods?

Perhaps via some “obscure” language module?

Ideally via some “clearer” and easier method?


Thanks.

Alfredo

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, 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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Navigating folders and files in a project sidebar from the keyboard?

2018-03-06 Thread F. Alfredo Rego
Thanks, Patrick for the useful cribbing.

Any tricks for getting the focus on the [project’s] file list WITHOUT having to 
click on it (i.e., without taking our hands off the keyboard)?

We want to save EVERY calorie that we can.

Alfredo

> On Mar 6, 2018, at 12:50 PM, Patrick Woolsey  wrote:
> 
> There is an expert pref which you can set to allow the file list to gain 
> keyboard focus. Cribbing from the "Expert Preferences" page of the Help book:
> 
> 
> Projects
> 
>  * In project windows, the file list does not accept keyboard focus by
>default, unless the editing view is hidden. You can modify this so
>that the file list gets the focus whenever you click on it:
> 
>[ by issuing the following Terminal command on a single line ]
> 
>defaults write com.barebones.bbedit ProjectsListCanAcquireKeyboardFocus 
> -bool YES
> 
> 
> 
> 
> Regards,
> 
> Patrick Woolsey
> ==
> Bare Bones Software, Inc. 
> 
> 
> On 3/5/18 at 6:07 PM, bria...@gmail.com (Brian Christiansen) wrote:
> 
>> Hello,
>> 
>> After searching the user manual (love that thing) and this group, I can't 
>> find anything on getting around within the sidebar without taking my hands 
>> off the keyboard.
>> What I am picturing is,
>> 
>> 1. Key combo to shift focus to the sidebar
>> 2. Keys to move through the hierarchy, in the manner of navigating the 
>> Finder from the keyboard.
>> 3. Perhaps CMD-O to open a file
>> 4. Key combo to shift focus back to the editor pane.
>> 
>> Am I just missing it? I've wanted to do this for years, and have never 
>> gotten around to asking. The majority of my work is within Projects, so for 
>> me the Sidebar is there 95% of the time.
>> 
>> Thank you,
>> ~brian
>> 
> 
> -- 
> 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.
> Visit this group at https://groups.google.com/group/bbedit.

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Navigating folders and files in a project sidebar from the keyboard?

2018-03-07 Thread F. Alfredo Rego
Hey Chris,

These two shortcuts work great.

Thanks!

Alfredo 

> On Mar 7, 2018, at 5:52 PM, Christopher Stone <listmeis...@suddenlink.net> 
> wrote:
> 
> On 03/06/2018, at 16:33, F. Alfredo Rego <f.alfredor...@gmail.com 
> <mailto:f.alfredor...@gmail.com>> wrote:
>> Any tricks for getting the focus on the [project’s] file list WITHOUT having 
>> to click on it (i.e., without taking our hands off the keyboard)?
> 
> 
> Hey Alfredo,
> 
> Control-Tab
> 
> Control-Shift-Tab
> 
> --
> Best Regards,
> Chris
> 
> 
> -- 
> 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: <http://www.twitter.com/bbedit 
> <http://www.twitter.com/bbedit>>
> --- 
> 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 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To post to this group, send email to bbedit@googlegroups.com 
> <mailto:bbedit@googlegroups.com>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

-- 
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: <http://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Navigating folders and files in a project sidebar from the keyboard?

2018-03-10 Thread F. Alfredo Rego
ebones.bbedit WarnMalformedUTF8 -bool YES
defaults write com.barebones.bbedit AskForUnguessableFileEncoding -bool YES
defaults write com.barebones.bbedit UseResourceForkForDocumentState -bool YES
defaults write com.barebones.bbedit SaveDocumentStateForTempFiles -bool YES
defaults write com.barebones.bbedit WriteExtendedAttributes 
defaults write com.barebones.bbedit Editor_SoftWrapLengthThreshold -int 1048576
defaults write com.barebones.bbedit InspectTextFileContentsForListFiltering 
-bool NO
defaults write com.barebones.bbedit PreferredFilenameExtension_ 
-string "abc"
defaults write com.barebones.bbedit PreferredFilenameExtension_C++ -string "cxx"
defaults write com.barebones.bbedit PreferredFilenameExtension_YAML -string 
"yaml"
defaults write com.barebones.bbedit EnableAutoSave_v2 -bool YES
defaults write com.barebones.bbedit AutoSaveIntervalInMinutes_v2 -int 10
defaults write com.barebones.bbedit SaveTitledDocumentsBeforeSleeping -bool YES
defaults write com.barebones.bbedit AllowVolumeMountDuringStateRestore -bool YES
defaults write com.barebones.bbedit ReopenRemoteDocuments -bool YES
defaults write com.barebones.bbedit PromptToReopenRemoteDocuments - bool YES
defaults write com.barebones.bbedit PerforceDoNotUseP4Login -bool YES
defaults write com.barebones.bbedit SkipSCMAdminDirsWhenScanningFolders -bool NO
defaults write com.barebones.bbedit PerforceToolPathOverride /path/to/p4/binary
defaults write com.barebones.bbedit SubversionToolPathOverride 
/path/to/svn/binary
defaults write com.barebones.bbedit ShowSVNSwitchedItems -bool YES
defaults write com.barebones.bbedit FixedWidthFontSmoothingThreshold -int 8
defaults write com.barebones.bbedit FontSmoothingThreshold -int 4
defaults write com.barebones.bbedit DisableFontSmoothing_FONTNAME -bool YES
defaults write com.barebones.bbedit DisableFontSmoothing_Monaco -bool YES
defaults write com.barebones.bbedit EnableFontLigatures_Hasklig -bool YES
defaults write com.barebones.bbedit EnableRareLigatures_HaskLig -bool YES
defaults write com.barebones.bbedit FindDialog_UsesFindScrap -bool NO
defaults write com.barebones.bbedit Editor_AlwaysOpenQuickFind -bool YES
defaults write com.barebones.bbedit ReportReplaceAllResults -bool YES
defaults write com.barebones.bbedit ReplaceAllResultsIncludeTiming -bool YES
defaults write com.barebones.bbedit ShowFullPathsInSearchResults -bool YES
defaults write com.barebones.bbedit SurfNextPreviousInDisplayOrder -bool YES
defaults write com.barebones.bbedit ZoomWindowsInPlace -bool NO
defaults write com.barebones.bbedit FullScreenWindowsHogScreen -bool NO
defaults write com.barebones.bbedit FullScreenWidthThreshold -float 0.65
defaults write com.barebones.bbedit NSRecentDocumentsLimit:Projects -int 5
defaults write com.barebones.bbedit NSRecentDocumentsLimit:Folders -int 10
defaults write com.barebones.bbedit "NSRecentDocumentsLimit:Shell Worksheets" 
-int 1
defaults write com.barebones.bbedit NSRecentDocumentsLimit:Images -int 0
defaults write com.barebones.bbedit MostRecentItemsGroupLimit -int 15
defaults write com.barebones.bbedit RecentItems_RememberTempFiles -bool YES
defaults write com.barebones.bbedit CloseOFBNWindowAfterOpeningSelection -bool 
YES
defaults write com.barebones.bbedit MoveModelessWindowsToActiveSpace_FindWindow 
-bool YES
defaults write com.barebones.bbedit 
MoveModelessWindowsToActiveSpace_MultiFileFindWindow -bool YES
defaults write com.barebones.bbedit 
MoveModelessWindowsToActiveSpace_OpenFileByNameWindow -bool YES
defaults write com.barebones.bbedit MoveModelessWindowsToActiveSpace -bool YES
defaults write com.barebones.bbedit UseInlineStylesForCopiedHTML -bool NO
defaults write com.barebones.bbedit DisableCtagsScanOnRemoteVolumes -bool NO
defaults write com.barebones.bbedit OpenByNameMaxWildcardMatches -int 200
defaults write com.barebones.bbedit UseSeparatorsInUnixScriptOutput -bool NO
defaults write com.barebones.bbedit OpenPanelShowsFrontDocumentDirectory -bool 
YES


> On Mar 10, 2018, at 10:29 AM, Lee Hinde <leehi...@gmail.com> wrote:
> 
> Look for Expert Preferences in BBEdit Help (under the Help Menu).
> 
>> On Mar 10, 2018, at 9:24 AM, F. Alfredo Rego <f.alfredor...@gmail.com> wrote:
>> 
>> Very Nice, Patrick.
>> 
>> Is there a compact/terse list of all of these great “accessory prefs” 
>> somewhere?
>> 
>> Thanks.
>> 
>> Alfredo
>> 
>>> On Mar 10, 2018, at 10:12 AM, Patrick Woolsey <pwool...@barebones.com> 
>>> wrote:
>>> 
>>> On 3/9/18 at 6:11 PM, bria...@gmail.com (Brian Christiansen) wrote:
>>> 
>>>>> defaults write com.barebones.bbedit ProjectsListCanAcquireKeyboardFocus 
>>>>> -bool YES
>>>> 
>>>> Patrick, thank you. Now I have to struggle with whether I actually like 
>>>> this or not. Because the Project sidebar is instant-activation, by which I 
&

Re: Navigating folders and files in a project sidebar from the keyboard?

2018-03-10 Thread F. Alfredo Rego
Very Nice, Patrick.

Is there a compact/terse list of all of these great “accessory prefs” somewhere?

Thanks.

Alfredo

> On Mar 10, 2018, at 10:12 AM, Patrick Woolsey  wrote:
> 
> On 3/9/18 at 6:11 PM, bria...@gmail.com (Brian Christiansen) wrote:
> 
>>> defaults write com.barebones.bbedit ProjectsListCanAcquireKeyboardFocus 
>>> -bool YES
>> 
>> Patrick, thank you. Now I have to struggle with whether I actually like this 
>> or not. Because the Project sidebar is instant-activation, by which I mean, 
>> it opens the file as soon as it's highlighted. So if I want to arrow down 10 
>> files to open the 10th, I wind up opening 1–10. On first experiment, I 
>> opened 30 files in 1.5 seconds, unintentionally. ("This is why it's not 
>> enabled by default behavior", Patrick thinks to himself.)
>> 
>> However, playing with this in the Currently open documents pane, that I've 
>> liked a lot.
> 
> Apropos of when BBEdit opens files, there is an accessory pref as follows:
> 
> ===
> Projects
> 
>  [...]
> 
>  * Project windows will ordinarily open an item in the file list for
>editing when you click on it and the editing view is visible. To
>require a double-click:
> 
>[ please issue the following Terminal command ]
> 
>defaults write com.barebones.bbedit ProjectsOpenItemsOnSingleClick -bool NO
> 
> ===
> 
> so you may wish to apply it as well. :-)
> 
> 
>>> Control-Tab
>>> Control-Shift-Tab
>> 
>> Thank you, Chris! This one is completely new to me.
>> 
> 
> FWIW you can use these key shortcuts to switch between panes within a window 
> in (nearly) every Mac application.
> 
> 
> Regards,
> 
> Patrick Woolsey
> ==
> Bare Bones Software, Inc. 
> 
> -- 
> 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.
> Visit this group at https://groups.google.com/group/bbedit.

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Navigating folders and files in a project sidebar from the keyboard?

2018-03-10 Thread F. Alfredo Rego
Rich,

Nice, BUT the file opens in a new window. How about just “activating” it within 
the Project’s “Currently Open Documents”?

I appreciate discovering all of these no-so-obvious jewels.

Thanks.

Alfredo

> On Mar 10, 2018, at 9:34 AM, Rich Siegel <sie...@barebones.com> wrote:
> 
> On 3/6/18 at 5:33 PM, f.alfredor...@gmail.com (F. Alfredo Rego) wrote:
> 
>> Any tricks for getting the focus on the [project’s] file list WITHOUT having 
>> to click on it (i.e., without taking our hands off the keyboard)?
> 
> If you have a project open, try "Open File by Name" and type the first few 
> characters of the file name. You can drive the entire process from the 
> keyboard.
> 
> R.
> -- 
> Rich Siegel Bare Bones Software, Inc.
> <sie...@barebones.com>  <http://www.barebones.com/>
> 
> Someday I'll look back on all this and laugh... until they sedate me.
> 
> -- 
> 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: <http://www.twitter.com/bbedit>
> --- 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.
> Visit this group at https://groups.google.com/group/bbedit.

-- 
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: <http://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Regular expression with negative look-behind assertion

2018-04-16 Thread F. Alfredo Rego
Now for a quick break along the lines of “Obvious in retrospect: Duh”.

I knew exactly what I wanted, to find the needle(s) in a VERY large stack 
(thousands upon thousands of lines of code).

However, I was sidetracked from simplicity by the siren songs of sophisticated 
technology (fabulous ways of finding what I DIDN’T want — both backwards and 
forwards — and then negating/reversing/inverting to get what I wanted). 

In the process, I missed the (now obvious) simplest solution, as expressed by 
Dave: Match at the start for zero or more horizontal spaces (“\s” also works as 
a generic space) followed by #define

^\h*#define

or

^\s*#define


This got exactly what I wanted: All defined #defines regardless of indentation.

Fortunately, this little excursion into new and wild territories (at least for 
me) pointed the way to further research and learning.


With deep appreciation,

Alfredo


> On Apr 16, 2018, at 8:28 AM, Jean-Christophe Helary 
> <jean.christophe.hel...@gmail.com> wrote:
> 
> Thank you for asking the question in the first place. It was my first time 
> putting such devices into action, I really got interested in them !
> 
> JC
> 
>> On Apr 16, 2018, at 23:15, F. Alfredo Rego <f.alfredor...@gmail.com 
>> <mailto:f.alfredor...@gmail.com>> wrote:
>> 
>> Jean-Christophe, Dave, Chris,
>> 
>> Great suggestions.
>> 
>> What Chris suggested worked on all cases, indented or not:
>> ^(?>(?:(?!//).)*#define.+)
>> 
>> What Dave suggested worked on all cases, indented or not:
>> ^\h*#define
>> 
>> What Jean-Christophe suggested (with that tricky space configured precisely) 
>> worked on #defines without leading spaces but it also found an indented 
>> COMMENTED #define:
>> 
>> Original test case:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> The simplest was Dave’s suggestion.
>> 
>> What Chris and Jean-Christophe suggested motivated me to dive deeper into 
>> positional assertions (with their various flavors and caveats), as Chris 
>> mentioned:
>> 
>> Positional assertions are great, but why use them if you don’t have to, 
>> especially look-behinds, which can’t have variable string lengths?
>> 
>> So much to learn!
>> 
>> 
>> With many thanks to the three of you,
>> 
>> Alfredo
>> 
>> 
>> 
>> On Apr 16, 2018, at 7:09 AM, Christopher Stone <listmeis...@suddenlink.net 
>> <mailto:listmeis...@suddenlink.net>> wrote:
>> 
>> On 04/16/2018, at 01:59, F. Alfredo Rego <f.alfredor...@gmail.com 
>> <mailto:f.alfredor...@gmail.com>> wrote:
>>> I’m almost there, but not quite, because I’m interested in the UNCOMMENTED 
>>> #defines, such as line 5 here:
>> 
>> 
>> Hey Alfredo,
>> 
>> What you really want here is a negative lookahead assertion.
>> 
>> ^(?>(?:(?!//).)*#define.+)
>> 
>> It's much more flexible than a negative lookbehind assertion, although it 
>> can be a bit hard to understand.
>> 
>> --
>> Best Regards,
>> Chris
>> 
>> 
>> 
>> 
>> On Apr 16, 2018, at 5:44 AM, Dave <dave.live...@gmail.com 
>> <mailto:dave.live...@gmail.com>> wrote:
>> 
>> How about 
>> ^#define
>> or, if some might be indented,
>> ^\h*#define
>> 
>> Positional assertions are great, but why use them if you don't have to, 
>> especially look-behinds, which can't have variable string lengths?
>> 
>> 
>> 
>> 
>> 
>> On Apr 16, 2018, at 3:48 AM, Jean-Christophe Helary 
>> <jean.christophe.hel...@gmail.com <mailto:jean.christophe.hel...@gmail.com>> 
>> wrote:
>> 
>> 
>> On my side I get the uncommented lines.
>> 
>> (?> 
>> 
>> 
>> JC
>> 
>> 
>> -- 
>> 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 <mailto:supp...@barebones.com>" rather than posting 
>> to the group.
>> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit 
>> <http://www.twitter.com/bbedit>>
>> --- 
>> 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 
>> <mailto:bbedit+unsubscr...@googlegroups.com>.
>> To post to this group, send email to bbedit@googleg

Re: Regular expression with negative look-behind assertion

2018-04-16 Thread F. Alfredo Rego
I get my expression mixed up. What I meant was:

as DAVE mentioned:

Positional assertions are great, but why use them if you don’t have to, 
especially look-behinds, which can’t have variable string lengths?


I need to get some sleep ;-)

Thanks.

Alfredo



> On Apr 16, 2018, at 8:15 AM, F. Alfredo Rego <f.alfredor...@gmail.com> wrote:
> 
> Jean-Christophe, Dave, Chris,
> 
> Great suggestions.
> 
> What Chris suggested worked on all cases, indented or not:
> ^(?>(?:(?!//).)*#define.+)
> 
> What Dave suggested worked on all cases, indented or not:
> ^\h*#define
> 
> What Jean-Christophe suggested (with that tricky space configured precisely) 
> worked on #defines without leading spaces but it also found an indented 
> COMMENTED #define:
> 
> . . .
> 
> 
> The simplest was Dave’s suggestion.
> 
> What Chris and Jean-Christophe suggested motivated me to dive deeper into 
> positional assertions (with their various flavors and caveats), as Chris 
> mentioned:
> 
> Positional assertions are great, but why use them if you don’t have to, 
> especially look-behinds, which can’t have variable string lengths?
> 
> So much to learn!
> 
> 
> With many thanks to the three of you,
> 
> Alfredo
> 
> 
> 
> On Apr 16, 2018, at 7:09 AM, Christopher Stone <listmeis...@suddenlink.net 
> <mailto:listmeis...@suddenlink.net>> wrote:
> 
> On 04/16/2018, at 01:59, F. Alfredo Rego <f.alfredor...@gmail.com 
> <mailto:f.alfredor...@gmail.com>> wrote:
>> I’m almost there, but not quite, because I’m interested in the UNCOMMENTED 
>> #defines, such as line 5 here:
> 
> 
> Hey Alfredo,
> 
> What you really want here is a negative lookahead assertion.
> 
> ^(?>(?:(?!//).)*#define.+)
> 
> It's much more flexible than a negative lookbehind assertion, although it can 
> be a bit hard to understand.
> 
> --
> Best Regards,
> Chris
> 
> 
> 
> 
> On Apr 16, 2018, at 5:44 AM, Dave <dave.live...@gmail.com 
> <mailto:dave.live...@gmail.com>> wrote:
> 
> How about 
> ^#define
> or, if some might be indented,
> ^\h*#define
> 
> Positional assertions are great, but why use them if you don't have to, 
> especially look-behinds, which can't have variable string lengths?
> 
> 
> 
> 
> 
> On Apr 16, 2018, at 3:48 AM, Jean-Christophe Helary 
> <jean.christophe.hel...@gmail.com <mailto:jean.christophe.hel...@gmail.com>> 
> wrote:
> 
> 
> On my side I get the uncommented lines.
> 
> (? 
> 
> 
> JC
> 

-- 
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: <http://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Navigating folders and files in a project sidebar from the keyboard?

2018-03-05 Thread F. Alfredo Rego
Hello Brian,

I use Keyboard Maestro with great success for these kinds of challenges.

Enjoy!

Alfredo

> On Mar 5, 2018, at 4:07 PM, Brian Christiansen  wrote:
> 
> Hello,
> 
> After searching the user manual (love that thing) and this group, I can't 
> find anything on getting around within the sidebar without taking my hands 
> off the keyboard. 
> 
> What I am picturing is,
> 
> 1. Key combo to shift focus to the sidebar
> 2. Keys to move through the hierarchy, in the manner of navigating the Finder 
> from the keyboard.
> 3. Perhaps CMD-O to open a file
> 4. Key combo to shift focus back to the editor pane.
> 
> Am I just missing it? I've wanted to do this for years, and have never gotten 
> around to asking. The majority of my work is within Projects, so for me the 
> Sidebar is there 95% of the time.
> 
> Thank you,
> ~brian
> 
> -- 
> 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 
> .
> Visit this group at https://groups.google.com/group/bbedit 
> .

-- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: I believe that SOME non-greedy quantifier(s) SOMEWHERE might help

2018-10-05 Thread F. Alfredo Rego
Hey Chris,

I believe I’m getting closer and closer to appreciating the beauty and the 
simplicity of the concepts behind greedy and non-greedy. 

Patrick’s guidance yesterday worked perfectly and I customized his regex to 
suit my specific needs.

I’ll continue working on simplifying things. Simplicity is VERY powerful.

I hope everyone else in our group will benefit from these conversations.

Thanks for your great tutorial and example.

Alfredo


> On Oct 5, 2018, at 12:38 PM, Christopher Stone  
> wrote:
> 
> On 10/04/2018, at 10:09, F. Alfredo Rego  <mailto:f.alfredor...@gmail.com>> wrote:
>> After doing lots of exercises using your example, this greedy vs. non-greedy 
>> challenge WILL be conquered. Once this concept is clear, everything becomes 
>> clear.
> 
> 
> Hey Alfredo,
> 
> Did you wrap your head around the Greedy vs Non-Greedy issue yet?
> 
> It's really very simple in concept.
> 
> First Possible Match vs. Last Possible Match.
> 
> Using this test data:
> 
> 
> 12345678901234567890123456789012345678901234567890
> 
> 
> Greedy:
> 
> 1.+0
> 
> Non-Greedy:
> 
> 1.+?0
> 
> 
> Using this test data:
> 
> 
> /sbin/md5 ~/'test_directory/01_movie_test_file.mov' /sbin/md5 
> ~/'test_directory/02_movie_test_file.mov'
> 
> 
> /sbin/md5 ~/'test_directory/03_movie_test_file.mov'
> 
> 
> Non-Greedy:
> 
> ^\S.+?movie_test_file\.mov
> 
> Greedy:
> 
> ^\S.+movie_test_file\.mov
> 
> 
> Adding other modifiers changes the constraints of what can be found.
> 
> (?s) allows . to match EOL characters and therefore span lines.
> 
> Non-Greedy:
> 
> (?s)^\S.+?movie_test_file\.mov
> 
> Greedy:
> 
> (?s)^\S.+movie_test_file\.mov
> 
> 
> HTH.
> 
> --
> Take Care,
> Chris

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Grep: pattern_2 NOT preceded by pattern_1 (with pattern_1 not necessarily IMMEDIATELY to the left of pattern_2)

2018-10-12 Thread F. Alfredo Rego
Hello everyone.

I would like to craft an expression to find lines that contain pattern_2 NOT 
preceded by pattern_1
(with pattern_1 not necessarily IMMEDIATELY to the left of pattern_2).

This is the catch, so let me repeat it with emphasis on IMMEDIATELY:

with pattern_1 not necessarily IMMEDIATELY to the left of pattern_2


For instance: pattern_1 and pattern_2 distributed thus are of no interest to me:

pattern_1 immediately preceding pattern_2: pattern_1pattern_2

A blank between pattern_1 and pattern_2: pattern_1 pattern_2

Some stuff between pattern_1 and pattern_2: pattern_1 with Some stuff and 
then pattern_2


On the other hand, this is a line of interest that has pattern_2 but absolutely 
no pattern_1 anywhere before:

Some stuff (possibly nothing) and then pattern_2


I want the results of my ideal expression to report ONLY the last line in this 
example:

pattern_1pattern_2
pattern_1 pattern_2
pattern_1 with Some stuff and then pattern_2
Some stuff (possibly nothing) and then pattern_2


I tried:
(?https://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Any tricks to set the non-default value of "Strip trailing whitespace" for an individual file?

2018-10-22 Thread F. Alfredo Rego
BINGO!

That [*] did it. Of course. Obvious in retrospect.

Thanks, Jim. 

Alfredo

> On Oct 22, 2018, at 8:57 AM, Jim Danner  wrote:
> 
> Shouldn't you have a line that contains
> [*]
> 
> before the trim_trailing_whitespace line? It seems so from the example on the 
> Editorconfig homepage.
> 
> On Monday, October 22, 2018 at 3:33:04 PM UTC+2, Alfredo wrote:
> Ollie,
> 
> I placed the attached file here, where my specific clipping of interest is:
> 
> ~/Library/Application Support/BBEdit/Clippings/C Source.cp/.editorconfig
> 
> BBEdit still kindly strips trailing blanks when saving the clipping.
> 
> 
> Any ideas where the breakdown in communication may be happening along the 
> channel?
> 
> Thanks.
> 
> Alfredo

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, 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.
Visit this group at https://groups.google.com/group/bbedit.


Any tricks to set the non-default value of "Strip trailing whitespace" for an individual file?

2018-10-20 Thread F. Alfredo Rego
Hello everyone,

BBEdit Preferences for Text Files lets us set a default choice for “Strip 
trailing whitespace” as a GLOBAL setting.

I have this checked (to YES), because I like this choice for my source files.

However, for clippings (and other “stencils”), it’s convenient to have a 
trailing blank for some lines.

So far, the only way I have found to control this is to uncheck the global 
preference, then save the file, and then recheck the global preference. Of 
course, it's boringly predictable that every now and then I’ll forget. So, I 
would prefer to delegate the memory of this setting to the file’s own metadata, 
under BBEdit’s capable management: Do it once and then forget about it.

Any tricks to set ANY value of “Strip trailing whitespace” for an INDIVIDUAL 
file, regardless of the GLOBAL setting?


Thanks.

Alfredo

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, 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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Grep: pattern_2 NOT preceded by pattern_1 (with pattern_1 not necessarily IMMEDIATELY to the left of pattern_2)

2018-10-19 Thread F. Alfredo Rego
Hey Chris,

This works like magic! I even tried variable-length patterns and everything 
works perfectly, without having to deal with the frustratingly annoying 
limitations of negative loo-behind & Co.

Thank you very much. I’m sure many in this group will benefit from your 
successfully crafted work to accomplish this apparently trivial but obviously 
extremely challenging search: 

Find all occurrences of a given pattern that is NOT preceded by some other 
pattern anywhere (whether immediately or not).

Alfredo

P.S.
Your previous suggestion had a slightly undesired side effect: It erased all of 
my backups, locally and in the Cloud. Other than this minor inconvenience, it 
was a good exercise ;-)

For better or for worse, these expressions are VERY powerful and every 
character counts (or doesn’t count).




> On Oct 19, 2018, at 3:35 PM, Christopher Stone  
> wrote:
> 
> On 10/13/2018, at 12:26, F. Alfredo Rego  <mailto:f.alfredor...@gmail.com>> wrote:
>> Did you mean to use the same name for both patterns?
> 
> 
> Hey Alfredo,
> 
> No.  That was a goof up.
> 
> I also misplaced a character.
> 
> Try this:
> 
> ^(?>(?:(?!ostracized_string).))*wanted_string.*$
> 
> --
> Best Regards,
> Chris
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <https://www.twitter.com/bbedit 
> <https://www.twitter.com/bbedit>>
> --- 
> 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 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To post to this group, send email to bbedit@googlegroups.com 
> <mailto:bbedit@googlegroups.com>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Grep: pattern_2 NOT preceded by pattern_1 (with pattern_1 not necessarily IMMEDIATELY to the left of pattern_2)

2018-10-19 Thread F. Alfredo Rego
That was a lame joke (to attempt to convey the power of regexes, for better or 
for worse) and I’m sorry if I scared you ;-)

> On Oct 19, 2018, at 4:23 PM, Christopher Stone  
> wrote:
> 
> On 10/19/2018, at 17:14, F. Alfredo Rego  <mailto:f.alfredor...@gmail.com>> wrote:
>> P.S.
>> Your previous suggestion had a slightly undesired side effect: It erased all 
>> of my backups, locally and in the Cloud. Other than this minor 
>> inconvenience, it was a good exercise ;-)
> 
> 
> Hey Alfredo,
> 
> Eh
> 
> How?
> 
> In any case – never test on vital data files...
> 
> --
> Best Regards,
> Chris

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Grep: pattern_2 NOT preceded by pattern_1 (with pattern_1 not necessarily IMMEDIATELY to the left of pattern_2)

2018-10-13 Thread F. Alfredo Rego
Hey Chris,

How about this?

Dear engine: 

Please look for pattern_2 in the current line. 

If the current line DOESN’T CONTAIN pattern_2, great. Skip this line 
and try the next line.

However, if the current line CONTAINS pattern_2:

Does the current line ALSO CONTAIN pattern_1 ANYWHERE BEFORE 
pattern_2 (whether immediately before or not)? 

If yes, skip this line and try the next line.

If not, select this line.


Thanks!

Alfredo

P.S.

Did you mean to use the same name for both patterns? 

Your expression uses “pattern_1” twice, whereas I used “pattern_1” for the 
first pattern and “pattern_2” for the second pattern.

Anyhow, I tried several possibilities with your expression, but  couldn’t get 
any variation to do what I would like to do.



> On Oct 13, 2018, at 12:08 AM, Christopher Stone  <mailto:listmeis...@suddenlink.net>> wrote:
> 
> On 10/12/2018, at 16:03, F. Alfredo Rego  <mailto:f.alfredor...@gmail.com>> wrote:
>> I would like to craft an expression to find lines that contain pattern_2 NOT 
>> preceded by pattern_1
>> (with pattern_1 not necessarily IMMEDIATELY to the left of pattern_2).
> 
> 
> Hey Alfredo,
> 
> It's a best-practice to provide one or more real-world data-samples when 
> making this sort of request.
> 
> In any case this is the sort of thing you're looking for:
> 
> ^(?>(?:(?!pattern_1).)*)pattern_1$
> 
> --
> Best Regards,
> Chris
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com <mailto:supp...@barebones.com>" rather than posting to 
> the group.
> Follow @bbedit on Twitter: <https://www.twitter.com/bbedit 
> <https://www.twitter.com/bbedit>>
> --- 
> 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 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To post to this group, send email to bbedit@googlegroups.com 
> <mailto:bbedit@googlegroups.com>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Grep: pattern_2 NOT preceded by pattern_1 (with pattern_1 not necessarily IMMEDIATELY to the left of pattern_2)

2018-10-13 Thread F. Alfredo Rego
Hi Patrick,

The special case “fixed-length specific string” is perfect. So, I rephrase:

Dear engine,

Here are some lines:

Some stuff of no interest whatsoever
ostracized_stringwanted_string   
ostracized_string wanted_string
ostracized_string with Some stuff and then wanted_string
wanted_string
Some stuff and then wanted_string
 

Please look for wanted_string in the current line. 

If the current line DOESN’T CONTAIN wanted_string, great. Skip this line 
and try the next line.

However, if the current line CONTAINS wanted_string:

Does the current line ALSO CONTAIN ostracized_string ANYWHERE BEFORE 
wanted_string 
(whether ostracized_string is immediately before wanted_string or not)? 

If yes, skip this line and try the next line.

If not, select this line.



You WILL SELECT the following lines:

wanted_string
Some stuff and then wanted_string


You WILL IGNORE the following lines:

Some stuff of no interest whatsoever
ostracized_stringwanted_string   
ostracized_string wanted_string
ostracized_string with Some stuff and then wanted_string
 

Thanks!

Alfredo

P.S.

The general case “arbitrary patterns” would be better, of course, but that 
would be icing on the cake.



> On Oct 13, 2018, at 12:54 PM, Patrick Woolsey  wrote:
> 
> 
> Are your 'pattern_1' and 'pattern_2' actual arbitrary patterns, or are they 
> instead strings (or sets of strings)?
> 
> 
> Regards,
> 
> Patrick Woolsey
> ==
> Bare Bones Software, Inc. 

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, 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.
Visit this group at https://groups.google.com/group/bbedit.


Re: I believe that SOME non-greedy quantifier(s) SOMEWHERE might help

2018-10-04 Thread F. Alfredo Rego
Hi Patrick,

This worked like magic.

I’ll have fun “adjusting as necessary” as you mention.

I like the simple beauty of your design, which works perfectly.

After doing lots of exercises using your example, this greedy vs. non-greedy 
challenge WILL be conquered. Once this concept is clear, everything becomes 
clear.


¡Mil gracias! 

Alfredo



> On Oct 4, 2018, at 8:29 AM, Patrick Woolsey  wrote:
> 
> On Oct 04, 2018, at 01:39, F. Alfredo Rego  wrote:
>> 
>> Dear regex gurus,
>> 
>> I have many files that contain text like this and I would like to select 
>> entire blocks for which I have created home-brewed “delimiters” (such as 
>> “Block_begin” and “Block_end”). These delimiters, of course, can be any 
>> metadata that I don’t use as data, so this is just one specific example that 
>> I use for expressions that contain “_debug_”:
>> 
> [...]
> 
> Though it's hard to be sure without testing against actual data :-), I 
> suggest you try this:
> 
> Find:   {.+?Block_begin(?s).+?Block_end
> 
> and adjust if need be.
> 
> This pattern starts by matching a literal left curly bracket { followed by 
> one or more instances of any character .+ _non-greedily_ ? up to the literal 
> string "Block_begin", then uses the modifier (?s) to allow . to match line 
> breaks and again performs a _non-greedy_ search for one or more instances of 
> any character .+? -- this time across line breaks if necessary -- until it 
> matches the literal string "Block_end" and that's all, folks. ;-)
> 
> 
> Regards,
> 
> Patrick Woolsey
> ==
> Bare Bones Software, Inc. <http://www.barebones.com/>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Noob trying to improve on these grep / expressions

2019-01-04 Thread F. Alfredo Rego
Thanks, Chris.

I really appreciate (and enjoy) every one of your wise contributions.

Alfredo

> On Jan 4, 2019, at 12:58 PM, Christopher Stone  
> wrote:
> 
> On 01/04/2019, at 13:44, F. Alfredo Rego  <mailto:f.alfredor...@gmail.com>> wrote:
>> RegExRX seems to have gone dormant five years ago. 
>> 
>> Do you have any news/updates regarding newer/better approaches, if any?
> 
> 
> Hey Alfredo,
> 
> Crud.  I didn't realize it was a 32-bit app.
> 
> You can find it here:
> 
> http://www.mactechnologies.com/index.php?page=downloads#regexrx 
> <http://www.mactechnologies.com/index.php?page=downloads#regexrx>
> And you can drop the developer a note requesting an update.  (I just did.)
> 
> I usually start building a regular expression with BBEdit.
> 
> If I'm having trouble I usually go to Patterns.
> 
> But there are times when RegExRx is better, so I hope the dev gets on his 
> keyboard and drums out some new code.
> 
> --
> Best Regards,
> Chris

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Noob trying to improve on these grep / expressions

2019-01-05 Thread F. Alfredo Rego
Hey Chris,

Great news for all of us.

I got RegExRX from the App Store.

Thanks.

Alfredo

> On Jan 5, 2019, at 12:39 PM, Christopher Stone  
> wrote:
> 
> On 01/04/2019, at 13:44, F. Alfredo Rego  <mailto:f.alfredor...@gmail.com>> wrote:
>> RegExRX seems to have gone dormant five years ago. 
>> Do you have any news/updates regarding newer/better approaches, if any?
> 
> 
> Hey Alfredo,
> 
> Good news – I heard back from Kem Tekinay the developer of RegExRX (see 
> appended).
> 
> --
> Best Regards,
> Chris
> 
> 
> Begin forwarded message:
> 
> From: Kem Tekinay
> Subject: Re: [MTC WEBSITE] Software Support
> Date: Jan 04, 2019 at 22:36:46 CST
> To: Christopher Stone
> 
> Me too! :-)
> 
> Yes, I rely on it too, so I’ll be doing that before it actually makes a 
> difference.
> 
> Thanks.
> 
>> On Jan 4, 2019, at 2:53 PM, Christopher Stone wrote:
>> 
>> RegExRX is a 32-bit app.
>> 
>> Are you going to update it to 64-bit.
>> 
>> I for one would sure appreciate it.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Any ideas for a "super include" ?

2018-11-16 Thread F. Alfredo Rego
Hello everyone,

I don’t know whether this is a common kind of need that has already been met a 
thousand times, so please enlighten me either way.

Instead of typing certain repetitive (and dynamic) content into a file, I would 
like to use some kind of a “super include” (for BBEdit, of course) that would 
integrate the actual contents of a custom header file as a “normal” part of the 
file.


Sure, in C-like languages, I can use #include to tell the preprocessor to 
include the contents of another file for the preprocessor’s own uses, BUT the 
challenge is that the reader has to go to the referenced file to see what the 
contents are.

I would like to make it as easy as possible for the readers of ANY file that 
they open, so they can see, immediately, the contents of the “custom” header 
file. Please keep in mind that the custom header file’s contents are dynamic 
and I would rather change the contents ONCE rather than make the changes myriad 
times on specific files, if I have “hardwired” such content into each file.

Here is an example.


Suppose I have a “custom header” file foo.h like this:

/// @file foo.h

// Hi:
//
// These are the contents of
// interest, which I keep in some external file.


and a “regular” file such as whatever.c (which contains a presumptive 
//xyzBBEdit “foo.h” to ask that the contents of foo.h be explicitly included) 
like this:

/// @file whatever.c

#include “whatever.h” // This is the standard C preprocessor #include

//xyzBBEdit “foo.h”   // Something like this is what I would like to be 
able to use

void whatever (void);


Ideally, after having saved file whatever.c, opening it in the future should 
magically render like this:   

/// @file whatever.c

#include "whatever.h"

//xyzBBEdit "foo.h"
/// @file foo.h

// Hi:
//
// These are the contents of
// interest, which I keep in some external file.

void whatever (void);


Any ideas?

Thanks.

Alfredo










-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, 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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Noob trying to improve on these grep / expressions

2019-01-04 Thread F. Alfredo Rego
Hey Chris,

RegExRX seems to have gone dormant five years ago. 

Do you have any news/updates regarding newer/better approaches, if any?

Thanks.

Alfredo


> On Jan 4, 2019, at 12:10 PM, Christopher Stone  
> wrote:
> 
> Tools like BBEdit , Patterns 
>  
> and/or RegExRX .

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, 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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Asking the experts for a less greedy regex

2019-06-22 Thread F. Alfredo Rego
Thanks, Patrick.

Alfredo

> On Jun 22, 2019, at 1:15 PM, Patrick Woolsey  wrote:
> 
> On Jun 22, 2019, at 13:03, F. Alfredo Rego  wrote:
>> 
>> I’m interested in finding “if” statements that contain the negation operator 
>> “!” (or potentially several negation operators) anywhere, regardless of 
>> blank lines, parentheses, indentation, and so on.
>> 
>> My motivation is to verify, one by one, the scope(s) of the negation(s).
>> 
>> For instance, considere this code snippet:
>> 
>> if ( ID ==   OK_ID )OK_ID_procedure (ID);
>>else if ( ID == fake_ID )  fake_ID_procedure (ID);
>>else if ( ID ==  old_ID )   old_ID_procedure (ID);
>>else if ( ID != lost_ID ) check_ID_procedure (ID);
>> 
>> 
>> I would like to select JUST THE LAST “if” statement, which is the only one 
>> that contains the negation operator, like so:
>> 
> 
> Based on your description above, I expect something like this should do the 
> job, or at least serve as a starting point for further experimentation :-):
> 
> Search for:(( |)if \(.+?!=.+?$)
> 
> 
>> The best I have done, so far, is this regex, with a space as its first 
>> character to ignore #ifdef and such: 
>> if(?s).+?\(.*?!.*?(;|\{)
> 
> Since (?s) enables . to match _across_ hard line breaks, you probably do not 
> want to use it here since that's why the above pattern is matching the whole 
> snippet.
> 
> 
> Regards,
> 
> Patrick Woolsey
> ==
> Bare Bones Software, Inc. <https://www.barebones.com/>
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
> --- 
> 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.
> Visit this group at https://groups.google.com/group/bbedit.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/F4F3F31D-1D95-4947-A536-DAB806BE2FB4%40barebones.com.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/2FA90AD6-0870-4499-9CD8-B43714CCB151%40gmail.com.


Asking the experts for a less greedy regex

2019-06-22 Thread F. Alfredo Rego
Hello Regex gurus,

I’m interested in finding “if” statements that contain the negation operator 
“!” (or potentially several negation operators) anywhere, regardless of blank 
lines, parentheses, indentation, and so on.

My motivation is to verify, one by one, the scope(s) of the negation(s).

For instance, considere this code snippet:

 if ( ID ==   OK_ID )OK_ID_procedure (ID);
else if ( ID == fake_ID )  fake_ID_procedure (ID);
else if ( ID ==  old_ID )   old_ID_procedure (ID);
else if ( ID != lost_ID ) check_ID_procedure (ID);


I would like to select JUST THE LAST “if” statement, which is the only one that 
contains the negation operator, like so:





The best I have done, so far, is this regex, with a space as its first 
character to ignore #ifdef and such: 
 if(?s).+?\(.*?!.*?(;|\{)

It works well but it produces too many “false positives” through which I need 
to wade. 

This regex selects everything from the first “if” in this snippet to the last 
semicolon:




No big deal, but I thought I would ask the experts for a less greedy regex. 

I tried several possible non-greedy options but they produced 
unexpected/undesirable secondary effects.

Thanks for any hints.

Alfredo

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, 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.
Visit this group at https://groups.google.com/group/bbedit.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/10B4C319-FAFF-4CEA-A582-5536E5CF016D%40gmail.com.


Re: Relative Alias Creator AppleScript ⇢ was ⇢ Any way to DESELECT/UNSELECT selected text?

2019-04-27 Thread F. Alfredo Rego
Very nicely done, Chris.

We share the same philosophy: If I find myself doing the same thing more than 
twice, I invest some quality time automating it.

I’m sure everyone in this group will appreciate your well-crafted script.

Thanks!

Alfredo

> On Apr 26, 2019, at 10:30 PM, Christopher Stone  
> wrote:
> 
>> So when I want to use a $HOME-based path in a publicly posted script I 
>> usually use the Tilde-format (~/your_path).
> 
> 
> Hey Alfredo,
> 
> I forgot to mention that I have a script to create relative-aliases for me.
> 
> Years ago I got tired of making them manually.
> 
> --
> Take Care,
> Chris
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, 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 
> .
> Visit this group at https://groups.google.com/group/bbedit 
> .
> 
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, 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 
> .
> Visit this group at https://groups.google.com/group/bbedit 
> .

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, 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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Any way to DESELECT/UNSELECT selected text ?

2019-04-26 Thread F. Alfredo Rego
Hey Chris,

Very nice description of your system.

Thanks to Rich’s example, I don’t even consider dealing with selection at all 
(for this particular project). So, I’m in good shape regarding the “de-need” 
(“un-need”?) for “virtual selection of nothing”. It’s good to know your 
technique (select insertion point before its text), so I appreciate learning 
about it.

With gratitude,

Alfredo

> On Apr 26, 2019, at 2:19 AM, Christopher Stone  
> wrote:
> 
> On 04/21/2019, at 10:11, F. Alfredo Rego  <mailto:f.alfredor...@gmail.com>> wrote:
>> I’m using AppleScript + BBEdit to “refresh” all the files in the “Release” 
>> directory with the contents of all the files in the “Prototype” directory. I 
>> do this “transfer of the file contents” (instead of simply copying and 
>> over-writing the files), to preserve the entire git history of each 
>> “Release” file.
>> 
>> I have explored everywhere I can, but I can’t find any way to 
>> DESELECT/UNSELECT selected text.
> 
> 
> Hey Alfredo,
> 
> This is not at all intuitive.  You can't de-select text directly, but you can 
> set the selection to nothing like so.
> 
> 
> tell application "BBEdit"
> tell front text window
> select insertion point before its text
> end tell
> end tell
> 
> 
> As Rich observed – you don't need to select the text to meet your objective.
> 
> I would write your script similarly to this:
> 
> 
> set filePath to "~/test_directory/BBEdit_Test_Dir_Level_01/textFile.txt"
> 
> tell application "System Events"
> set filePath to POSIX path of disk item filePath
> end tell
> 
> tell application "BBEdit"
> # activate -- No need IF BBEdit is already frontmost.
> set myDoc to open filePath with LF translation
> set dataStr to text of myDoc
> end tell
> 
> 
> Although I generally use what I call Relative-Aliases to reference files in 
> my $HOME directory:
> 
> set fileAlias to alias ((path to home folder as text) & 
> "test_directory:BBEdit_Test_Dir_Level_01:textFile.txt")
> 
> I don't often publish scripts publicly this way anymore, because most people 
> don't understand what a relative-alias is.
> 
> So when I want to use a $HOME-based path in a publicly posted script I 
> usually use the Tilde-format (~/your_path).
> 
> I have a handler for converting them to a full POSIX Path that's way faster 
> than System Events, but using SE is easy and ~ 0.02 seconds is fast enough 
> for most folks.
> 
> Relative paths (of either kind) are portable through changes in hard drive 
> names and user-folder names, whereas hard-coded paths are often broken by 
> those changes.
> 
> I learned this lesson long ago after buying a new Mac and changing my HD name 
> and having to edit hundreds of scripts to get them working again...
> 
> I don't generally like to place paths within application-tell blocks for too 
> many reasons to get in to here.
> 
> --
> Take Care,
> Chris
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <https://www.twitter.com/bbedit 
> <https://www.twitter.com/bbedit>>
> --- 
> 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 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To post to this group, send email to bbedit@googlegroups.com 
> <mailto:bbedit@googlegroups.com>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


Any way to DESELECT/UNSELECT selected text ?

2019-04-22 Thread F. Alfredo Rego
Hello everyone,

I’m using AppleScript + BBEdit to “refresh” all the files in the “Release” 
directory with the contents of all the files in the “Prototype” directory. I do 
this “transfer of the file contents” (instead of simply copying and 
over-writing the files), to preserve the entire git history of each “Release” 
file.

I have explored everywhere I can, but I can’t find any way to DESELECT/UNSELECT 
selected text.

I’m particularly interested in including a “deselect all” in a script like 
this, which leaves the entire contents of the “Prototype” file selected and 
highlighted after I have copied the “Prototype” file to the “Release” file.

Of course, I’ll also appreciate any comments regarding a BETTER way to do this.

Thank you,

Alfredo



tell application "BBEdit"
activate
open {file “Alfredo 
HD:Users:alfredo:Documents:Prototype:Adager_API:adager_api.c”} with LF 
translation
select text 1 of project window 1
copy selection
end tell

# . . . Other stuff (irrelevant for this topic) . . .

tell application "BBEdit"
activate
open {file "Alfredo 
HD:Users:alfredo:Documents:Release:Adager_API:adager_api.c"} with LF translation
select text 1 of project window 1
paste
close project window 1 saving yes
end tell

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, 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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Any way to DESELECT/UNSELECT selected text ?

2019-04-22 Thread F. Alfredo Rego
Thanks Rich.

I’ll immediately correct/improve my first (second?) AppleScript ever ;-)

As a favorite professor used to say: You have to know everything before you can 
do anything.

I appreciate the guidance.

Alfredo

> On Apr 22, 2019, at 7:23 AM, Rich Siegel  wrote:
> 
> On 4/21/19 at 11:11 AM, f.alfredor...@gmail.com (F. Alfredo Rego) wrote:
> 
>> I have explored everywhere I can, but I can’t find any way to
>> DESELECT/UNSELECT selected text.
> 
> There is no concept of "unselecting", because there is always a selection, 
> even if it's empty (an insertion point).
> 
>> I’m particularly interested in including a “deselect all” in a script
>> like this, which leaves the entire contents of the “Prototype” file
>> selected and highlighted after I have copied the “Prototype” file to
>> the “Release” file.
> 
> You can avoid the whole issue by not using the clipboard. :-) (In general, 
> you shouldn't use the clipboard to pass data around within a script.)
> 
> There are a couple of things that will help you write faster and more 
> reliable scripts:
> 
> - the "open" verb always returns a reference to the document that was opened;
> 
> - the contents of any text document are available as text. This is the "text" 
> property.
> 
> So, your first tell block will look something like this:
> 
>set openedDocument to (open file "...")
>set documentText to text of openedDocument
> 
> Then you can manipulate "documentText", and finally:
> 
>set documentToRewrite to (open file "...")
>set text of documentToRewrite to documentText
> 
> R.
> -- 
> Rich Siegel Bare Bones Software, Inc.
>   <http://www.barebones.com/>
> 
> Someday I'll look back on all this and laugh... until they sedate me.
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
> --- 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.
> Visit this group at https://groups.google.com/group/bbedit.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
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.
Visit this group at https://groups.google.com/group/bbedit.


FrameMaker: Still alive and well and powering the BBEdit User Manual

2019-08-13 Thread F. Alfredo Rego
This might be totally off-topic but, given that FrameMaker powers the BBEdit 
User Manual, I thought I would take a chance for a couple of quick questions, 
whose answers can certainly be offline.

As an early adopter of FrameMaker (and Quadralay’s WebWorks Publisher) before 
FrameMaker fell into Adobe’s hands and disappeared from the Mac (causing great 
sorrow worldwide), I was most pleasantly surprised today when I happened to 
notice this:





I can almost see the heel marks on the floor in BBEdit’s office as they were 
dragged into Windows to be able to continue using FrameMaker ;-)

I have tried several other “solutions” for publishing but, as far as I can 
tell, nothing comes even closer to the simplicity and power of FM to produce 
and publish complex documents.

Any other fellow BBEdit users out there in the world using FrameMaker under 
Windows?

I would appreciate learning about the pros and cons of using FrameMaker under 
Windows.

Is FM under Windows still a vibrant and wise choice for publishing?


Thanks.

Alfredo

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/FC1AF2DF-0374-4687-9A90-58565169D87B%40gmail.com.


Does anyone know of a Dart plugin for BBEdit?

2020-04-05 Thread F. Alfredo Rego
Greetings everyone,

Does anyone know of a Dart plugin for BBEdit?

> https://dart.dev/tools#ides-and-editors 
> 


Thanks.

Alfredo

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/B86B58E7-D551-4DAF-B815-6FA5C9F5D153%40gmail.com.


Re: [ANN] BBEdit 13.1 (414031) pre-release

2020-05-12 Thread F. Alfredo Rego
Thanks, Rich.


> On May 11, 2020, at 11:35 AM, Rich Siegel  wrote:
. . .
> *   The "Selected text only" option in the Find window is now
>disabled and turned off automatically if the target search window
>doesn't have a selection.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/9095528F-9AE2-4E6E-84B4-AFEAD5528102%40gmail.com.


Re: [ANN] BBEdit 13.2 (415025) pre-release

2020-09-21 Thread F. Alfredo Rego
Ohyes ;-)

Thanks very much.

Alfredo

> On Sep 21, 2020, at 1:01 PM, Rich Siegel  wrote:
. . .
> * [DOC] Have you ever had the experience where you make a new
>   document, put some text into, and then later on, when you're
>   closing it (either alone or as part of closing a bunch of
>   documents), you click the "Don't Save" button? And then, an
>   [ohnosecond](https://en.wiktionary.org/wiki/ohnosecond) later,
>   you realize you've made a terrible mistake?
> 
>   BBEdit has a new feature to protect your data: in the Text Files
>   preferences, there is an option: "Rescue untitled documents when
>   discarding changes". When this option is on (as it is by default),
>   and you close an untitled document (one that has never been saved to
>   disk), and click "Don't Save", BBEdit will save a snapshot of that
>   document's contents to disk. If you realize you need that text back,
>   it's there -- choose the "Rescued Documents" item on the Folders
>   submenu on the BBEdit application menu, and you'll get a Finder window
>   with all of the snapshots.
> 
>   BBEdit will also do some housekeeping for you, if you like. By
>   default it will clean up old data after a week, but you can adjust
>   the interval from 1 to 365 days; or disable the cleanup altogether.
>   (When cleaning up old items, BBEdit will move them into the Trash.)

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/5F419A48-8C36-4166-A906-198E2A1CFC43%40gmail.com.


Re: How to actually set an expert preference?

2020-06-15 Thread F. Alfredo Rego
# Cool-O.

Now, for the 64k: Is there a shortcut to see the current settings for ALL 
expert preferences?

Something along the lines of "defaults read com.barebones.bbedit all” ?

Thanks.

Alfredo

> On Jun 15, 2020, at 8:50 AM, Rich Siegel  wrote:
> 
> On 6/15/20 at 10:32 AM, b...@cruzio.com (Bruce Van Allen) wrote:
> 
>> 3. Some commands require root permissions, so on the Terminal you'd precede 
>> the pref command with 'sudo'
>> 
>> # Make finder show User's Library directory
>> sudo chflags nohidden ~/Library
>> 
>> But worksheets aren't interactive, so when you get prompted for your 
>> password, you can't enter it and continue.
> 
> Try it. :-) If `sudo` requires your password during a worksheet interaction, 
> BBEdit will prompt you.
> 
> R.
> -- 
> Rich Siegel Bare Bones Software, Inc.
>   
> 
> Someday I'll look back on all this and laugh... until they sedate me.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/98D3BB10-3EA0-45EB-ABF8-763721725BF0%40gmail.com.


Re: How to actually set an expert preference?

2020-06-15 Thread F. Alfredo Rego
Intriguing. From the man page:

BUGS
 Defaults can be structured in very complex ways, 
 making it difficult for the user to enter them with this command.

Gulp ;-)

Alfredo

> On Jun 15, 2020, at 4:35 PM, Patrick Woolsey  wrote:
> 
> On Jun 15, 2020, at 18:19, F. Alfredo Rego  wrote:
>> 
>> Now, for the 64k: Is there a shortcut to see the current settings for ALL 
>> expert preferences?
>> 
>> Something along the lines of "defaults read com.barebones.bbedit all” ?
>> 
> 
> There is no specific shortcut to display only the documented expert prefs.
> 
> One can however read _all_ of BBEdit's prefs via the 'defaults' command, 
> though I strongly encourage anyone who does so to exercise due caution -- if 
> you jump head first into the quicksand, we can always get you back out but 
> you may not enjoy the experience! ;-)
> 
> 
> Regards,
> 
> Patrick Woolsey
> ==
> Bare Bones Software, Inc. <https://www.barebones.com/>
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> <https://twitter.com/bbedit>
> --- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/C558E049-2E0E-46FE-8338-9170ACE1EED7%40barebones.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/261EDA27-9B89-4E9D-8FE3-3C10CDB0FEEB%40gmail.com.


Re: Deleting a file via AppleScript

2021-03-22 Thread F. Alfredo Rego
I’m impressed by all the different approaches and perspectives.

I hope other people have experienced a similar widening and deepening of 
knowledge regarding the nuances of this topic.

Thanks to everyone!

Alfredo

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/35841C91-8770-4146-A160-2C8265CACB01%40gmail.com.


Deleting a file via AppleScript

2021-03-18 Thread F. Alfredo Rego
Hi everyone,

I would like to delete a file via AppleScript. 

I’m sure the solution is trivially simple, but so far I can’t find a way.

The easy way would be to do something like this, which sadly does exactly what 
it says and it doesn’t delete the file:

   set theFile to (open file "whatever")
   close theFile saving no

I looked around in BBEdit’s dictionary for something naively obvious (perhaps 
"close theFile deleting yes”) but no such luck.


I would be thankful for any guidance.


Alfredo



-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CA8C47EB-6EBC-4D90-891E-8B7746FCDB23%40gmail.com.


Re: Deleting a file via AppleScript

2021-03-22 Thread F. Alfredo Rego
Hi “MediaMouth” (sorry about my not knowing your name),

This is perfect.

This makes my Rube-Goldberg approach immediately obsolete.

Your approach cuts away all the unnecessary fat and produces a lean structure.

I’m quickly learning that there’s a command-line app for “that” (whatever 
“that” may be). The trick (at least for me) is finding out which one applies to 
what.

Thank you so much for the excellent description.

Alfredo

> On Mar 21, 2021, at 1:33 AM, MediaMouth  wrote:
> 
> Hi Alfredo,
> 
> I wonder if a solution here is rsync.
> This is a command line app that can easily be run from AppleScript.  It 
> 'syncs' two directories, a source to a dest (in your case alpha 
> (pre-production) to beta (production))
> 
> rsync -avu '/path/to/alpha/directory' '/path/to/beta/directory'
> 
> This will update all modified files and add new files from  from alpha to 
> beta.  It will not delete items from beta when items are deleted from alpha.  
> To achieve that...
> 
> rsync -avu --delete '/path/to/alpha/directory' '/path/to/beta/directory'
> 
> The added --delete option only affects beta, not alpha
> 
> Explainer for -avu options
> a: 'archive mode' makes sure things like creation date and mod dates are 
> passed from alpha to beta
> v: 'verbose' show a lot of feedback
> u: skip files in beta that are newer than those in alpha. (ie saves time)
> 
> Ordinarily you do all that in Terminal, which you can call from BBedit.
> But you can also run it from AppleScript:
> 
> do shell script "rsync -avu '/path/to/alpha/directory' 
> '/path/to/beta/directory'"
> 
> Your workflow may have other nuances not captured above, but based on your 
> notes, you might be able to replace an elaborate sequence of Automator and 
> AppleScript with a single line of code easily run from within BBedit

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/67D08C02-D20D-45F8-90DC-2E4A3B617D69%40gmail.com.


Re: Deleting a file via AppleScript

2021-03-19 Thread F. Alfredo Rego
Rich,

What I’m really trying to do is to create a simple AppleScript (which I can 
invoke via BBEdit) to delete a file.

In the past, for other purposes, I have specified “theFile” via one of these 
two AppleScript options:

(1)
   set theFile to (open file “whatever.txt")

(2)
   set filePath to "/Users/alfredo/whatever.txt"
   set theFile to POSIX file filePath


There may be other options to specify “theFile”, but I don’t know and I would 
certainly like to learn about them.


I wish I knew how to do the equivalent of your "Close & Delete”, using some 
sort of AppleScript syntax:

   "Close & Delete" theFile


I suspect that this can be a super-short AppleScript, but unfortunately I have 
no idea about the syntax.


Thanks.

Alfredo


> On Mar 19, 2021, at 8:43 AM, Rich Siegel  wrote:
> 
> On 19 Mar 2021, at 1:39, F. Alfredo Rego wrote:
> 
>> Hi everyone,
>> 
>> I would like to delete a file via AppleScript.
>> 
>> I’m sure the solution is trivially simple, but so far I can’t find a way.
>> 
>> The easy way would be to do something like this, which sadly does exactly 
>> what it says and it doesn’t delete the file:
>> 
>>   set theFile to (open file "whatever")
>>   close theFile saving no
>> 
>> I looked around in BBEdit’s dictionary for something naively obvious 
>> (perhaps "close theFile deleting yes”) but no such luck.
> 
> WAYRTTD? The "Close & Delete" command on the File menu will close a text 
> document and move its backing file to the trash.
> 
> R.
> 
> -- 
> Rich Siegel Bare Bones Software, Inc.
>   <https://www.barebones.com/>
> 
> Someday I'll look back on all this and laugh... until they sedate me.
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> <https://twitter.com/bbedit>
> --- 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/07E76664-1A07-4F8F-8775-DE3FD000D65E%40barebones.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/BB97021D-ABC9-4FA3-9FE3-0E532E8451AB%40gmail.com.


Re: Deleting a file via AppleScript

2021-03-19 Thread F. Alfredo Rego
Hi all,

Thanks for all the help from different perspectives and styles.

In the end, MediaMouth's was the simplest, as a one-liner that abstracted 
Jean’s multi-liner:

> On Mar 19, 2021, at 3:44 PM, MediaMouth  wrote:
> 
> tell application "Finder" to delete POSIX file 
> "/Volumes/ExternalVolume/Path/To/File"
> a

Thanks to everyone.

Alfredo



P.S.

Footnote to answer Chris:

My workflow involves copying an updated library from a pre-production (alpha) 
directory to a production (beta) directory whenever the alpha software passes 
some tests, which are part of an AppleScript that I run by means of a 
convenient BBEdit shortcut.

My desired workflow is a work-around for an obvious Automator failing in "Copy 
Finder Items.

"Copy Finder Items” watches a folder and, whenever a file is ADDED to the 
folder (see the red rectangle that I used to highlight this spec), it copies 
the file to a destination folder (with the option to replace existing items).




Unfortunately, "Copy Finder Items” does NOTHING whenever a file is MODIFIED 
(which is what happens every time that the library gets rebuilt during the 
compile-link workflow).

So, I need (thanks, Automator ;-) to delete the library BEFORE running the 
compile-link process, to guarantee that Automator will detect the “ADDITION" of 
the brand-new library.

An obvious pain.

There are a ton of questions online about the (self-evident) desire to enhance 
Automator with a Folder action that watches a folder for UPDATED items.

Yes: This entire workflow can be done via a makefile, but other environmental 
constraints motivate using BBEdit instead.

I learned a lot in the process and I really appreciate that.


-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/316CBEC6-01D7-4B13-A89B-C1A95DBBD555%40gmail.com.


Re: AppleScript: Use Numbers.app to create PDF files from a BBEdit TSV file

2023-06-02 Thread F. Alfredo Rego
Thanks for the advice, Johnny.

I'll pursue this direction.

Alfredo

> On Jun 1, 2023, at 11:36, Johnny Ragadoo  wrote:
> 
> Unless you have a specific need for your output to be in Numbers, try the 
> mail merge feature in Pages.
> 
> I think you can use your tsv file directly in Pages. If not, Numbers will 
> open tsv files as if they were spreadsheet files.
> 
> On Monday, May 29, 2023 at 8:43:41 PM UTC-5 Alfredo wrote:
>> Greetings, AppleScript Gurus:
>> 
>> I would like to producea a batch of PDF files, each customized for a given 
>> addressee.
>> 
>> I can create a TSV file with BBEdit that contains one customized line per 
>> addresee.
>> 
>> I would assume I can use an AppleScript to feed each line of this TSV file 
>> to a template in Numbers.app to produce the batch of PDF documents.
>> 
>> I have no idea about creating such an AppleScript and I'm eager to learn.
>> 
>> Thanks very much for any guidance.
>> 
>> Alfredo
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/a59a3daf-c9b0-40a5-883c-951b0966f3a4n%40googlegroups.com
>  
> .

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/487FA88A-9D08-4E09-B48D-016EC814E5D9%40gmail.com.


Re: Problem With Zapping Gremlins Settings

2024-01-17 Thread F. Alfredo Rego
This is truly wonderful. There are so many ways to skin a cat's character(s).

> On Jan 17, 2024, at 15:12, Rich Siegel  wrote:
> 
> On 17 Jan 2024, at 16:49, Bill Kochman wrote:
> 
>> However, when I use the Zap Gremlins function, it is ALSO removing all of 
>> the apostrophes from the copied text, which obviously results in words being 
>> misspelled. This is particularly true of words which are either contractions 
>> or possessive.
> 
> If the apostrophes are non-ASCII characters ("curly"), then turning off 
> "Non-ASCII Characters" will preserve them (along with any other characters 
> not in the ASCII range).
> 
> Alternatively you could use "Replace with code" and leave "Use ASCII 
> equivalent" turned on.
> 
> R.
> 
> 
> -- 
> Rich Siegel Bare Bones Software, Inc.
>   

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/C7D3F2A7-2F08-4D93-8F01-36D0E68B7008%40gmail.com.