Re: Search/Replace with GREP wildcards

2016-05-18 Thread Christopher Stone
On May 18, 2016, at 15:20, Steve Piercy  wrote:
> Another option is the BBEdit reference "Searching with Grep", which I 
> bookmarked and view in a web browser because the Apple Help viewer has a 
> terrible UI.
__

Hey Steve,

Good idea, although not everyone will place BBEdit in the /Applications folder.

Here's how to script it and let the OSX find the app for you.

--
Best Regards,
Chris

---
# Auth: Christopher Stone
# dCre: 2016/05/18 17:08
# dMod: 2016/05/18 17:13 
# Appl: BBEdit & Safari
# Task: Open BBEdit's “Searching with Grep” Chapter in Safari
# Tags: @Applescript, @Script, @, BBEdit, @Safari, @Open, @Help
---

set grepHelp to "/Contents/Resources/BBEdit%20Help/index_grep.htm"
set shCMD to "mdfind -onlyin /Applications/ 'kMDItemCFBundleIdentifier == 
\"com.barebones.bbedit\"'"
set bbeditApp to do shell script shCMD
set grepHelpPath to "file://" & bbeditApp & grepHelp

tell application "Safari"
  activate
  make new document with properties {URL:grepHelpPath}
  # My preferred window location and size – change to suit.
  set bounds of front window to {228, 23, 1542, 1196}
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: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Search/Replace with GREP wildcards

2016-05-18 Thread Luis Speciale

Le 18/05/2016 à 22:20, Steve Piercy a écrit :

On 5/18/16 at 3:11 PM, listmeis...@suddenlink.net (Christopher Stone)
pronounced:


On May 18, 2016, at 13:08, 1611mac <1611...@gmail.com> wrote:

Awesome!  I learned a lot just from that one simple little blurb!

__



BBEdit-TextWrangler_RegEx_Cheat_Sheet:

https://gist.github.com/ccstone/5385334


Another option is the BBEdit reference "Searching with Grep", which I
bookmarked and view in a web browser because the Apple Help viewer has a
terrible UI.
file:///Applications/BBEdit.app/Contents/Resources/BBEdit%20Help/index_grep.htm


I also use this tool a lot.  The live preview is quick, and the
community around it shares common regexes.
https://regex101.com/


And there's also

https://github.com/aurbano/regex101-osx

https://github.com/ibaaj/Regex101.com-offline-app

and some discussion here

https://github.com/firasdib/Regex101/issues/76

--
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

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

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Search/Replace with GREP wildcards

2016-05-18 Thread Steve Piercy
On 5/18/16 at 3:11 PM, listmeis...@suddenlink.net (Christopher 
Stone) pronounced:



On May 18, 2016, at 13:08, 1611mac <1611...@gmail.com> wrote:

Awesome!  I learned a lot just from that one simple little blurb!

__



BBEdit-TextWrangler_RegEx_Cheat_Sheet:

https://gist.github.com/ccstone/5385334


Another option is the BBEdit reference "Searching with Grep", 
which I bookmarked and view in a web browser because the Apple 
Help viewer has a terrible UI.

file:///Applications/BBEdit.app/Contents/Resources/BBEdit%20Help/index_grep.htm

I also use this tool a lot.  The live preview is quick, and the 
community around it shares common regexes.

https://regex101.com/

--steve


Steve Piercy, Soquel, CA

--
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

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

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Search/Replace with GREP wildcards

2016-05-18 Thread 1611mac
Awesome!  I learned a lot just from that one simple little blurb!  Thank 
you very much!  Perfect!  Over 4k lines changed in a couple seconds!

On Wednesday, May 18, 2016 at 1:37:54 PM UTC-4, Sam H. wrote:
>
> Hi, 
>
> Find: ="#(.*)" 
> Replace: ="#\U\1\E" 
>
> Hope this helps. 
> -sam 
>
> On 18 May 2016, at 1:27 PM EDT, 1611mac wrote: 
>
> > Is it possible to "Replace" wildcard strings? 
> > 
> > For example, given this "FIND" string entered in Find and Replace:   
> > ="#.*" 
> > 
> > How would I "REPLACE" the wildcard text found with the same text set 
> > in all 
> > caps? 
> > 
> > 
> > Example: 
> > ="#foo"  becomes ="#FOO" 
> > 
> > 
> > 
> > 
> > -- 
> > This is the BBEdit Talk public discussion group. If you have a 
> > feature request or would like to report a problem, please email 
> > "sup...@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+un...@googlegroups.com . 
> > To post to this group, send email to bbe...@googlegroups.com 
> . 
>

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

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Search/Replace with GREP wildcards

2016-05-18 Thread 1611mac
Is it possible to "Replace" wildcard strings?

For example, given this "FIND" string entered in Find and Replace:  ="#.*"  

How would I "REPLACE" the wildcard text found with the same text set in all 
caps?


Example:
="#foo"  becomes ="#FOO"




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

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: SASS Compiler?

2016-05-18 Thread Patrick Woolsey
If you've already installed any command-line package which is 
capable of compiling SASS to CSS, it should be fairly easy to 
attach a script to BBEdit's 'documentDidSave' event to 
automatically generate a corresponding ".css" file.


[For anyone who's inclined to try this, please do :) and you're 
welcome to ping support if you have any questions about using 
the attachment script.]



Regards,

 Patrick Woolsey
==
Bare Bones Software, Inc. 



On 5/17/16 at 12:56 PM, kevin.bold...@gmail.com (Kevin Bolduan) wrote:

Does anyone know of a plug-in or similar for BBEdit that will 
automatically compiles SASS into CSS? I'm aware of third-party 
applications like CodeKit and could probably figure out 
something Terminal-based on a watched folder, but am looking 
for something directly within BBEdit that allowed me to have a 
.scss file open in BBEdit and then when I save, it 
automatically creates and saves the compiled CSS as well. I've 
seen that Coda has something for this 
(http://elbongurk.com/2013/11/how-to-use-sass-in-coda/), but 
after 20 years of BBEdit, I'm not ready to switch...


thanks,
-Kevin



--
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

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

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: SASS Compiler?

2016-05-18 Thread Vlad Ghitulescu
+1 for CodeKit. 

BBEdit + CodeKit + Tower = Dream Team :-)

Von meinem iPhone gesendet

> Am 18.05.2016 um 15:45 schrieb Greg Raven :
> 
> No, but for what it's worth, CodeKit is pretty wonderful, IMHO.
> 
>> On Tuesday, May 17, 2016 at 10:01:50 AM UTC-7, Kevin Bolduan wrote:
>> Does anyone know of a plug-in or similar for BBEdit that will automatically 
>> compiles SASS into CSS? I'm aware of third-party applications like CodeKit 
>> and could probably figure out something Terminal-based on a watched folder, 
>> but am looking for something directly within BBEdit that allowed me to have 
>> a .scss file open in BBEdit and then when I save, it automatically creates 
>> and saves the compiled CSS as well. I've seen that Coda has something for 
>> this (http://elbongurk.com/2013/11/how-to-use-sass-in-coda/), but after 20 
>> years of BBEdit, I'm not ready to switch...
>> 
>> thanks,
>> -Kevin
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To post to this group, send email to bbedit@googlegroups.com.

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

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


[ANN] BBEdit 11.6 (3921) pre-release

2016-05-18 Thread Rich Siegel

Good afternoon folks,

We're working on an update to BBEdit 11 which will add some new 
features and address a few recently reported issues.


Note that this is a _pre-release_ version. The intent is to fix 
bugs and address areas of improvement based on what our 
customers have reported. However, since the software is at this 
point not fully tested, there _may_ be bugs and regressions. If 
this prospect makes you nervous, then sticking with the public 
release versions is your best course of action. Nobody will be 
offended if you choose to do so; you're under no obligation to 
install and use anything but a public release. :-)


Following is a summary of changes since the most recent 
pre-release (whose own notes are here: ).


The change notes are organized into additions, changes, and 
fixes, and are annotated where appropriate with case numbers. So 
if you recognize a number corresponding to a support case that 
was opened for you, you can now verify that it's been fixed 
correctly. Please take the time to review the changes before 
using the new build -- it'll be worth your time.


One final note: If you run into a bug in a pre-release version, 
PLEASE DO NOT REPORT THE BUG TO THE LIST. This includes asking 
about whether others have seen the same problem. Instead, please 
send a bug report to  and we will deal 
with it there. This will help us keep the list discussion on 
topic and productive for all list members.




version 11.6 (3921) (2016-05-17)

Additions
-

*   [DOC] "Find Differences" gets two new options in the dialog box:
"Ignore blank lines" and an "All" option in the "Ignore spaces"
group. These operate as you might imagine: "Ignore blank lines"
skips differences that consist entirely of blank lines, and
turning on "All" causes all whitespace to be ignored during
comparison.

Changes
---

o   (none in this build)

Fixes
-

*   [NFR] [322366] Fixed regression in which the Open File by Name
window's results didn't update when making a selection and
choosing "Open Selection".

*   [321110] When generating markup from the Markup Builder panel,
attribute values now have leading and trailing whitespace and
line breaks trimmed before insertion.

*   [318446] Fixed bug in which Option-clicking to move the
insertion point would frequently leave behind a stale line
highlight.

==end==

The package can be downloaded from our web server:



Regards,

Rich Siegel
==
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.


Re: SASS Compiler?

2016-05-18 Thread Greg Raven
No, but for what it's worth, CodeKit is pretty wonderful, IMHO.

On Tuesday, May 17, 2016 at 10:01:50 AM UTC-7, Kevin Bolduan wrote:
>
> Does anyone know of a plug-in or similar for BBEdit that will 
> automatically compiles SASS into CSS? I'm aware of third-party applications 
> like CodeKit and could probably figure out something Terminal-based on a 
> watched folder, but am looking for something directly within BBEdit that 
> allowed me to have a .scss file open in BBEdit and then when I save, it 
> automatically creates and saves the compiled CSS as well. I've seen that 
> Coda has something for this (
> http://elbongurk.com/2013/11/how-to-use-sass-in-coda/), but after 20 
> years of BBEdit, I'm not ready to switch...
>
> thanks,
> -Kevin
>

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