Re: Copy markdown as HTML

2022-11-08 Thread Rick Gordon
I suspect that the information on this page, referring to the 
python3-markdown utility, could be used, along with BBEdit's ability to 
run terminal commands and/or text filters.


http://tuxdiary.com/2016/06/30/markdown-to-html-terminal

Rick Gordon



On November 7, 2022 at 1:15:10 PM [-0800], Frank Eves wrote in an email 
entitled "Copy markdown as HTML":
Markdown focused applications like iA Writer, Marked2 and Ulysses have 
an Edit Menu item 'Copy as HTML'. I find it handy when creating 
WordPress content. Unfortunately, for my purposes, BBEdit's Edit 
menu's 'Copy as Styled HTML' outputs more complex text. Can someone 
suggest an easy way to copy markdown as basic HTML in 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: <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 
<mailto:bbedit+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/186955c6-fd95-4e9e-8703-028543b9f1d5n%40googlegroups.com 
<https://groups.google.com/d/msgid/bbedit/186955c6-fd95-4e9e-8703-028543b9f1d5n%40googlegroups.com?utm_medium=email&utm_source=footer>.


___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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/63697612.4010707%40rickgordon.com.


BBEdit or BBEdit-Like Editor Running Directly in Terminal

2023-04-03 Thread Rick Gordon
Is there any way to get a subset of BBEdit-like functionality in a 
Terminal editor?


I often use BBEdit as a means of editing in the Terminal on my own 
computer, but that doesn't work so easily with another computer that I 
access via ssh, where I can't really exit the Terminal to edit. though I 
could install a tool that I could run in the Terminal.


I see that there are a number of mouse-aware Terminal editors that are 
available, and am just looking at ci-edit 
<https://github.com/google/ci_edit>, though it seems sluggish.


I'd appreciate any suggestions here. Thanks.

_______
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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/642B4195.9010704%40rickgordon.com.


Re: BBEdit or BBEdit-Like Editor Running Directly in Terminal

2023-04-03 Thread Rick Gordon
I am aware that I can open a document in my local BBEdit via Open from 
FTP/SFTP Server… I'm just looking for a more direct in-Terminal option.


------

Rick Gordon wrote:
Is there any way to get a subset of BBEdit-like functionality in a 
Terminal editor?


I often use BBEdit as a means of editing in the Terminal on my own 
computer, but that doesn't work so easily with another computer that I 
access via ssh, where I can't really exit the Terminal to edit. though 
I could install a tool that I could run in the Terminal.


I see that there are a number of mouse-aware Terminal editors that are 
available, and am just looking at ci-edit 
<https://github.com/google/ci_edit>, though it seems sluggish.


I'd appreciate any suggestions here. Thanks.

_______
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.com



_______
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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/642B4266.4060706%40rickgordon.com.


Re: BBEdit or BBEdit-Like Editor Running Directly in Terminal

2023-04-03 Thread Rick Gordon
Thanks, Gregory, but what's the advantage of that (except for a mounted 
filesystem) vs using BBEdit opening via FTS/SFTP Server (which is what I 
already do)? Does it give me a BBEdit-like Terminal editor?


Rick Gordon



'Gregory Shenaut' via BBEdit Talk wrote:

You could consider using sshfs.

Greg Shenaut

Sent from my iPhone


On Apr 3, 2023, at 14:21, Rick Gordon  wrote:

Is there any way to get a subset of BBEdit-like functionality in a Terminal 
editor?

I often use BBEdit as a means of editing in the Terminal on my own computer, 
but that doesn't work so easily with another computer that I access via ssh, 
where I can't really exit the Terminal to edit. though I could install a tool 
that I could run in the Terminal.

I see that there are a number of mouse-aware Terminal editors that are available, and 
am just looking at ci-edit<https://github.com/google/ci_edit>, though it seems 
sluggish.

I'd appreciate any suggestions here. Thanks.

___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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/642B4195.9010704%40rickgordon.com.




___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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/642B7544.6000202%40rickgordon.com.


Re: BBEdit or BBEdit-Like Editor Running Directly in Terminal

2023-04-03 Thread Rick Gordon

Thanks, Steve and Chris for your recommendations. I will try both.

Rick Gordon



Steve deRosier wrote:

Hi Rick,

I spend most of my time editing files that are on Linux boxes where 
I've got ssh access only.  I add this to my .bashrc:


export REMOTEHOST=`echo $SSH_CLIENT | cut -d ' ' -f 1`

export HOSTIP=`echo $SSH_CONNECTION | cut -d ' ' -f 3`


function bbedit {


# bbedit won't open a remote file via sftp if it doesn't exist. So, if 
it's a new file


# create it, call bbedit to open, and then kill it.

FCREATED=0

if [ ! -e "$PWD/$1" ]

then

touch "$PWD/$1"

FCREATED=1

fi

ssh derosier@$REMOTEHOST /usr/local/bin/bbedit -c -u --front-window 
"sftp://$USER@$HOSTIP/$PWD/$1";


# The above call will background and return immediately. The file will 
open in bbedit


# but since we've created it, and we don't want to leave it around, we 
kill it right away.


# If the user saves it, it gets recreated and content is saved. If 
not, there's no file,


# so we're cool too. It's a bit odd, but it works.

if [ "$FCREATED" -eq "1" ]

then

rm "$PWD/$1"

fi

}


Then editing a file is as simple as `bbedit somefile.txt` It calls 
back to my Mac and has bbedit open the file via sftp.  Edit, hit cmd-s 
and close the file/window as desired. Easy. Obviously you need ssh 
server enabled and your keys setup to avoid password prompts, but you 
can figure all that out.


Anyway, maybe that helps for you!

- Steve



On Mon, Apr 3, 2023 at 4:34 PM 'Gregory Shenaut' via BBEdit Talk 
mailto:bbedit@googlegroups.com>> wrote:


You could consider using sshfs.

Greg Shenaut

Sent from my iPhone

> On Apr 3, 2023, at 14:21, Rick Gordon mailto:li...@rickgordon.com>> wrote:
>
> Is there any way to get a subset of BBEdit-like functionality in
a Terminal editor?
>
> I often use BBEdit as a means of editing in the Terminal on my
own computer, but that doesn't work so easily with another
computer that I access via ssh, where I can't really exit the
Terminal to edit. though I could install a tool that I could run
in the Terminal.
>
> I see that there are a number of mouse-aware Terminal editors
that are available, and am just looking at ci-edit
<https://github.com/google/ci_edit>, though it seems sluggish.
>
> I'd appreciate any suggestions here. Thanks.
>
> ___
> RICK GORDON
> EMERALD VALLEY GRAPHICS AND CONSULTING
> ___
> WWW: http://www.shelterpub.com
>
> --
> 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 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
<mailto:bbedit%2bunsubscr...@googlegroups.com>.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/642B4195.9010704%40rickgordon.com.

-- 
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 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
<mailto:bbedit%2bunsubscr...@googlegroups.com>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/bbedit/87C1D38D-8CAA-4EEA-8FF4-CF9E7CFF0D5E%40me.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 
<mailto:bbedit+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CALLGbR%2BUtEN%3Da6POaYcuRMSf_49TEoEi%3Dyn5mL1JYWDSfYW64A%40mail.gmail.com 
<https://groups.go

Re: Find and Replace items which do NOT contain a simple pattern...

2023-05-14 Thread Rick Gordon
Some discussion here 
<https://ruby-talk.ruby-lang.narkive.com/dKpNQUAf/inverting-a-regular-expression> 
or googling <https://www.google.com/search?q=regex+invert>. But it 
involves some coding outside BBEdit.


Rick Gordon

---
On May 14, 2023 at 6:37:10 PM [-0700], 'Andy Nickless' Via Bbedit Talk 
wrote in an email entitled "Find and Replace items which do NOT contain 
a simple pattern...":
Something that I've been unable to find out is how to skip searching 
something which already contains a simple pattern:
For instance, to find a number consisting 1-3 digits I use (\d{1,3}) - 
but how can I AVOID a number of up to 3 digits?

Thanks in advance -
Andy
--
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 
<mailto:bbedit+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/4455d2a7-6efe-4183-903e-ea1baa8e091dn%40googlegroups.com 
<https://groups.google.com/d/msgid/bbedit/4455d2a7-6efe-4183-903e-ea1baa8e091dn%40googlegroups.com?utm_medium=email&utm_source=footer>.


___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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/64618D52.5020503%40rickgordon.com.


Re: Replacing all spaces in a line, but not the first

2023-06-07 Thread Rick Gordon

Try this:

===
FIND:
(?:^2 PLAC(?: \d+) \K(\w+)(\h\w+)(\h\w+)(?=\h\w+$))|(?:^2 PLAC(?: \d+) 
\K(\w+)(\h\w+)(\h\w+)(\h\w+)(?=\h\w+$))


CHANGE TO: \1,\2,\3,\4
===

That should ignore the first number and handle groups of either 3 or 4 
words afterwards. It could be further modified if longer groups are 
possible.


It doesn't handle street names in the most intelligent way, as it will 
put a comma after the street name. And if any words had punctuation in 
them (like "St.", or a hyphen), that would require further modification.


Rick Gordon

--

On June 7, 2023 at 1:18:08 PM [-0700], Dave Simpson wrote in an email 
entitled "Re: Replacing all spaces in a line, but not the first":

Hi Kaveh

I'm not sure that that would solve it.

It first needs to find the lines beginning with "2 PLAC " and act only 
on those lines.
Replacing "2 PLAC " with something else would give the same issue, it 
would have to find only those lines beginning with our substitute label.


Many thanks for your help.
Think I'll put it on the back burner for now.

Regards
Dave
On Wednesday, June 7, 2023 at 8:52:23 AM UTC+1 Kaveh Bazargan wrote:

Ah, I thought all lines had that.

Then you could replace "2 PLAC " (with space) with a unique
string, e.g. ●, and at the end replace ● by "2 PLAC "

Not sure that would solve it.

On Tue, 6 Jun 2023 at 19:02, Dave Simpson  wrote:

Hi Kaveh
Sorry about the delay in replying, had to go out.
I’m a bit confused as to how the 2 PLAC can be put back to
correct line

Not every line in the file begins with 2 PLAC

Dave

On Tuesday, June 6, 2023 at 4:29:21 PM UTC+1 Kaveh Bazargan wrote:

BTW to replace

2 PLAC

at start of lines when replacements have been done, replace:

"^" -- start of line
with

"2 PLAC "

On Tue, 6 Jun 2023 at 15:28, Kaveh Bazargan
 wrote:

Simplest might be first to remove all "2 PLAC "

Then replace
"(? wrote:

Hi Kaveh

No problem, 3 examples of before and after

2 PLAC 129 Haymarket London England
2 PLAC 129 Haymarket, London, England /[Ideal
answer because space between '129' and 'Haymarket'
is skipped, but not essential]/

2 PLAC 24 Long Street Chester Cheshire
2 PLAC 24, Long, Street, Chester, Cheshire

2 PLAC Meadows, Lowestoft, England
2 PLAC Meadows Lowestoft England

Thanks
On Tuesday, June 6, 2023 at 2:48:07 PM UTC+1 Kaveh
Bazargan wrote:

Hi Dave

Could you give several examples of before,
then the same ones after?

Regards
Kaveh

On Tue, 6 Jun 2023 at 14:45, Dave Simpson
 wrote:

Hi, I'm a novice at this sort of thing.

I have a line of text:-
/2 PLAC 11 Haymarket Willenhall Staffordshire/

I want to replace the spaces with ,
 [comma space] after the first part of the
line [2 PLAC ]

^(2 PLAC ) finds me the start
Now I want to replace the spaces with
 comma space:-

/2 PLAC 11, Haymarket, Willenhall,
Staffordshire/
[It would be brilliant if it were possible
to skip the first space between 11 and
Haymarket]
/
/
Many thanks for your help

-- 
This is the BBEdit Talk public discussion

group. If you have a feature request or
need technical support, please email
"sup...@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
 

Re: Replacing all spaces in a line, but not the first

2023-06-07 Thread Rick Gordon

It can be adapted for 2-10 words; it's just along expression.

As you can see, what I provided…

===
FIND:
(?:^2 PLAC(?: \d+) \K(\w+)(\h\w+)(\h\w+)(?=\h\w+$))|(?:^2 PLAC(?: \d+)
\K(\w+)(\h\w+)(\h\w+)(\h\w+)(?=\h\w+$))

CHANGE TO: \1,\2,\3,\4
===

…has one instance of *(\w+)* followed by 2 instances of *(\h\w+)* 
followed by *(?=\h\w+$))* in the segment before the first vertical bar, 
while the segment after the first vertical bar is the same, but contains 
3 instances of *(\h\w+)*.


So what needs to be done is to add more segments, each separated by a 
vertical bar except for the last one (since the vertical bar means "OR").


To clarify, the *(?:^2 PLAC(?: \d+) \K* processes and ignores the the 
start of the line…


*2 PLAC*, followed by an optional set of digits preceded by a space, 
followed by a space.


So it's just a question of stacking more instances, one with only one 
*(\h\w+)*, for the shortest possibility, and the rest with yet an 
additional instance of *(\h\w+)* , separating each with a vertical bar.


Rick Gordon



On June 7, 2023 at 9:37:27 PM [-0700], Dave Simpson wrote in an email 
entitled "Re: Replacing all spaces in a line, but not the first":

Hi Rick

Many thanks for that, it works a treat (within limits)!

When I say that, it works fine for lines where the address is 4 
elements long.


e.g. /2 PLAC 49 Spinney Close Northfield Birmingham/
converts to /2 PLAC 49 Spinney, Close, Northfield, Birmingham/
/
/
However if there are fewer or more elements it ignores the line.
A PLAC entry can be in the range 1 to 10 elements

e.g. / 2 PLAC 46 Norton Crescent Alum Rock Birmingham /has 5 elements 
and is ignored

as is /2 PLAC Kalamzoo Birmingham /which is 3 elements
/
/
I'm beginning to think that I'm asking too much, as a PLAC entry can 
be in the range 1 to 10 elements


_Having just written that, a solution came to mind:_
If I change the Replace statement to/ \1,\2,\3,\4,\5,\6,\7,\8,\9,\10 
/that will put superfluous commas in place

e.g. /2 PLAC 33 Barker, Street, Shrewsbury,,, Shropshire/
However, it is a simple matter to remove the extra commas.

I can fix the things like Street, Road etc afterwards, it was the 
initial adding of the commas that was giving me a problem.


Very many thanks for your efforts

Dave

On Wednesday, June 7, 2023 at 9:24:02 PM UTC+1 Rick Gordon wrote:

Try this:

===
FIND:
(?:^2 PLAC(?: \d+) \K(\w+)(\h\w+)(\h\w+)(?=\h\w+$))|(?:^2 PLAC(?:
\d+)
\K(\w+)(\h\w+)(\h\w+)(\h\w+)(?=\h\w+$))

CHANGE TO: \1,\2,\3,\4
===

That should ignore the first number and handle groups of either 3
or 4
words afterwards. It could be further modified if longer groups are
possible.

It doesn't handle street names in the most intelligent way, as it
will
put a comma after the street name. And if any words had
punctuation in
them (like "St.", or a hyphen), that would require further
modification.

Rick Gordon

--

On June 7, 2023 at 1:18:08 PM [-0700], Dave Simpson wrote in an email
entitled "Re: Replacing all spaces in a line, but not the first":
> Hi Kaveh
>
> I'm not sure that that would solve it.
>
> It first needs to find the lines beginning with "2 PLAC " and act
only
> on those lines.
> Replacing "2 PLAC " with something else would give the same
issue, it
> would have to find only those lines beginning with our substitute
label.
>
> Many thanks for your help.
> Think I'll put it on the back burner for now.
>
> Regards
> Dave
> On Wednesday, June 7, 2023 at 8:52:23 AM UTC+1 Kaveh Bazargan wrote:
>
> Ah, I thought all lines had that.
>
> Then you could replace "2 PLAC " (with space) with a unique
> string, e.g. ●, and at the end replace ● by "2 PLAC "
>
> Not sure that would solve it.
>
> On Tue, 6 Jun 2023 at 19:02, Dave Simpson  wrote:
>
> Hi Kaveh
> Sorry about the delay in replying, had to go out.
> I’m a bit confused as to how the 2 PLAC can be put back to
> correct line
>
> Not every line in the file begins with 2 PLAC
>
> Dave
>
> On Tuesday, June 6, 2023 at 4:29:21 PM UTC+1 Kaveh Bazargan wrote:
>
> BTW to replace
>
> 2 PLAC
>
> at start of lines when replacements have been done, replace:
>
> "^" -- start of line
> with
>
> "2 PLAC "
>
> On Tue, 6 Jun 2023 at 15:28, Kaveh Bazargan
>  wrote:
>
> Simplest might be first to remove all "2 PLAC "
>
> Then replace
> "(? with
> ", "
>
> So replace any space no

Re: Using AppleScript to find and set an AS variable collects TMI (too much information)

2023-08-13 Thread Rick Gordon
I haven't worked with Keyboard Maestro, but what about *found text of 
TicketTimeEntryBegin*?


On August 13, 2023 at 11:20:24 PM [-0700], E2o wrote in an email 
entitled "Using AppleScript to find and set an AS variable collects TMI (too

much information)":

found text:08:30


_______
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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/64D9C83F.8070507%40rickgordon.com.


Re: Bbedit Applescript command

2023-08-17 Thread Rick Gordon

I suspect that either:

 * It is not a text file; Tex-Edit Plus also handles RTF, DOC, and
   AppleWorks files.

 * It is a text file, but the text encoding is not matching what you've
   chosen in BBEdit.

Rick Gordon



On August 17, 2023 at 11:06:59 PM [-0700], Eric wrote in an email 
entitled "Re: Bbedit Applescript command":

Ok last thing.
If I simply drag the SourceFile onto the TexEdit app it opens 
correctly formatted.

Drag it onto BBedit it doesn't.
Anyone know why ?
Kind Regards
Eric


On Friday, August 18, 2023 at 3:10:09 PM UTC+10 Eric wrote:

Hi again,
A bit more.

I've stepped through the whole process and it is in this line that
the necessary transformations done

*save*/window/1 in/file/ResultFileas/string/with
creator«/class/TBB6» *with* unstyled formatting


Commenting out each phrase after ResultFile fails until it's all
there. The works.

Switching to BBedit starts with not compiling with the Creator
Type phrase.
Cutting that out and seeing I can force the string complies but
fails to execute.
"Can’t make file "xyz" of application "BBEdit" into type string.

So I'm back to square one.
How to reproduce that line in BBedit :(

Kind Regards
Eric


On Friday, August 18, 2023 at 2:21:55 PM UTC+10 Eric wrote:

Hi Fletcher,
Thanks for responding.
I think because I've been struggling to understand what's
happening I've struggled to explain the problem.
Assuming along the way that its just an app switch.
But not quite so.
Below is text messy but I've narrowed down the issue.
The presenting problem is simply that in one case Indesign
opens the import tagged text dialog and responds. In the other
it misses that's tagged text coming in.

So this Snippet transforms the text and works.

(*Process the file for InDesign*)

*tell* /application/"Tex-Edit Plus"

*activate*

*open*/file/SourceFile

*save*/window/1 in/file/ResultFileas/string/with
creator«/class/TBB6» *with* unstyled formatting

*close*/window/1 saving/no/

*end* *tell*

*tell* /application/"Finder"

*activate*

*end* *tell*(*Process the file for InDesign*)

*tell* /application/"Tex-Edit Plus"

*activate*

*open*/file/SourceFile

*save*/window/1 in/file/ResultFileas/string/with
creator«/class/TBB6» *with* unstyled formatting

*close*/window/1 saving/no/

*end* *tell*

*tell* /application/"Finder"

*activate*

*end* *tell*


Resultant text is
___



etc etc with paragraphs and line feeds seperating text blocks
___

This Snippet using BBEdit

(*Process the file for InDesign*)

*tell* /application/"BBEdit"

*activate*

*open*/file/SourceFile

*save*/text document/1 to/file/ResultFile

*close*/window/1

*end* *tell*

*tell* /application/"Finder"

*activate*

*end*


Results in this text all before getting to ASCII-MAC and
produces no line feeds
__
{\rtf1\mac\ansicpg1\uc1

\deff4\deflang1033\deflangfe1033{\upr{\fonttbl{\f0\fnil\fcharset256\fprq2{\*\panose
00020206030504050203}Times New Roman{\*\falt
Times};}{\f4\fnil\fcharset256\fprq2{\*\panose
00020005}Times;}
and so on
_


What is the switch I need to get in there that resolves the
raw text to the Tex-Edit processed one ?


Thank you if you got this far


Kind Regards
Eric


On Thursday, August 17, 2023 at 11:59:47 AM UTC+10 Fletcher
Sandbeck wrote:

System Events can change some metadata. After giving the
appropriate permissions, this works to set a file to open
with TextEdit rather than BBedit.

*
*

*tell* /application/"System Events"

*set* default application*of*
/file/"/Users/fletcher/Desktop/myfile.txt" *to*
/file/"Smog:System:Applications:TextEdit.app:"

*end**tell*


Presumably this would work to set the Creator Type but
it's harder for me to test.

*tell* /application/ "System Events"

*set* creator type*of*
/file/"/Users/fletcher/Desktop/myfile.txt.txt" *to*
«/class/TBB6»

*end**tell*


Hope this helps,

[fletcher]


On Aug 16, 2023, at 4:01 PM, Eric 
wrote:

Hi,
For con

Re: Formatting Multiple Choice Questions Using Regex

2023-09-14 Thread Rick Gordon
This will require two regexes, which could be set up as a text factory. 

The first will handle everything except for the Correct field. It is: 

-- 
FIND: 
(?:^\d+\.\h+)([^"\r]+)("?)([^"\r]+)("?)(.+)\r\h+(?:a\)\h)(?:[^{\r]+)(\{C\})?\r\h+(?:b\)\h)(?:[^{\r]+)(\{C\})?\r\h+(?:c\)\h)(?:[^{\r]+)(\{C\})?\r\h+(?:d\)\h)(?:[^{\r]+)(\{C\})?\r\h*
 


REPLACE: 
MC\t"\1\2\2\3\4\4\5"\tChoice 1\tIncorrect\6\tChoice 2\tIncorrect\7\tChoice 
3\tIncorrect\8\tChoice 4\tIncorrect\9 
-- 

That would change this: 

1. Why is the "Description" component important when reflecting on sports? 
   a) It helps you set future goals. 
   b) It provides context and sets the stage for reflection. 
   c) It summarizes the main lessons learned. {C} 
   d) It assesses the positive and negative aspects. 

2. Why is the "Evaluation" component important? 
   a) This is choice one. {C} 
   b) This is choice two. 
   c) This is choice three. 
   d) This is choice four. 

10. Why is the "Analysis" component important? 
   a) This is choice one. 
   b) This is choice two. 
   c) This is choice three. 
   d) This is choice four. {C} 

…to this: 

MC"Why is the ""Description"" component important when reflecting on 
sports?"Choice 1IncorrectChoice 2IncorrectChoice 3
Incorrect{C}Choice 4Incorrect 
MC"Why is the ""Evaluation"" component important?"Choice 1
Incorrect{C}Choice 2IncorrectChoice 3IncorrectChoice 
4Incorrect 
MC"Why is the ""Analysis"" component important?"Choice 1
IncorrectChoice 2IncorrectChoice 3IncorrectChoice 4    
Incorrect{C} 
-- 

Then, a second regex: 
-- 
FIND: 
Incorrect\{C\} 

REPLACE: 
Correct 
-- 

…would change the field for the correct answer. 

Rick Gordon 

On Thursday, September 14, 2023 at 7:13:58 AM UTC-7 anotherhoward wrote:

>
> Here is new input updated to indicate the correct answer {C} in each 
> multiple-choice question.
>
> 1. Why is the "Description" component important when reflecting on sports?
>a) It helps you set future goals.
>b) It provides context and sets the stage for reflection.
>c) It summarizes the main lessons learned. {C}
>
>d) It assesses the positive and negative aspects.
>
> 2. Why is the "Evaluation" component important?
>a) This is choice one.
>b) This is choice two. {C}
>
>c) This is choice three.
>d) This is choice four.
>
> 10. Why is the "Analysis" component important?
>a) This is choice one.
>b) This is choice two.
>c) This is choice three. {C}
>
>d) This is choice four.
> On Thursday, September 14, 2023 at 12:29:54 AM UTC-4 David G Wagner wrote:
>
>> I am not the best at regex, but the thought of how to indicate what was 
>> correct was really all I was offering.  If no one comes forward with a 
>> solution, then would give it shot for  you.
>>
>>
>> Wags ;)
>>
>> WagsWorld
>> Hebrews 4:15
>> Ph(primary) : 408-914-1341 <(408)%20914-1341>
>> Ph(secondary): 408-761-7391 <(408)%20761-7391>
>>
>> On Sep 13, 2023 at 15:38 -0700, 'anotherhoward' via BBEdit Talk <
>> bbe...@googlegroups.com>, wrote:
>>
>> David, 
>> That sounds like a viable solution. I'm open to that idea. Do I have to 
>> do anything to my submission for it to be done the way you suggested?
>> Howard
>>
>> On Wednesday, September 13, 2023 at 6:08:55 PM UTC-4 David G Wagner wrote:
>>
>>> That is still a lot of work on your end. Why not use a square bracket or 
>>> } as the correct answer then it should be handled in hopefully one pass and 
>>> no one is doing extra work. Just thought…
>>>
>>> Wags ;)
>>>
>>> WagsWorld
>>> Hebrews 4:15
>>> Ph(primary) : 408-914-1341 <(408)%20914-1341>
>>> Ph(secondary): 408-761-7391 <(408)%20761-7391>
>>>
>>> On Sep 13, 2023 at 11:55 -0700, 'anotherhoward' via BBEdit Talk <
>>> bbe...@googlegroups.com>, wrote:
>>>
>>>
>>> Hi Bruce, 
>>>
>>> I misunderstood what was being asked and appreciate the time you put 
>>> into your response. I do have a separate answer file for each of my tests. 
>>> Further, in the forum, l only underlined the correct answers’ text because 
>>> I thought that was the information I was being asked for. My school’s LMS 
>>> will grade the exams for me once I supply it with the correct answers, 
>>> which is easy for me to do.
>>>
>>> To make things e

Re: Formatting Multiple Choice Questions Using Regex

2023-09-15 Thread Rick Gordon
Howard, you would need to have this in Replace: 

MC\t"\1\2\2\3\4\4\5"\tChoice 1\tIncorrect\6\tChoice 2\tIncorrect\7\tChoice 
3\tIncorrect\8\tChoice 4\tIncorrect\9 

Your replace field shows the desired outcome, not the Replace element of 
the regex. 

Rick Gordon 

On Friday, September 15, 2023 at 8:01:49 AM UTC-7 anotherhoward wrote:

> I pasted your first REGEX code and the relevant input into Pattern 
> Playground in both the Find and Replace sections and nothing is happening. 
> When I click Next, I just get a beep and am getting the message "No matches 
> found." I've checked everything and it matches what's in your post in this 
> forum. What could I be doing wrong?
> Howard
>
> [image: Gordon REGEX (1).png]
> On Thursday, September 14, 2023 at 7:49:03 PM UTC-4 Rick Gordon wrote:
>
>> This will require two regexes, which could be set up as a text factory. 
>>
>> The first will handle everything except for the Correct field. It is: 
>>
>> -- 
>> FIND: 
>> (?:^\d+\.\h+)([^"\r]+)("?)([^"\r]+)("?)(.+)\r\h+(?:a\)\h)(?:[^{\r]+)(\{C\})?\r\h+(?:b\)\h)(?:[^{\r]+)(\{C\})?\r\h+(?:c\)\h)(?:[^{\r]+)(\{C\})?\r\h+(?:d\)\h)(?:[^{\r]+)(\{C\})?\r\h*
>>  
>>
>>
>> REPLACE: 
>> MC\t"\1\2\2\3\4\4\5"\tChoice 1\tIncorrect\6\tChoice 
>> 2\tIncorrect\7\tChoice 3\tIncorrect\8\tChoice 4\tIncorrect\9 
>> -- 
>>
>> That would change this: 
>>
>> 1. Why is the "Description" component important when reflecting on 
>> sports? 
>>a) It helps you set future goals. 
>>b) It provides context and sets the stage for reflection. 
>>c) It summarizes the main lessons learned. {C} 
>>d) It assesses the positive and negative aspects. 
>>
>> 2. Why is the "Evaluation" component important? 
>>a) This is choice one. {C} 
>>b) This is choice two. 
>>c) This is choice three. 
>>d) This is choice four. 
>>
>> 10. Why is the "Analysis" component important? 
>>a) This is choice one. 
>>b) This is choice two. 
>>c) This is choice three. 
>>d) This is choice four. {C} 
>>
>> …to this: 
>>
>> MC"Why is the ""Description"" component important when reflecting on 
>> sports?"Choice 1IncorrectChoice 2IncorrectChoice 3
>> Incorrect{C}Choice 4Incorrect 
>> MC"Why is the ""Evaluation"" component important?"Choice 1
>> Incorrect{C}Choice 2IncorrectChoice 3IncorrectChoice 
>> 4Incorrect 
>> MC"Why is the ""Analysis"" component important?"Choice 1
>> IncorrectChoice 2IncorrectChoice 3IncorrectChoice 4
>> Incorrect{C} 
>> -- 
>>
>> Then, a second regex: 
>> -- 
>> FIND: 
>> Incorrect\{C\} 
>>
>> REPLACE: 
>> Correct 
>> -- 
>>
>> …would change the field for the correct answer. 
>>
>> Rick Gordon 
>>
>> On Thursday, September 14, 2023 at 7:13:58 AM UTC-7 anotherhoward wrote:
>>
>>>
>>> Here is new input updated to indicate the correct answer {C} in each 
>>> multiple-choice question.
>>>
>>> 1. Why is the "Description" component important when reflecting on 
>>> sports?
>>>a) It helps you set future goals.
>>>b) It provides context and sets the stage for reflection.
>>>c) It summarizes the main lessons learned. {C}
>>>
>>>d) It assesses the positive and negative aspects.
>>>
>>> 2. Why is the "Evaluation" component important?
>>>a) This is choice one.
>>>b) This is choice two. {C}
>>>
>>>c) This is choice three.
>>>d) This is choice four.
>>>
>>> 10. Why is the "Analysis" component important?
>>>a) This is choice one.
>>>b) This is choice two.
>>>c) This is choice three. {C}
>>>
>>>d) This is choice four.
>>> On Thursday, September 14, 2023 at 12:29:54 AM UTC-4 David G Wagner 
>>> wrote:
>>>
>>>> I am not the best at regex, but the thought of how to indicate what was 
>>>> correct was really all I was offering.  If no one comes forward with a 
>>>> solution, then would give it shot for  you.
>>>>
>>>>
>>>> Wags ;)
>>>>
>>>> WagsWorld
>>>> Hebrews 4:15
>>>> Ph(primary) : 408-914-

Re: Formatting Multiple Choice Questions Using Regex

2023-09-15 Thread Rick Gordon
The Find code should work based on your examples, but explaining it out:

   1. (?:^\d+\.\h+)
   Starting at the beginning of the paragraph, any number of digits 
   followed by a period and at least one space or tab
   Process and ignore. It will be replaced by MC followed by a tab. [ MC\t ]
   2. ([^"\r]+)
   Anything but a straight quote or a return
   Will be preceded by a straight quote, followed by the captured text. [ 
   "\1 ]
   3. ("?)
   One or no straight quotes
   Will be replaced by itself twice; so one quote will be replaced by two 
   quotes and nothing will be replaced by nothing. [ \2\2 ]
   4. ([^"\r]+)
   Same as #2 [ \3 ]
   5. ("?)
   Same as #3 [ \4\4 ]
   6. (.+)
   Anything else to the end of the paragraph.
   The captured text, followed by a straight quote [ \5" ]
   7. \r\h+
   A return followed by at least one series of spaces or tabs
   Replaced by one tab [ \t ]
   8. (?:a\)\h)(?:[^{\r]+)(\{C\})?\r\h+
   a. [ (?:a\)\h ]  Lowercase "a" followed by a right paren and a space or 
   tab; 
   b. [ (?:[^{\r]+) ]  Anything but a left brace or a return, up to the 
   return; 
   c. [ (\{C\})? ]  One or zero instances of Capital "C" enclosed in curly 
   braces;
   d. [ \r\h+ ]  A return followed by one or more spaces or tabs.
   Process and ignore. It will be replaced by "Choice 1" followed by a tab, 
   followed by "Incorrect", followed by the result of one or zero instances of 
   Capital "C" enclosed in curly braces [ Choice 1\tIncorrect\6\t ]
   9. (?:b\)\h)(?:[^{\r]+)(\{C\})?\r\h+
   For answer "b", analogous to the explanation in step 8 [ Choice 
   2\tIncorrect\7\t ]
   10. (?:c\)\h)(?:[^{\r]+)(\{C\})?\r\h+
   For answer "c", analogous to the explanation in step 8 [ Choice 
   3\tIncorrect\8\t ]
   11. (?:d\)\h)(?:[^{\r]+)(\{C\})?\r\h* 
   For answer "d", analogous to the explanation in step 8, except for 
   allowing for no spaces after the return, and not adding a final tab [ Choice 
   4\tIncorrect\9 

-

On Friday, September 15, 2023 at 8:01:49 AM UTC-7 anotherhoward wrote:

> I pasted your first REGEX code and the relevant input into Pattern 
> Playground in both the Find and Replace sections and nothing is happening. 
> When I click Next, I just get a beep and am getting the message "No matches 
> found." I've checked everything and it matches what's in your post in this 
> forum. What could I be doing wrong?
> Howard
>
> [image: Gordon REGEX (1).png]
> On Thursday, September 14, 2023 at 7:49:03 PM UTC-4 Rick Gordon wrote:
>
>> This will require two regexes, which could be set up as a text factory. 
>>
>> The first will handle everything except for the Correct field. It is: 
>>
>> -- 
>> FIND: 
>> (?:^\d+\.\h+)([^"\r]+)("?)([^"\r]+)("?)(.+)\r\h+(?:a\)\h)(?:[^{\r]+)(\{C\})?\r\h+(?:b\)\h)(?:[^{\r]+)(\{C\})?\r\h+(?:c\)\h)(?:[^{\r]+)(\{C\})?\r\h+(?:d\)\h)(?:[^{\r]+)(\{C\})?\r\h*
>>  
>>
>>
>> REPLACE: 
>> MC\t"\1\2\2\3\4\4\5"\tChoice 1\tIncorrect\6\tChoice 
>> 2\tIncorrect\7\tChoice 3\tIncorrect\8\tChoice 4\tIncorrect\9 
>> -- 
>>
>> That would change this: 
>>
>> 1. Why is the "Description" component important when reflecting on 
>> sports? 
>>a) It helps you set future goals. 
>>b) It provides context and sets the stage for reflection. 
>>c) It summarizes the main lessons learned. {C} 
>>d) It assesses the positive and negative aspects. 
>>
>> 2. Why is the "Evaluation" component important? 
>>a) This is choice one. {C} 
>>b) This is choice two. 
>>c) This is choice three. 
>>d) This is choice four. 
>>
>> 10. Why is the "Analysis" component important? 
>>a) This is choice one. 
>>b) This is choice two. 
>>c) This is choice three. 
>>d) This is choice four. {C} 
>>
>> …to this: 
>>
>> MC"Why is the ""Description"" component important when reflecting on 
>> sports?"Choice 1IncorrectChoice 2IncorrectChoice 3
>> Incorrect{C}Choice 4Incorrect 
>> MC    "Why is the ""Evaluation"" component important?"Choice 1
>> Incorrect{C}Choice 2IncorrectChoice 3IncorrectChoice 
>> 4Incorrect 
>> MC"Why is the ""Analysis"" component important?"Choice 1
>> IncorrectChoice 2IncorrectChoice 3IncorrectChoice 4
>> Incorrect{C} 
>> -- 
>>
>> Then, a second regex: 
>> -- 
>> FIND: 
>> Incorrect\{C\} 
>>
>>

Re: Formatting Multiple Choice Questions Using Regex

2023-09-15 Thread Rick Gordon
Well, the numbered list formatting got screwed up from step 8, but I think 
the intent is clear.

On Friday, September 15, 2023 at 2:42:30 PM UTC-7 Rick Gordon wrote:

> The Find code should work based on your examples, but explaining it out:
>
>1. (?:^\d+\.\h+)
>Starting at the beginning of the paragraph, any number of digits 
>followed by a period and at least one space or tab
>Process and ignore. It will be replaced by MC followed by a tab. [ MC\t
> ]
>2. ([^"\r]+)
>Anything but a straight quote or a return
>Will be preceded by a straight quote, followed by the captured text. [ 
>"\1 ]
>3. ("?)
>One or no straight quotes
>Will be replaced by itself twice; so one quote will be replaced by two 
>quotes and nothing will be replaced by nothing. [ \2\2 ]
>4. ([^"\r]+)
>Same as #2 [ \3 ]
>5. ("?)
>Same as #3 [ \4\4 ]
>6. (.+)
>Anything else to the end of the paragraph.
>The captured text, followed by a straight quote [ \5" ]
>7. \r\h+
>A return followed by at least one series of spaces or tabs
>Replaced by one tab [ \t ]
>8. 
>
>
>1. (?:a\)\h)(?:[^{\r]+)(\{C\})?\r\h+
>
>
>1. a. [ (?:a\)\h ]  Lowercase "a" followed by a right paren and a 
>space or tab; 
>b. [ (?:[^{\r]+) ]  Anything but a left brace or a return, up to the 
>return; 
>c. [ (\{C\})? ]  One or zero instances of Capital "C" enclosed in 
>curly braces;
>d. [ \r\h+ ]  A return followed by one or more spaces or tabs.
>Process and ignore. It will be replaced by "Choice 1" followed by a 
>tab, followed by "Incorrect", followed by the result of one or zero 
>instances of Capital "C" enclosed in curly braces [ Choice 
>1\tIncorrect\6\t ]
>2. 
>
>
>1. (?:b\)\h)(?:[^{\r]+)(\{C\})?\r\h+
>
>
>1. For answer "b", analogous to the explanation in step 8 [ Choice 
>2\tIncorrect\7\t ]
>2. 
>
>
>1. (?:c\)\h)(?:[^{\r]+)(\{C\})?\r\h+
>
>
>1. For answer "c", analogous to the explanation in step 8 [ Choice 
>3\tIncorrect\8\t ]
>2. 
>
>
>1. (?:d\)\h)(?:[^{\r]+)(\{C\})?\r\h* 
>
>
>1. For answer "d", analogous to the explanation in step 8, except for 
>allowing for no spaces after the return, and not adding a final tab [ 
> Choice 
>4\tIncorrect\9 
>
> -
>
> On Friday, September 15, 2023 at 8:01:49 AM UTC-7 anotherhoward wrote:
>
>> I pasted your first REGEX code and the relevant input into Pattern 
>> Playground in both the Find and Replace sections and nothing is happening. 
>> When I click Next, I just get a beep and am getting the message "No matches 
>> found." I've checked everything and it matches what's in your post in this 
>> forum. What could I be doing wrong?
>> Howard
>>
>> [image: Gordon REGEX (1).png]
>> On Thursday, September 14, 2023 at 7:49:03 PM UTC-4 Rick Gordon wrote:
>>
>>> This will require two regexes, which could be set up as a text factory. 
>>>
>>> The first will handle everything except for the Correct field. It is: 
>>>
>>> -- 
>>> FIND: 
>>> (?:^\d+\.\h+)([^"\r]+)("?)([^"\r]+)("?)(.+)\r\h+(?:a\)\h)(?:[^{\r]+)(\{C\})?\r\h+(?:b\)\h)(?:[^{\r]+)(\{C\})?\r\h+(?:c\)\h)(?:[^{\r]+)(\{C\})?\r\h+(?:d\)\h)(?:[^{\r]+)(\{C\})?\r\h*
>>>  
>>>
>>>
>>> REPLACE: 
>>> MC\t"\1\2\2\3\4\4\5"\tChoice 1\tIncorrect\6\tChoice 
>>> 2\tIncorrect\7\tChoice 3\tIncorrect\8\tChoice 4\tIncorrect\9 
>>> -- 
>>>
>>> That would change this: 
>>>
>>> 1. Why is the "Description" component important when reflecting on 
>>> sports? 
>>>a) It helps you set future goals. 
>>>b) It provides context and sets the stage for reflection. 
>>>c) It summarizes the main lessons learned. {C} 
>>>d) It assesses the positive and negative aspects. 
>>>
>>> 2. Why is the "Evaluation" component important? 
>>>a) This is choice one. {C} 
>>>b) This is choice two. 
>>>c) This is choice three. 
>>>d) This is choice four. 
>>>
>>> 10. Why is the "Analysis" component important? 
>>>a) This is choice one. 
>>>b) This is choice two. 
>>>c) This is choice three. 
>>>    d) This is choice four. {C} 
>>>
>>> …to this: 
>>>
>>> MC"Wh

Re: Formatting Multiple Choice Questions Using Regex

2023-09-15 Thread Rick Gordon
Actually, in case there should be no quoted element in the question, step 4 
and step 6 should end with * instead of +, since in that case, the whole 
line would be captured in step 2.

So I'm revising my FIND component to:

(?:^\d+\.\h+)([^"\r]+)("?)([^"\r]*)("?)(.*)\r\h+(?:a\)\h)(?:[^{\r]+)(\{C\})?\r\h+(?:b\)\h)(?:[^{\r]+)(\{C\})?\r\h+(?:c\)\h)(?:[^{\r]+)(\{C\})?\r\h+(?:d\)\h)(?:[^{\r]+)(\{C\})?\r\h*
On Friday, September 15, 2023 at 2:42:30 PM UTC-7 Rick Gordon wrote:

> The Find code should work based on your examples, but explaining it out:
>
>1. (?:^\d+\.\h+)
>Starting at the beginning of the paragraph, any number of digits 
>followed by a period and at least one space or tab
>Process and ignore. It will be replaced by MC followed by a tab. [ MC\t
> ]
>2. ([^"\r]+)
>Anything but a straight quote or a return
>Will be preceded by a straight quote, followed by the captured text. [ 
>"\1 ]
>3. ("?)
>One or no straight quotes
>Will be replaced by itself twice; so one quote will be replaced by two 
>quotes and nothing will be replaced by nothing. [ \2\2 ]
>4. ([^"\r]+)
>Same as #2 [ \3 ]
>5. ("?)
>Same as #3 [ \4\4 ]
>6. (.+)
>Anything else to the end of the paragraph.
>The captured text, followed by a straight quote [ \5" ]
>7. \r\h+
>A return followed by at least one series of spaces or tabs
>Replaced by one tab [ \t ]
>8. 
>
>
>1. (?:a\)\h)(?:[^{\r]+)(\{C\})?\r\h+
>
>
>1. a. [ (?:a\)\h ]  Lowercase "a" followed by a right paren and a 
>space or tab; 
>b. [ (?:[^{\r]+) ]  Anything but a left brace or a return, up to the 
>return; 
>c. [ (\{C\})? ]  One or zero instances of Capital "C" enclosed in 
>curly braces;
>d. [ \r\h+ ]  A return followed by one or more spaces or tabs.
>Process and ignore. It will be replaced by "Choice 1" followed by a 
>tab, followed by "Incorrect", followed by the result of one or zero 
>instances of Capital "C" enclosed in curly braces [ Choice 
>1\tIncorrect\6\t ]
>2. 
>
>
>1. (?:b\)\h)(?:[^{\r]+)(\{C\})?\r\h+
>
>
>1. For answer "b", analogous to the explanation in step 8 [ Choice 
>2\tIncorrect\7\t ]
>2. 
>
>
>1. (?:c\)\h)(?:[^{\r]+)(\{C\})?\r\h+
>
>
>1. For answer "c", analogous to the explanation in step 8 [ Choice 
>3\tIncorrect\8\t ]
>2. 
>
>
>1. (?:d\)\h)(?:[^{\r]+)(\{C\})?\r\h* 
>
>
>1. For answer "d", analogous to the explanation in step 8, except for 
>allowing for no spaces after the return, and not adding a final tab [ 
> Choice 
>4\tIncorrect\9 
>
> -
>
> On Friday, September 15, 2023 at 8:01:49 AM UTC-7 anotherhoward wrote:
>
>> I pasted your first REGEX code and the relevant input into Pattern 
>> Playground in both the Find and Replace sections and nothing is happening. 
>> When I click Next, I just get a beep and am getting the message "No matches 
>> found." I've checked everything and it matches what's in your post in this 
>> forum. What could I be doing wrong?
>> Howard
>>
>> [image: Gordon REGEX (1).png]
>> On Thursday, September 14, 2023 at 7:49:03 PM UTC-4 Rick Gordon wrote:
>>
>>> This will require two regexes, which could be set up as a text factory. 
>>>
>>> The first will handle everything except for the Correct field. It is: 
>>>
>>> -- 
>>> FIND: 
>>> (?:^\d+\.\h+)([^"\r]+)("?)([^"\r]+)("?)(.+)\r\h+(?:a\)\h)(?:[^{\r]+)(\{C\})?\r\h+(?:b\)\h)(?:[^{\r]+)(\{C\})?\r\h+(?:c\)\h)(?:[^{\r]+)(\{C\})?\r\h+(?:d\)\h)(?:[^{\r]+)(\{C\})?\r\h*
>>>  
>>>
>>>
>>> REPLACE: 
>>> MC\t"\1\2\2\3\4\4\5"\tChoice 1\tIncorrect\6\tChoice 
>>> 2\tIncorrect\7\tChoice 3\tIncorrect\8\tChoice 4\tIncorrect\9 
>>> -- 
>>>
>>> That would change this: 
>>>
>>> 1. Why is the "Description" component important when reflecting on 
>>> sports? 
>>>a) It helps you set future goals. 
>>>b) It provides context and sets the stage for reflection. 
>>>c) It summarizes the main lessons learned. {C} 
>>>d) It assesses the positive and negative aspects. 
>>>
>>> 2. Why is the "Evaluation" component important? 
>>>a) This is choice one. {C} 
>>>b) This is choice two. 
>>>c) This is choice three. 
>>>d) This is 

Re: Color and text

2023-10-20 Thread Rick Gordon
You need a word processing program for that sort of thing. Nisus Writer 
Pro is excellent, in that it has very robust regular expression support 
(among other things), which I find essential, especially after years of 
BBEdit use.


You can save a BBEdit file as styled text, which will retain all its 
colors on import to Nisus.


Rick Gordon


From:   Gilbert Grosdidier 
To: BBEdit Talk 
Date:   Fri, 13 Oct 2023 09:14:44AM GMT-07:00
Subject:Color and text


Hello,

I'm a newbie with BBEdit use.
I was unable to find any help about some very simple actions : while 
in a plain text document, here is a bunch of text :

"/ACPI To Reset RHUBs (May Conflict With Existing  SSDT)/"
- how could I put "*reset*" in bold ?
- how could I put "existing" in red ?
- how could I put "Conflict" before green background ?


___
RICK GORDON
___




--
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/9424d8d3-8ffd-46fe-945a-19c71c7d5bba%40rickgordon.com.


Most BBEdit-like Terminal Editor ??

2024-02-27 Thread Rick Gordon
What Terminal editor is the most similar in interface to BBEdit (i.e., the 
easiest TUI editor for a person who is most comfortable with BBEdit), which 
I might install on a remote machine where it may sometimes require text 
editing within the Terminal?

-- 
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/c9383aee-e0d1-4921-a23b-e87372366b35n%40googlegroups.com.


Re: Most BBEdit-like Terminal Editor ??

2024-02-28 Thread Rick Gordon


Thanks all! I think micro looks like the best one I've found. I appreciate 
your insights.

Rick Gordon

-- 
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/cdba45d4-86bc-4360-8653-08bff10644c3n%40googlegroups.com.


Re: Possible with Grep?

2024-02-28 Thread Rick Gordon
*(?i)* in the string will render it case-insensitive, as will unchecking *Case 
sensitive* at the bottom of the BBEdit Find/Replace dialog.

On Wednesday, February 28, 2024 at 1:14:26 PM UTC-8 Brian Forte wrote:

> On Wed, 28 Feb 2024 11:38:07 -0600, Jim Straus wrote:
> > I'm looking to change a word in my code to another one, but it is
> > sometimes "Word", "word" or "WORD". I can do this with three search and
> > replaces. I also know about the \u\U modifications to the group (so \u\1
> > to uppercase the first letter), but that doesn't really work, since I'm
> > changing the word (not using the group). What I think I want is something
> > that would take just the case of the matched group and apply that to
> > replacement text. Or is there another way to accomplish this in one
> > pattern?
>
> The below is simplistic and almost brute-force, but it appears to work.
>
> I’m assuming ‘word’ is representative. That is, I’m assuming you are 
> searching for a specific string of letters where the only potential 
> difference between each example string is the letter case.
>
> Then
>
> Search for: [W|w][O|o][R|r][D|d]
> Replace with: 
>
> Hope this helps.
>
> Regards,
>
> Brian Forte.
> -- 
> Brian Forte
> 

-- 
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/48a8df4d-9c08-476f-9879-997254829881n%40googlegroups.com.


Re: Displaying Code Page 437

2024-03-18 Thread Rick Gordon
What if you set your text encoding to one of the other Western encodings?

On Sunday, March 17, 2024 at 5:08:14 PM UTC-7 Bill Kochman wrote:

> Hello Folks,
>
> I recently resurrected — probably for the fourth time — my PC-ANSI-based 
> BBS, which I first began running in 1993.
>
> So, I am remaking all of my ANSI screens from screenshots I took back in 
> 2015, which is when I last ran my board.
>
> My question is the following:
>
> Can BBEdit properly display what seems to be an older version of the Code 
> Page 437 ANSI characters? I am talking about the different shaded blocks, 
> bars, lines, etc., that us older guys used to use to manually make our ANSI 
> screens.
>
> Sadly, if I paste an ANSI screen in a BBEdit text file, all of the ANSI 
> characters are just gibberish. I seem to recall that a number of years ago, 
> I could actually see the ANSI characters, exactly as you would see them 
> displayed on a BBS. on your computer or in a telnet client.
>
> To clarify, if I copy and paste Code Page 437 ANSI characters from the 
> Wikipedia website, or from an ANSI art program, they do appear properly in 
> a BBEdit document, like this:
>
> ▼  ▲  ◄  ►  ┼  «  π  ‹  ›  ‡  »  ∏  ◊  «  »  ≡  ≈  °
>
> ]  [  ↨  ↑  ↓  →  ←  ↔  ☺  ☻  ♥  ☼  §  ◙  ○  ◘
>
> ░  ▒  ▓
>
> █  ▄  ■  ▀  ▌  ▐  ▬  .  ·  •
>
> Γ │  ┤  ├  ⌐  ¬  ┌  ┐  └  ┘  ┴  ┬  ├  ─  -  –  _
>
> ╡  ╞  ╧  ╨  ╤  ╥  ╢  ╟  ╫  ╪  ╓  ╖  ╒  ╕  ╙  ╜  ╒  ╛  ╘
>
> ╣  ╠  ║  ╔  ╗  ╚╝  ╩  ╦  ═  ╬
>
>
> However, if I copy and paste the very same characters from my actual BBS, 
> they look like this:
>
> »  Õ  º  ∫  …  ª  À   
>
>
>
> ⁄  ø  ƒ  ≥  ¿  Ÿ  ¥  ¬  
>
>
>
> €  ≤  ∞  ›  fi  ‹  fl    ˛  ˘
>
>
> So it seems that my BBS may possibly use an older flavor of ANSI 
> characters which BBEdit does not recognize, or at least does not know how 
> to properly display.
>
> In fact, if I  try to use the first group of ANSI characters above in my 
> BBS, it won’t even let me, and it just beeps. Yes, my BBS is OLD, from the 
> 80s and the 90s.  :)
>
> Kind regards,
> Kind regards,
>
>
> [image: graphical-email-signature 400x185.jpg] 
>
>

-- 
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/10ba38d4-f8a9-48fd-8cc8-a32835df72d6n%40googlegroups.com.


RE: Ability to select multiple pieces of text?

2010-11-17 Thread Rick Gordon
I have also been looking for a feature (currently possible in Nisus Writer) 
where you can select discontiguously and then run a grep pattern on the 
selected text.

Combine this with the elegance of BBEdit's multi-file search and you've trumped 
Nisus on this (as long as maintaining rich-text formatting is not required).

Rick Gordon

--

On 11/17/10 at 9:59 AM -0800, dmandave wrote in a message entitled
"Ability to select multiple pieces of text?":

>Hello all,
>I was hoping to find out whether there was a feature within BBEdit
>that allowed you to select multiple, offset pieces of text much like
>this link demos: 
>http://www.labnol.org/software/browsers/screencast-how-to-select-multiple-lines-of-text-in-firefox-3/3598/

-- 
_______

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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


RE: The bug that won't die / Scarry Find and Replace

2011-01-10 Thread Rick Gordon
Sounds like these two posts may be relating to the same issue.

Rick Gordon

--

On 1/10/11 at 4:24 PM -0800, WebbWebs wrote in a message entitled
"The bug that won't die.":

>I just uncovered a bug in the latest release of BBEdit (9.6.2) that
>has stopped my development cold. Unfortunately, I'm trying to get an
>application completed so I can fly from Denver to New Orleans in the
>morning for a major website install .
>
>I was doing doing a fairly simple global text search on a very large
>directory that contains several thousand files. I do this quite
>frequently and typically without complication. Normally I would do the
>find/replace, saving the changes immediately, with the application
>only advising me of the the changes that were made. In this particular
>instance, my search was not unique enough that I could be absolutely
>certain I would only change what I anticipated changing. So I modified
>my parameters to have BBEdit make the changes, but leave the files
>open and unsaved. I know my search was at least unique enough that I
>should only end up with a couple dozen files open at most.
>
>Unfortunately, I did not get the results I expected. BBEdit began to
>open every single file in the master directory (several thousand),
>marking the pages as changed and leaving them open. There is
>absolutely no reason that any of these files should have been changed
>with the submitted query... but they WERE.
>
>After about 30 minutes (at which time new files were being loaded
>rather slowly due to memory constraints), I finally force-quit BBEdit.
>But, to my dismay (and as I anticipated), once BBEdit was relaunched,
>it went into perpetual "beach-ball mode", while preparing to reload
>the thousands of files that were loaded previously.
>
>Does anybody have a clue how to kill this bug from Hell? I tried
>calling the support number but it was already too late to catch them
>today. If I have to wait until tomorrow to get a reply, I'll be
>required to cancel my flight.
>
>Thanks for any help
>
>Jack



--

On 1/10/11 at 7:40 AM -0800, StanW wrote in a message entitled
"Scarry Find and Replace":

>Using BBEdit 9.6.2:
>
>I have been a long time user of BBEdit. I often use Find and Replace
>for a bunch of sites. For example today I wanted to change all of my
>footers to 2011 from 2010. It looks as if BBEdit changed the 6 or so
>footers across my sites, but it also saved all (everyone) of my
>webpages so they now have today's modification date. I have no idea
>what else BBEdit changed, but how can I trust it?
>
>Can anyone tell me what happened? I will try to find 9.6.1 and revert;
>this did not happen with that and earlier versions.
>
>Thank you
>
>Stan
-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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


Tool to Remove URL Escaped Characters?

2011-02-21 Thread Rick Gordon
Is there a tool available (for BBEdit or otherwise) that can convert URL 
escaped characters (e.g., %20, %7d, the whole bunch) to standard text (or vice 
versa)?

No problem with a Terminal command or AppleScript -- whatever works.

Thanks in advance.
-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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


RE: Tool to Remove URL Escaped Characters?

2011-02-21 Thread Rick Gordon
Well, for one, I just found a web-based converter at:
http://www.xs4all.nl/~jlpoutre/BoT/Javascript/Utils/endecode.html

---

At 4:55 PM -0800 2/21/11, Rick Gordon wrote:

>Is there a tool available (for BBEdit or otherwise) that can convert URL 
>escaped characters (e.g., %20, %7d, the whole bunch) to standard text (or vice 
>versa)?
>
>No problem with a Terminal command or AppleScript -- whatever works.
>
>Thanks in advance.

-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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


Repeating a Grep Search Until It Fails

2011-09-24 Thread Rick Gordon
How can I set up a grep search that will repeat looping through the document 
until all instances have been processed?

For instance, say I've set up markers (« and ») around target source strings, 
and want to process thos strings to remove any characters that are not ASCII, 
numeric, space, or hyphen. Something like:

FIND: 
(?<=«)(.*?)[^- A-Za-z0-9«»]+?(.*?)(?=»)

CHANGE TO:
\1\2

How can I keep it looping until no more instances are found?

-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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


Re: Repeating a Grep Search Until It Fails

2011-09-24 Thread Rick Gordon
Replace All is not doing it. I need to click Replace All many times to complete 
this sort of search. I think that the (?R) recursive search indication might 
help, but I can't figure out its general syntax from the single example in the 
BBEdit manual.

--

On 9/24/11 at 8:03 AM -0600, Bucky Junior wrote in a message entitled
"Re: Repeating a Grep Search Until It Fails":

>Do you mean something like "Replace All"? The default keys are 
>Option-Command-R.
>
>Sometimes I want to make select changes but not all so I use command-G
>to skip changing and find the next occurrence and command-T to make
>the change and find the next.
>
>Bucky
>
>On Sat, Sep 24, 2011 at 6:16 AM, Marek Stepanek
> wrote:
>> On 05.01.2011 10:03 AM, Rick Gordon wrote:
>>>
>>> How can I set up a grep search that will repeat looping through the
>>> document until all instances have been processed?
>>>
>>> For instance, say I've set up markers (« and ») around target source
>>> strings, and want to process thos strings to remove any characters that are
>>> not ASCII, numeric, space, or hyphen. Something like:
>>>
>>> FIND:
>>>(?<=«)(.*?)[^- A-Za-z0-9«»]+?(.*?)(?=»)
>>>
>>> CHANGE TO:
>>>\1\2
>>>
>>> How can I keep it looping until no more instances are found?
>>>
>>
>>
>> I don't like the find and replace dialogue any more, which was changed a
>> long while ago. First go on top of your open file (this is tricky and
>> annoying, because we have had once a button: "search backwards" etc I never
>> understood, why BareBones removed this). Enter your search patterns, enable
>> grep, and click on "replace & find".
>>
>>
>> marek
>>
>>
>> --
>> ___
>>
>>the embassy for talented young musicians
>>   Podium International | Marek Stepanek | ms...@podiuminternational.org
>>http://www.PodiumInternational.org
>>___
>>
>> --
>> You received this message because you are subscribed to the "BBEdit Talk"
>> discussion group on Google Groups.
>> To post to this group, send email to bbedit@googlegroups.com
>> To unsubscribe from this group, send email to
>> bbedit+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> <http://groups.google.com/group/bbedit?hl=en>
>> If you have a feature request or would like to report a problem, please
>> email "supp...@barebones.com" rather than posting to the group.
>> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
>>
>
>--
>You received this message because you are subscribed to the
>"BBEdit Talk" discussion group on Google Groups.
>To post to this group, send email to bbedit@googlegroups.com
>To unsubscribe from this group, send email to
>bbedit+unsubscr...@googlegroups.com
>For more options, visit this group at
><http://groups.google.com/group/bbedit?hl=en>
>If you have a feature request or would like to report a problem,
>please email "supp...@barebones.com" rather than posting to the group.
>Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>


-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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


Re: Repeating a Grep Search Until It Fails

2011-09-24 Thread Rick Gordon
Thanks for all your suggestions. Will need to brush up on my Perl and check it 
out.

Also, actually my needs are a little less complex than what is been currently 
discussed. My idea is to build id names for every h1-h6 in a folder of 
documents, and my intention was to start with the text of the head, and then 
munge that down to strip out all punctuation and upper ascii, then replace 
spaces with hyphens, and then add an "x" in front of any id entries that begin 
with a digit.

Can anyone confirm the use and syntax of the recursive operator (?R) discussed 
in advanced grep topics (on p. 194 of the manual that accompanies v9.x).

--

On 9/24/11 at 12:21 PM -0700, Rick Gordon wrote in a message entitled
"Re: Repeating a Grep Search Until It Fails":

>Replace All is not doing it. I need to click Replace All many times to 
>complete this sort of search. I think that the (?R) recursive search 
>indication might help, but I can't figure out its general syntax from the 
>single example in the BBEdit manual.

-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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


RE: grep help

2012-03-26 Thread Rick Gordon
FIND:
(.?*)

CHANGE TO:
\1

--

On 3/26/12 at 12:23 PM -0700, JT wrote in a message entitled
"grep help":

>  I'm trying to replace the   in a long table with  using
>grep
>
>6-Grain   Flakes  .. to.. 6-
>Grain   Flakes
>
>i tried * .. to.. * to no
>avail
>
>there are over 100 rows ion this table
>
>
>
>6-Grain   Flakes
>1 cup
>3 3/8
>  
>   
>Almond   flour, toasted
>1 cup
>3 3/8
>  
>   
>Almonds,   sliced
>1/2 cup
>1 1/2
>  
>
>--
>You received this message because you are subscribed to the
>"BBEdit Talk" discussion group on Google Groups.
>To post to this group, send email to bbedit@googlegroups.com
>To unsubscribe from this group, send email to
>bbedit+unsubscr...@googlegroups.com
>For more options, visit this group at
><http://groups.google.com/group/bbedit?hl=en>
>If you have a feature request or would like to report a problem,
>please email "supp...@barebones.com" rather than posting to the group.
>Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>


-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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


Re: grep help

2012-03-26 Thread Rick Gordon
I sure did switch up my non-greedy modifier. Thanks for noticing.

--

On 3/26/12 at 4:06 PM -0500, Christopher Stone wrote in a message entitled
"Re: grep help":

>On Mar 26, 2012, at 15:39, Rick Gordon wrote:
>> FIND:
>> (.?*)
>__
>
>Hey Rick,
>
>Didn't you switch up your non-greedy modifier?
>
>Find:
>
>(.*?)
>
>Replace:
>
>\1
>
>--
>Best Regards,
>Chris
>
>--
>You received this message because you are subscribed to the
>"BBEdit Talk" discussion group on Google Groups.
>To post to this group, send email to bbedit@googlegroups.com
>To unsubscribe from this group, send email to
>bbedit+unsubscr...@googlegroups.com
>For more options, visit this group at
><http://groups.google.com/group/bbedit?hl=en>
>If you have a feature request or would like to report a problem,
>please email "supp...@barebones.com" rather than posting to the group.
>Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>


-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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


Tidy > Cleanup Problem

2012-03-28 Thread Rick Gordon
I've put together a text factory to operate on XHTML files, and the last step 
is Tidy > Cleanup Document, with the only checked items as "Discard empty 
paragraphs" and "Enclose block text". It does just what I want -- different 
from anything I can get with Tidy > Reflow Document (though glad to be proven 
wrong), but with one big problem: It changes numbered entities like   to 
named entities like   

But named entities are not supported in the environment I'm working in.

So how can I -- on an entire project -- get the result of Tidy > Cleanup 
Document without the entity conversion -- or else, how can I reconvert the 
entities to their numeric form.

Rick Gordon
-- 
_______

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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


Key Command to Move to Next Open Doc in Same Window

2012-04-16 Thread Rick Gordon
Is there a key command that will activate the next open document in a window 
(moving down one entry in the sidebar)?
-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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


RE: Key Command to Move to Next Open Doc in Same Window

2012-04-16 Thread Rick Gordon
The View > Next Document command seems to be erratic. Sometimes it moves nicely 
down the column, but it often bounces around out of listed sequence. I'm 
thinking it might have to do with the otrder tht the documents loaded, rather 
than their alphabetical sorting, as listed in the sidebar.

Rick Gordon

--

On 4/16/12 at 1:54 AM -0700, Rick Gordon wrote in a message entitled
"Key Command to Move to Next Open Doc in Same Window":

>Is there a key command that will activate the next open document in a window 
>(moving down one entry in the sidebar)?

-- 
_______

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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


RE: Multiple FTP/SFTP Browsers

2012-04-17 Thread Rick Gordon
Title: RE: Multiple FTP/SFTP Browsers


Try going to File > New > FTP/SFTP Browser. Works for me.
(10.6.8)

Rick Gordon

--

On 4/17/12 at 5:54 AM -0700, Matthew Johnson wrote in a message
entitled
"Multiple FTP/SFTP Browsers":

Hello! I am having trouble figuring out
how to open multiple FTP/SFTP browsers at the same time. For
example, I maintain files:

1) On a computing cluster in my home
directory.
2) On the computing cluster in a /scratch
directory.
3) On a different, file storage
server.

If I want to open files from those three
different locations, right now I have to either navigate from #1 to #2
(annoying, they are in very different locations), or I have to
disconnect and re-connect to server #3 (also annoying). Ideally I'd
like if there were three FTP/SFTP browser windows open. I got this to
work somehow accidentally, so I know multiple connections are
possible, but I can't reproduce it!

The manual says
"If you hold down the Option key when opening a folder, it will
open in a new FTP/SFTP Browser window." but this did not work for
me. 

I am running BBEdit
10.1.1 on Mac OS 10.7.3.

I appreciate any
suggestions you might have!

-- 

_______

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com





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


Re: Key Command to Move to Next Open Doc in Same Window

2012-04-18 Thread Rick Gordon
Thanks. That did it.


On Monday, April 16, 2012 12:08:16 PM UTC-7, Christopher Stone wrote:
>
> On Apr 16, 2012, at 13:48, Rick Gordon wrote:
>
> The View > Next Document command seems to be erratic. Sometimes it moves 
> nicely down the column, but it often bounces around out of listed sequence. 
> I'm thinking it might have to do with the otrder tht the documents loaded, 
> rather than their alphabetical sorting, as listed in the sidebar.
>
> __
>
> Hey Rick,
>
> Scope out the expert preferences:
>
>- 
>
>When using the "Previous Document" and "Next Document" commands on the 
>View menu, or the navigation arrows in the navigation bar, the order in 
>which BBEdit navigates documents is determined by the order in which they 
>were opened. If you prefer, these commands can be made to navigate the 
>documents in the order shown in the file list.
>
>defaults write com.barebones.bbedit SurfNextPreviousInDisplayOrder 
>-bool YES
>
> --
> Best Regards,
> Chris
>
>

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


Using an Embedded Style Sheet for Styled HTML

2012-04-18 Thread Rick Gordon
The expert preferences section of online help includes a means to use an 
embedded style sheet for copying or saving as styled HTML.

Is there a way to link to or access BBEdit's default style sheet for this 
purpose?


--

The "Copy as Styled HTML" and "Save as Styled HTML" commands normally generate 
style information inline. If you want to use an embedded style sheet instead, 
set the hidden preference thusly:

defaults write com.barebones.bbedit UseInlineStylesForCopiedHTML -bool NO
-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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


Re: change default editor to bbedit

2012-06-14 Thread Rick Gordon
But how will that work for other classes of documents, such as images, which 
have their own default editor?

--

On 6/14/12 at 8:28 AM -0500, Rod Buchanan wrote in a message entitled
"Re: change default editor to bbedit":

>On Jun 13, 2012, at 7:25 PM, bobPCL wrote:
>
>> thanks. That does work for crontab. Unfortunately it does work if you say 
>> "edit file.name", you can say bbedit but not edit.
>
>Add this to ~/.bashrc
>
>   alias edit='/usr/bin/bbedit'
>
>--
>Rod

-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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


Re: change default editor to bbedit

2012-06-14 Thread Rick Gordon
Ah, right. I was confusing edit and open.

--

On 6/14/12 at 2:10 PM -0400, François Schiettecatte wrote in a message entitled
"Re: change default editor to bbedit":

>It is not relevant, all the alias does is replace the command 'edit' with the 
>command '/usr/bin/bbedit', the default MacOS X install does not have an 'edit' 
>command.
>
>Note that you can add parameters to the alias:
>
>   alias edit='/usr/bin/bbedit --wait --resume'
>
>There is the '/usr/bin/open' command which will open a document with its Mac 
>application, so I would use that for you images, etc...
>
>François
>
>On Jun 14, 2012, at 1:58 PM, Rick Gordon wrote:
>
>> But how will that work for other classes of documents, such as images, which 
>> have their own default editor?
>>
>> --
>>
>> On 6/14/12 at 8:28 AM -0500, Rod Buchanan wrote in a message entitled
>> "Re: change default editor to bbedit":
>>
>>> On Jun 13, 2012, at 7:25 PM, bobPCL wrote:
>>>
>>>> thanks. That does work for crontab. Unfortunately it does work if you say 
>>>> "edit file.name", you can say bbedit but not edit.
>>>
>>> Add this to ~/.bashrc
>>>
>>> alias edit='/usr/bin/bbedit'
>>>
>>> --
>>> Rod
>>
>> --
>> ___
>>
>> RICK GORDON
>> EMERALD VALLEY GRAPHICS AND CONSULTING
>> ___
>>
>> WWW:   http://www.shelterpub.com
>>
>> --
>> You received this message because you are subscribed to the
>> "BBEdit Talk" discussion group on Google Groups.
>> To post to this group, send email to bbedit@googlegroups.com
>> To unsubscribe from this group, send email to
>> bbedit+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> <http://groups.google.com/group/bbedit?hl=en>
>> If you have a feature request or would like to report a problem,
>> please email "supp...@barebones.com" rather than posting to the group.
>> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
>
>--
>You received this message because you are subscribed to the
>"BBEdit Talk" discussion group on Google Groups.
>To post to this group, send email to bbedit@googlegroups.com
>To unsubscribe from this group, send email to
>bbedit+unsubscr...@googlegroups.com
>For more options, visit this group at
><http://groups.google.com/group/bbedit?hl=en>
>If you have a feature request or would like to report a problem,
>please email "supp...@barebones.com" rather than posting to the group.
>Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>


-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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


BBEdit AppleScript Problem

2012-07-20 Thread Rick Gordon
I can't figure out why this AppleScript is not working. I'm trying to do the 
following:

Starting with a selection of multiple lines, beginning at a line start and 
ending with a return, I want to:

(1) shift the selection one increment to the right;

(2) add an opening div tag before it, preceded but the number of tabs that 
preceded the first line of the selection before the shift;

(3) add a closing dive tag after it, similarly tabbed.

The script runs fine, and returns what I would expect, until the last action, 
the Replace line. But the replacement replaces all the text with two garbage 
characters.

Several variants for addressing the target string are listed, but it's not 
working either way.

Here's the script. Any help -- or an easier approach -- is welcome. Thanks.

Rick Gordon



set vOpeningTag to "" & return
set vClosingTag to "" & return

tell application "BBEdit 10"
  set vSelection to selection

  tell vSelection
set vTabLeader to (find "^  +" options {search mode:grep, showing 
results:false} searching in contents)
shift direction right
  end tell

  set vSelection to selection

  tell vSelection
set vStart to characterOffset
set vEnd to characterOffset + length
  end tell

  set vOpeningTag to vTabLeader & vOpeningTag
  set vClosingTag to vTabLeader & vClosingTag
 
 tell document 1
set vTarget to a reference to characters vStart thru vEnd
-- OR set vTarget to characters vStart thru vEnd

tell contents of vTarget
   -- OR  tell vTarget
  replace "(?s)(.+)" using vOpeningTag & "\\1" & vClosingTag options 
{search mode:grep, showing results:false, extend selection:true}
end tell
  end tell
end tell

-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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


RE: BBEdit AppleScript Problem

2012-07-20 Thread Rick Gordon
Ah, I got it. I needed to set vTabLeader to found text of the find operation.

Rick Gordon

--

On 7/20/12 at 1:43 AM -0700, Rick Gordon wrote in a message entitled
"BBEdit AppleScript Problem":

>I can't figure out why this AppleScript is not working. I'm trying to do the 
>following:
>
>Starting with a selection of multiple lines, beginning at a line start and 
>ending with a return, I want to:
>
>(1) shift the selection one increment to the right;
>
>(2) add an opening div tag before it, preceded but the number of tabs that 
>preceded the first line of the selection before the shift;
>
>(3) add a closing dive tag after it, similarly tabbed.
>
>The script runs fine, and returns what I would expect, until the last action, 
>the Replace line. But the replacement replaces all the text with two garbage 
>characters.
>
>Several variants for addressing the target string are listed, but it's not 
>working either way.
>
>Here's the script. Any help -- or an easier approach -- is welcome. Thanks.
>
>Rick Gordon
>
>
>
>set vOpeningTag to "" & return
>set vClosingTag to "" & return
>
>tell application "BBEdit 10"
>  set vSelection to selection
>
>  tell vSelection
>set vTabLeader to (find "^  +" options {search mode:grep, showing 
> results:false} searching in contents)
>shift direction right
>  end tell
>
>  set vSelection to selection
>
>  tell vSelection
>set vStart to characterOffset
>set vEnd to characterOffset + length
>  end tell
>
>  set vOpeningTag to vTabLeader & vOpeningTag
>  set vClosingTag to vTabLeader & vClosingTag
> 
> tell document 1
>set vTarget to a reference to characters vStart thru vEnd
>-- OR set vTarget to characters vStart thru vEnd
>
>tell contents of vTarget
>   -- OR  tell vTarget
>  replace "(?s)(.+)" using vOpeningTag & "\\1" & vClosingTag options 
> {search mode:grep, showing results:false, extend selection:true}
>end tell
>  end tell
>end tell
>
>--
>___
>
>RICK GORDON
>EMERALD VALLEY GRAPHICS AND CONSULTING
>___
>
>WWW:   http://www.shelterpub.com
>
>--
>You received this message because you are subscribed to the
>"BBEdit Talk" discussion group on Google Groups.
>To post to this group, send email to bbedit@googlegroups.com
>To unsubscribe from this group, send email to
>bbedit+unsubscr...@googlegroups.com
>For more options, visit this group at
><http://groups.google.com/group/bbedit?hl=en>
>If you have a feature request or would like to report a problem,
>please email "supp...@barebones.com" rather than posting to the group.
>Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>


-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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


How to Edit HTML Code to the Generated Result of This jQuery

2012-09-17 Thread Rick Gordon
I have a whole bunch of pages that I need to parse through and add calculated 
IDs to each image, based on the ID of its ancestor (might be parent, 
grandparent or more) div which has the class of "page".

So that, for instance, this...


... blah, blah ...


.   .. blah, blah ...





... blah, blah ...


.   .. blah, blah ...





...would become this...


... blah, blah ...

.   .. blah, blah ...


... blah, blah ...

.   .. blah, blah ...

http://www.shelterpub.com

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

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





Command to Toggle Focus in 2-Pane Multi-File Search Result Window?

2012-10-02 Thread Rick Gordon
Is there a menu item / key command that will toggle the focus of the search 
results window, so that I can click a result in the top pane and then switch to 
editing in the bottom pane without a mouse click?
-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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





Any Way to Force Sorting of Search Results Window to Alphabetical

2012-10-03 Thread Rick Gordon
Is there a to force the listing in a search results window to be alphabetically 
sorted, preferably with Numbers Match by Value enabled?
-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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





Re: Any Way to Force Sorting of Search Results Window to Alphabetical

2012-10-04 Thread Rick Gordon
Unless I misunderstand, I don't think so. I just want to do a multi-file search 
and have the filenames in the results be arranged in sort order. Right now, I 
think it may be in document-open order.

That way, it's easy to move down the list instead of jumping all over, assuming 
I want to make changes in a logical order.

Rick Gordon

--

On 10/3/12 at 9:22 AM -0400, Rich Siegel wrote in a message entitled
"Re: Any Way to Force Sorting of Search Results Window to Al":

>On Wednesday, October 3, 2012, Rick Gordon  wrote:
>
>>Is there a to force the listing in a search results window to be
>>alphabetically sorted, preferably with Numbers Match by Value enabled?
>
>Would "Process Lines Containing" followed by a "Sort Lines" produce a result 
>closer to what you need? What are you trying to accomplish?
>
>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.
>
>--
>--
>You received this message because you are subscribed to the "BBEdit Talk" 
>discussion group on Google Groups.
>To post to this group, send email to bbedit@googlegroups.com
>To unsubscribe from this group, send email to
>bbedit+unsubscr...@googlegroups.com
>For more options, visit this group at
><http://groups.google.com/group/bbedit?hl=en>
>If you have a feature request or would like to report a problem, please email 
>"supp...@barebones.com" rather than posting to the group.
>Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>


-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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





RE: Learning GREP - need help with one example

2013-03-05 Thread Rick Gordon
Title: RE: Learning GREP - need help with one
example


(https*://\S+/)(\S+?)(/)(?:(?=[>
\t\r])|(?=[[:punct:]])|(?=$))


Finds http or https

May be followed by space, tab, return, punctuation, or end of
line (even at end of doc with no return)

--

On 3/4/13 at 8:54 PM -0800, Scott wrote in a message
entitled
"Learning GREP - need help with one example":

Hi guys,

I am fascinated by the GREP capabilities
of BBEdit and have been trying to immerse myself in it. I am a
complete regex newbie, but I'm starting to understand some of the
concepts. However t I need some more practical examples in order to
figure it out.

Here's my latest problem.

Let's say I have a URL like
this:

http://www.mysite.com/section/subsection/Z3245678a34/

And I want to turn it into an html link
with the last element as the highlighted text:

">Z3245678a34

What would I use as the search &
replace values?

I hope to learn how to find substrings
between certain characters (like "/"). The
"Z3245678a34" could be anything.
"Unicorn123", "mypage","
learningisfun4all".

Any help would be much appreciated. Also
if anyone knows of some good sites with lots of GREP examples, I'd be
grateful.

thanks

SB

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


-- 

___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com





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


RE: Learning GREP - need help with one example

2013-03-05 Thread Rick Gordon
Title: RE: Learning GREP - need help with one
example


Actually, it would be better to set the last slash to be optional
(as below), in case the URL doesn't end in a slash. It would would
require a bit more of a tweak to handle query URLs with ?, &., and
=., but totally doable:

(https*://\S+/)(\S+?)(/?)(?:(?=[>
\t\r])|(?=[[:punct:]])|(?=$))



--

On 3/5/13 at 10:07 AM -0800, Rick Gordon wrote in a message
entitled
"Re: Learning GREP - need help with one example":

(https*://\S+/)(\S+?)(/)(?:(?=[>
\t\r])|(?=[[:punct:]])|(?=$))


Finds http or https

May be followed by space, tab, return,
punctuation, or end of line (even at end of doc with no
return)

--

On 3/4/13 at 8:54 PM -0800, Scott wrote
in a message entitled
"Learning GREP - need help with one
example":

Hi guys,

I am fascinated by the GREP capabilities
of BBEdit and have been trying to immerse myself in it. I am a
complete regex newbie, but I'm starting to understand some of the
concepts. However t I need some more practical examples in order to
figure it out.

Here's my latest problem.

Let's say I have a URL like
this:

http://www.mysite.com/section/subsection/Z3245678a34/

And I want to turn it into an html link
with the last element as the highlighted text:

">Z3245678a34

What would I use as the search &
replace values?

I hope to learn how to find substrings
between certain characters (like "/"). The
"Z3245678a34" could be anything.
"Unicorn123", "mypage","
learningisfun4all".

Any help would be much appreciated. Also
if anyone knows of some good sites with lots of GREP examples, I'd be
grateful.

thanks

SB

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



--
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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


-- 

___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com





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


Re: Learning GREP - need help with one example

2013-03-05 Thread Rick Gordon
Title: Re: Learning GREP - need help with one
example


That turns your original example
(http://www.mysite.com/section/subsection/Z3245678a34/)
into:

">Z3245678a34a>

& is a capture for the whole original _expression_ -- not what
you want.

I also see that my own suggestion was flawed. The [[:punct:]]
part is not working right (on mine or yours) and needs
reconsideration, but I'm in the middle of other stuff right now.

Also, the \r should be \n for BBEdit, but actually is not
necessary at all, because the $ part takes care of it anyway.

--

On 3/5/13 at 3:16 PM -0600, Christopher Stone wrote in a message
entitled
"Re: Learning GREP - need help with one example":

On Mar 05, 2013, at 12:17, Rick Gordon
 wrote:
> Actually, it would be better to set the last slash to be optional
(as below), in case the URL doesn't end in a slash. It would would
require a bit more of a tweak to handle query URLs with ?, &., and
=., but totally doable:
>
> (https*://\S+/)(\S+?)(/?)(?:(?=[>
\t\r])|(?=[[:punct:]])|(?=$))
> 
__

Hey Rick,

That's a pretty good pattern.  I've simplified it a bit though -
would you scope it out and see if you can find hiccoughs?

https?://\S+/(\S+?)/?(?:(?=[[:punct:]
>\t\r]|$))



Thanks.

--
Best Regards,
Chris


-- 

___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com





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


Re: Learning GREP - need help with one example

2013-03-05 Thread Rick Gordon
Title: Re: Learning GREP - need help with one
example


Here's my (hopefully) tweaked and corrected version:

FIND:
(https*://\S+/)(\S+?[^[:punct:]])(/?)(?:(?=[>
\t])|(?=[[:punct:]]|$))

CHANGE TO:


Changes (in bold) include adding [^[:punct:]] at the end
of the second capture, so that following punctuation is handled as
intended. And I removed the \r, which should have been
\n, even if it were there, from (?=[> \t]) , since
the $ hnadles the instance, anyway.


--

On 3/5/13 at 1:50 PM -0800, Rick Gordon wrote in a message
entitled
"Re: Learning GREP - need help with one example":

That turns your original example
(http://www.mysite.com/section/subsection/Z3245678a34/)
into:

">Z3245678a34a>

& is a capture for the whole original
_expression_ -- not what you want.

I also see that my own suggestion was
flawed. The [[:punct:]] part is not working right (on mine or yours)
and needs reconsideration, but I'm in the middle of other stuff right
now.

Also, the \r should be \n for BBEdit, but
actually is not necessary at all, because the $ part takes care of it
anyway.


-- 

___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com





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


Re: Learning GREP - need help with one example

2013-03-05 Thread Rick Gordon
Title: Re: Learning GREP - need help with one
example


Hey, Chris,

You're right. It turned out that I had run it on an
already-modified test string.

--

On 3/5/13 at 4:24 PM -0600, Christopher Stone wrote in a message
entitled
"Re: Learning GREP - need help with one example":

Huh?  The O.P. asked to transform
this:

http://www.mysite.com/section/subsection/Z3245678a34/

Into this:

http://www.mysite.com/section/subsection/Z3245678a34/">Z3245678a34

My regex does precisely
that.

-- 

_______

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com





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


RE: BBEdit RegEx Cheat-Sheet

2013-03-27 Thread Rick Gordon
Title: RE: BBEdit RegEx Cheat-Sheet


A couple more that work in BBEdit:

\U  Makes all
text to the right uppercase.
\u  Makes only
the first character to the right uppercase.
\L  Makes all
text to the right lowercase.
\l  Makes only
the first character to the right lower case. (Note it's a lowercase
letter L.)

Rick Gordon

--

On 3/25/13 at 7:59 AM -0500, Christopher Stone wrote in a message
entitled
"BBEdit RegEx Cheat-Sheet":

Hey Folks,

From time to time I need to double-check
a reference when writing regex, so I've made my own
cheat-sheet.

I've got it in Typinator, so I can type
an abbreviation and have it instantly in whatever app I'm working
in.

Perhaps someone else will find it of
use.

I'm also interested in other people's
cheat-sheets of all kinds - Perl, Python, Ruby, Shell -
whatever.

--
Best Regards,
Chris

-- 

_______

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com





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


RE: BBEdit RegEx Cheat-Sheet

2013-03-27 Thread Rick Gordon
Title: RE: BBEdit RegEx Cheat-Sheet


And one more:

\E  Acts as an
end delimiter to stop the effect of prior case-folding strings.

This and the others are meant to appear before captured groups
(\1, \2, etc.)

For instance:

FIND:
   
(first) (second)

CHANGE TO:
   
\U\1\2
   
    will
result in FIRST SECOND

BUT CHANGE TO:
   
\U\1\E\2
   
    will
result in FIRST second

--

On 3/27/13 at 3:34 AM -0700, Rick Gordon wrote in a message
entitled
"Re: BBEdit RegEx Cheat-Sheet":

A couple more that work in
BBEdit:

\U 
Makes all text to the right uppercase.
\u 
Makes only the first character to the right
uppercase.
\L 
Makes all text to the right lowercase.
\l 
Makes only the first character to the right lower case. (Note
it's a lowercase letter L.)

Rick Gordon

--

On 3/25/13 at 7:59 AM -0500, Christopher
Stone wrote in a message entitled
"BBEdit RegEx
Cheat-Sheet":

Hey Folks,

From time to time I need to double-check
a reference when writing regex, so I've made my own
cheat-sheet.

I've got it in Typinator, so I can type
an abbreviation and have it instantly in whatever app I'm working
in.

Perhaps someone else will find it of
use.

I'm also interested in other people's
cheat-sheets of all kinds - Perl, Python, Ruby, Shell -
whatever.

--
Best Regards,
Chris


--
_______

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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


-- 

___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com





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


RE: Using BBEdit to make an ePub

2013-04-08 Thread Rick Gordon
Title: RE: Using BBEdit to make an
ePub


This AppleScript is commonly used:
http://code.google.com/p/epub-applescripts/downloads/detail?name=ePub_Zip_1.0.3.zip&

It's really this:

zip -X MyNewEbook.epub mimetype; zip -rg MyNewEbook.epub META-INF
-x \*.DS_Store; zip -rg MyNewEbook.epub OEBPS -x \*.DS_Store

An explanation is here:

http://www.webvivant.com/zipping-epub-files.html

ERROR: [top level]: Length of the first
filename in archive must be 8, but was 9

    The
above should handle this.

INFO: Validating against EPUB version
3.0

    This
says you're validating againsted EPUB 3 rather than EPUB 2. Different
requirements and different potential errors. That's set by the
 version

ERROR: OEBPS/package.opf(8,71): The
prefix "opf" for attribute "opf:file-as"
associated with an element type "dc:creator" is not
bound.
ERROR: OEBPS/package.opf: The prefix
"opf" for attribute "opf:file-as" associated with
an element type "dc:creator" is not bound.

    Delete
Delete opf:file-as="title" (or whatever)

WARNING: [top level]: item
(OEBPS/references.html) exists in the zip file, but is not declared in
the OPF file

   
References.html is not declared in package.opf.

--

On 4/8/13 at 2:24 PM -0700, Christopher Finazzo wrote in a
message entitled
"Using BBEdit to make an ePub":

Now that BBEdit can open and edit an ePub
file directly, I decided to give it a try and use it to make an eBook.
Writing the HTML and transforming the content has been fine for the
most part, but I can't seem to figure out how to generate the actual
.epub file. I know that under the covers it's a zip archive, but the
files have to go into it in a specific order. I used the following
command to do most of this work:

zip -0 -X test.zip mimetype
zip -r test.epub META-INF/
zip -r test.epub OEBPS/
zip -d ePub.epub `unzip -l ePub.epub |
grep .DS_Store | awk '{print $4}'`

It looks like everything should work, but
epubcheck reports errors such as:

ERROR: [top level]: Length of the first
filename in archive must be 8, but was 9
INFO: Validating against EPUB version
3.0
ERROR: OEBPS/package.opf(8,71): The
prefix "opf" for attribute "opf:file-as"
associated with an element type "dc:creator" is not
bound.
ERROR: OEBPS/package.opf: The prefix
"opf" for attribute "opf:file-as" associated with
an element type "dc:creator" is not bound.
WARNING: [top level]: item
(OEBPS/references.html) exists in the zip file, but is not declared in
the OPF file

Does anyone have experience doing this or
know the proper way to zip an epub and refer to files in the package
document?

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


-- 

___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com





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


Re: Using BBEdit to make an ePub

2013-04-08 Thread Rick Gordon
Title: Re: Using BBEdit to make an
ePub


The frustrating thing I find about Sigil is that if you make any
edit in the Book View, it will rewrite your code. So if you use Sigil,
and you don't want it rewriting your code in very frustrating ways,
only edit in Code View.

Rick Gordon

--

On 4/9/13 at 5:30 PM +1200, Tom Robinson wrote in a message
entitled
"Re: Using BBEdit to make an ePub":

I find BBEdit and Sigil a great
combination:  I can edit the markup directly while letting Sigil
worry about the packaging:

http://code.google.com/p/sigil/

Sent from my iPhone

On 9/04/2013, at 9:24, Christopher Finazzo <chris.fina...@gmail.com>
wrote:
Now that BBEdit can open and edit an ePub
file directly, I decided to give it a try and use it to make an eBook.
Writing the HTML and transforming the content has been fine for the
most part, but I can't seem to figure out how to generate the actual
.epub file. I know that under the covers it's a zip archive, but the
files have to go into it in a specific order. I used the following
command to do most of this work:

zip -0 -X test.zip mimetype
zip -r test.epub META-INF/
zip -r test.epub OEBPS/
zip -d ePub.epub `unzip -l ePub.epub |
grep .DS_Store | awk '{print $4}'`

It looks like everything should work, but
epubcheck reports errors such as:

ERROR: [top level]: Length of the first
filename in archive must be 8, but was 9
INFO: Validating against EPUB version
3.0
ERROR: OEBPS/package.opf(8,71): The
prefix "opf" for attribute "opf:file-as"
associated with an element type "dc:creator" is not
bound.
ERROR: OEBPS/package.opf: The prefix
"opf" for attribute "opf:file-as" associated with
an element type "dc:creator" is not bound.
WARNING: [top level]: item
(OEBPS/references.html) exists in the zip file, but is not declared in
the OPF file

Does anyone have experience doing this or
know the proper way to zip an epub and refer to files in the package
document?

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


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


-- 

___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com





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


Re: BBEdit RegEx Cheat-Sheet

2013-04-09 Thread Rick Gordon
Chris,

The Dropbox link seems to have stopped functioning. Do you still have it 
online? I had recommended the link to a Regex group on Facebook. (Is that OK?)

Rick Gordon

--

On 3/27/13 at 2:09 PM -0500, Christopher Stone wrote in a message entitled
"Re: BBEdit RegEx Cheat-Sheet":

>Hey Folks,
>
>I made a few little changes base upon feedback, cleaned up the formatting a 
>bit, and added a little more explanation here and there.
>
>https://dl.dropbox.com/u/32860906/Developers/Bare%20Bones/%20RegEx%20Cheat-Sheet.txt
>
>I'm going to keep the primary document in my dropbox, and the above link 
>should be good henceforth.
>
>--
>Best Regards,
>Chris
>
>--
>--
>You received this message because you are subscribed to the
>"BBEdit Talk" discussion group on Google Groups.
>To post to this group, send email to bbedit@googlegroups.com
>To unsubscribe from this group, send email to
>bbedit+unsubscr...@googlegroups.com
>For more options, visit this group at
><http://groups.google.com/group/bbedit?hl=en>
>If you have a feature request or would like to report a problem,
>please email "supp...@barebones.com" rather than posting to the group.
>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.
>For more options, visit https://groups.google.com/groups/opt_out.


-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com

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




Re: Using BBEdit to make an ePub

2013-04-10 Thread Rick Gordon
Title: Re: Using BBEdit to make an
ePub


Cant say without seeing the OPF file. For sure, if you are saving
as EPUB 3, you need a nav document.

--

On 4/10/13 at 1:52 PM -0700, Christopher Finazzo wrote in a
message entitled
"Re: Using BBEdit to make an ePub":

I've run the command you suggested, but I
think there is still more work that I need to do. At this point,
epubcheck shows the following error types:

ERROR: OEBPS/package.opf(11,76): Item
property: nav is not defined for media type: text/html
ERROR: OEBPS/package.opf(12,63): element "item" not allowed
here; expected the element end-tag
ERROR: OEBPS/package.opf(14,63):
value of attribute "id" is invalid; must be an XML name
without colons
ERROR: OEBPS/package.opf(37,3): The
element type "item" must be terminated by the matching
end-tag "".
ERROR: [top level]: File
OEBPS/style.css is missing in the package.
ERROR: [top level]: File OEBPS/references.css is missing in the
package.

I should mention that
all of my content documents are HTML5 instead of
XHTML and that may be the cause of the errors related to the
package.opf file. As for not being able to find the css files, I'm a
bit stumped by that only because I've double checked the paths to
those files and they do in fact exist. If you want to look at the
complete source, it's on GitHub.

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


-- 

___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.com





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


Re: Ways to get SFTP files into Projects

2013-05-02 Thread Rick Gordon
Title: Re: Ways to get SFTP files into
Projects


I'm just dealing with this today too, so late to the party. But
how about an "Open As Project" button in the Open dialog, at
least for Open from FTP/SFTP Server?

Rick Gordon

--

On 2/15/13 at 9:11 PM -0600, Christopher Stone wrote in a message
entitled
"Re: Ways to get SFTP files into Projects":

On Feb 15, 2013, at 04:55, David Donachie
<stran...@teuton.org>
wrote:

BBEdit isn't too sanguine about adding
temp files to a project.



The odd thing is that the document path of Fetch's temp files (as
displayed at the top of the BBEdit window) is the SFTP path, and if
you drag that icon into a project then the project also reports it as
being a file at that SFTP location... till you close it, and then
suddenly the project reports the (now missing) temp file location
instead.


__

Hey David,

Yeah.  That's not exactly
intuitive.


Give the attached Applescript a
try...



That does indeed work, but usually I tend to have a file open already
and then decide I need it in a Project.



Good.  My ability to test was a bit
limited, so that's reassuring.

Any way to extract the URL from a
currently open Fetch tmp file (open in BBEdit) and then open it using
BBEdit's browser?



Not as far as I can see.  There
appears to be no way to acquire the 'File Path' from the front window,
and the UI inspector doesn't see the static text - so System Events
doesn't seem to be an option either.

Fetch is fairly scriptable, so
theoretically you could parse through the file names or urls of the
files in the front window.  Yeah, it's doable.

The script is looking for the BBEdit
window opened WITH Fetch to be frontmost in BBEdit.

It will verify that the editing session
is via Fetch and then use the file name to parse through the names of
the remote items in the front Fetch window.  If a match is made
it will grab the url of the remote item and pop-up a list of available
BBEdit Projects.  If you make a selection the remote file will be
added to that project.

It's not pretty, but it
works.

--
Best Regards,
Chris

---

try

  

  set continueBool to false

  

  tell application
"BBEdit"
    tell front project
window
  set _file
to its file as text
    end tell
  end tell

  

  if _file contains "Fetch
Temporary Folder:" then
    tell
application "Finder" to set fName to name of
(alias _file)

    

    tell
application "Fetch"
  tell
front window
   
set fileList to name of remote items

  
 

   
if fileList contains fName then
  set _url
to url of remote item fName
  set
continueBool to true
   
end if

  
 

  end
tell
    end tell

    

  end if

  

  if continueBool = true
then
    tell
application "BBEdit"

  

  #
Uncomment to close the editing window attached to Fetch.
  # close
front window

  

  set
projectList to name of project documents whose name ends with
"bbprojectd"
  set
_project to choose from list projectList with title
Č
   
"Project Document List" with prompt "Pick One:"
default items (item 1 of projectList) Č
   
with empty selection allowed without multiple selections allowed

  

  if
_project é false then
   
set _project to item 1 of _project
   
tell project document _project
  set index
of it's window to 1
   
  make new project item with properties
{URL:_url}
   
end tell
  end if

  

    end tell

    

  end if

  

on error e number n
  set e to e & return &
return & "Num: " & n
  tell me to set dDlg to display
dialog e with title "ERROR!" buttons
{"Cancel", "Copy", "OK"} default button
"OK"
  if button returned of dDlg =
"Copy" then set the clipboard to e
end try

---

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

Re: Using BBEdit to make an ePub

2013-05-06 Thread Rick Gordon
Title: Re: Using BBEdit to make an
ePub


The last two items in the manifest have no slash before the
closing angle bracket.

Throughout, you have hard breaks  at the end of every
line. That will screw up your formatting.

You should  search for all  and the return
following it, and replace it with a space.

Rick Gordon

--

On 5/6/13 at 8:28 AM -0700, Christopher Finazzo wrote in a
message entitled
"Re: Using BBEdit to make an ePub":

If you want to download the zip tool or
see the commands they used, it is can be found at this MobileRead forum thread.

On Monday, May 6, 2013 11:26:37 AM UTC-4, Christopher Finazzo
wrote:
Going back to this, I've actually found ePub Zip/Unzip to
be a helpful utility to make sure that everything is in the right
place. I've also installed Sigil to make sure that the finished book
passes both preflight and epubcheck. However, after doing this, a
zipped epub will still not open in Sigil, which reports the following
error:

"Unable to read OPF file. Line 41 Column 11 - Opening
and ending tag mismatch"

I've attached the file if you want to take a look. I
realize that I'm probably missing a tag somewhere, but it would help
to have someone else's eyes check it out.

In addition, I do find it odd that Sigil refuses to open
invalid ePub files. BBEdit handles this without a peep. Is Sigil
intended to be more of a finishing/packaging tool as opposed to an
application that allows you to work on a book from start to finish? In
my experience that seems to be the case...

On Wednesday, April 10, 2013 6:53:05 PM UTC-4, Rick Gordon wrote:
Cant say without seeing the OPF file. For sure, if you are
saving as EPUB 3, you need a nav document.

--

On 4/10/13 at 1:52 PM -0700, Christopher Finazzo wrote in
a message entitled
"Re: Using BBEdit to make an ePub":

I've run the command you suggested, but I
think there is still more work that I need to do. At this point,
epubcheck shows the following error types:






ERROR: OEBPS/package.opf(11,76): Item property: nav is
not defined for media type: text/html
ERROR: OEBPS/package.opf(12,63): element "item" not allowed
here; expected the element end-tag

ERROR: OEBPS/package.opf(14,63): value of attribute
"id" is invalid; must be an XML name without colons

ERROR: OEBPS/package.opf(37,3): The element type
"item" must be terminated by the matching end-tag
"".

ERROR: [top level]: File OEBPS/style.css is missing in
the package.
ERROR: [top level]: File OEBPS/references.css is missing in the
package.


I should mention that all of my
content documents are HTML5 instead of XHTML and
that may be the cause of the errors related to the package.opf file.
As for not being able to find the css files, I'm a bit stumped by that
only because I've double checked the paths to those files and they do
in fact exist. If you want to look at the complete source,
it's on GitHub.

--
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbe...@googlegroups.com
To unsubscribe from this group, send email to
bbedit+un...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem,
please email "sup...@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+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 




--
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.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.
 
 


-- 

___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.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

RE: ePub files in a BBEdit Project?

2013-05-20 Thread Rick Gordon
Drag the EPUB file onto the BBEdit 10.x icon. It will open as a project.

--

On 5/19/13 at 9:03 AM -0700, will...@wlbentley.com wrote in a message entitled
"ePub files in a BBEdit Project?":

>Hello all,
>
>I am trying to create a BBEdit Project that will contain an ePub file I'm 
>working on.
>
>I can add the ePub file to the Project (it shows up in the sidebar) but is not 
>openable/editable.
>
>I can open the ePub file directly as a file, but not include it in a project.
>
>Is this not possible? Is it planned?

-- 
_______

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.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.




Re: ePub files in a BBEdit Project?

2013-05-29 Thread Rick Gordon
Title: Re: ePub files in a BBEdit
Project?


Point taken.

If you select all of the text-based files listed in the sidebar
if the EPUB file browser, and choose Open, then you can multi-file
search and replace and I think pretty much anything else you could do
with a project, beside add and remove files, can be done.

--

On 5/25/13 at 3:40 AM -0700, will...@wlbentley.com wrote in a
message entitled
"Re: ePub files in a BBEdit Project?":

When I do that in BBEdit 10.5.3, it opens
a disk browser, not a Project.

Useful, but not quite a saveable
Project.

I guess that's not doable for some
reason?

Thanks.

On Monday, May 20, 2013 4:00:41 AM UTC-7, Rick Gordon wrote:
Drag the EPUB file onto the BBEdit 10.x icon. It will open
as a project.

--

On 5/19/13 at 9:03 AM -0700, wil...@wlbentley.com wrote in a message
entitled
"ePub files in a BBEdit Project?":

>Hello all,
>
>I am trying to create a BBEdit Project that will contain an ePub
file I'm working on.
>
>I can add the ePub file to the Project (it shows up in the
sidebar) but is not openable/editable.
>
>I can open the ePub file directly as a file, but not include it in
a project.
>
>Is this not possible? Is it planned?

--
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.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.
 
 


-- 

___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.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.
 
 


RE: Epubs, html, and smart quotes

2013-07-09 Thread Rick Gordon
Maybe educate them first, and then do a regex like the following repeatedly 
until it fails:

FIND:
(<[^>]*)[“”]([^>]*>)

CHANGE TO:
\1"\2

Rick Gordon

--

On 7/9/13 at 8:51 AM -0700, Jon wrote in a message entitled
"Epubs, html, and smart quotes":

> I'm editing an epub with the current release of BBEdit. I'd like to educate 
> all of the quotes in the text, but I don't want to educate all of the quotes 
> in the accompanying HTML. Any solutions? Thanks.

-- 
_______

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.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.




Re: Searching for files of a particular line break type

2013-07-29 Thread Rick Gordon
Wouldn't that change multiple returns to a single return, as well, though?

--

On 7/30/13 at 12:28 AM +0100, John Delacour wrote in a message entitled
"Re: Searching for files of a particular line break type":

>On 29/7/13 at 21:06, rar...@banet.net (Robert A. Rosenberg) wrote:
>
>> One warning. If you want to change CR to LF (as in this suggestion),
>> you have to watch out for the CR+LF Line ending since just changing CR
>> to LF will make this LF+LF.
>
>This will change _any_ line ending to \n :
>
>perl -pi.bak -e "s~[\r\n]+~\n~g" *
>
>
>JD

-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.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.




FEATURE REQUEST: Regex Subtraction and Intersection

2014-03-04 Thread Rick Gordon
Is it possible that regex subtraction and intersection, as included 
experimentally in Perl 5.18, and available in NET and Java, be included in 
BBEdit? It would greatly facilitate certain searches.

http://www.regular-expressions.info/charclasssubtract.html
http://www.regular-expressions.info/charclassintersect.html
http://www.regular-expressions.info/xmlcharclass.html
-- 
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

WWW:   http://www.shelterpub.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.


Best way to cat multiple files to a BBEdit window ??

2014-04-24 Thread Rick Gordon
What's the easiest way to get the concatenated standard output of a 
group of text files to be sent to a BBEdit window?


--
___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

PHONE: 415-663-8652
EMAIL: r...@rickgordon.com <mailto:r...@rickgordon.com>
WWW: http://www.shelterpub.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.


Re: Best way to cat multiple files to a BBEdit window ??

2014-04-24 Thread Rick Gordon

Thanks, Rod,

That general pattern of piping to the bbedit command will have all sorts 
of uses to me.



Rod Buchanan <mailto:r...@kdsi.com>
April 24, 2014 1:44 PM

cat file ... | bbedit

Rick Gordon <mailto:li...@rickgordon.com>
April 24, 2014 1:42 PM
What's the easiest way to get the concatenated standard output of a 
group of text files to be sent to a BBEdit window?



___

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___

PHONE: 415-663-8652
EMAIL: r...@rickgordon.com <mailto:r...@rickgordon.com>
WWW: http://www.shelterpub.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.


Re: Need help with GREP search

2014-04-26 Thread Rick Gordon

Try this:
^ +--+.+\r([^-]+\r){4}
...and change the number in the braces.

Rick Gordon

-

David wrote:

I work with my airline's crew scheduling department. I want to be able
to search our trips to find which ones have day with x number of flight
legs. Here is a sample, and the formatting is always consistent:

CREW POSITIONS ARE: 1 CREW

0630 PHX 23:55 BOS 07:49 04:54 13:11 1 01 00 00 01 00 00 1
 (04:54,06:09)
DH 2131 BOS 21:00 DCA 22:35 01:35 12:15 2 00 00 00 01 00 00 1
 (00:00,02:35)
1801 DCA 10:50 CLT 12:14 01:24 2:06 3 01 00 00 01 00 00 1
2017 CLT 14:20 JFK 16:09 01:49 0:50 * 3 01 00 00 01 00 00 1
1798 JFK 16:59 CLT 19:12 02:13 0:53 * 3 01 00 00 01 00 00 1
1798 CLT 20:05 PHL 21:42 01:37 17:33 3 01 00 00 01 00 00 1
 (07:03,11:52)
0723 PHL 15:15 BOS 16:35 01:20 2:40 4 01 00 00 01 00 00 1
0586 BOS 19:15 PHX 21:50 05:35 (071:10) 4 01 00 00 01 00 00 1
(06:55,10:35)

Each day is separated by the row of hyphens.

For example, day 3 has 4 legs.

Can someone help me craft (or just create it for me...) a GREP search
that allows me to search for days with x number of legs? I can easily
change the "x" parameter in the GREP search.

--
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
<mailto:bbedit+unsubscr...@googlegroups.com>.
To post to this group, send email to bbedit@googlegroups.com
<mailto:bbedit@googlegroups.com>.


--
___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Re: Need help with GREP search

2014-04-26 Thread Rick Gordon

Or really. just:

^ +-+.+\r([^-]+\r){4}

...since I'm assuming that only the separator lines could have a hyphen, 
and that there are no hyphens (including negative numbers), that could 
appear in the other lines.


Rick Gordon

-----

Rick Gordon wrote:

Try this:
^ +--+.+\r([^-]+\r){4}
...and change the number in the braces.

Rick Gordon

-

David wrote:

I work with my airline's crew scheduling department. I want to be able
to search our trips to find which ones have day with x number of flight
legs. Here is a sample, and the formatting is always consistent:

CREW POSITIONS ARE: 1 CREW

0630 PHX 23:55 BOS 07:49 04:54 13:11 1 01 00 00 01 00 00 1
 (04:54,06:09)
DH 2131 BOS 21:00 DCA 22:35 01:35 12:15 2 00 00 00 01 00 00 1
 (00:00,02:35)
1801 DCA 10:50 CLT 12:14 01:24 2:06 3 01 00 00 01 00 00 1
2017 CLT 14:20 JFK 16:09 01:49 0:50 * 3 01 00 00 01 00 00 1
1798 JFK 16:59 CLT 19:12 02:13 0:53 * 3 01 00 00 01 00 00 1
1798 CLT 20:05 PHL 21:42 01:37 17:33 3 01 00 00 01 00 00 1
 (07:03,11:52)
0723 PHL 15:15 BOS 16:35 01:20 2:40 4 01 00 00 01 00 00 1
0586 BOS 19:15 PHX 21:50 05:35 (071:10) 4 01 00 00 01 00 00 1
(06:55,10:35)

Each day is separated by the row of hyphens.

For example, day 3 has 4 legs.

Can someone help me craft (or just create it for me...) a GREP search
that allows me to search for days with x number of legs? I can easily
change the "x" parameter in the GREP search.

--
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
<mailto:bbedit+unsubscr...@googlegroups.com>.
To post to this group, send email to bbedit@googlegroups.com
<mailto:bbedit@googlegroups.com>.




--
___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Re: Need help with GREP search

2014-04-26 Thread Rick Gordon

I think that perhaps my solution wouldn't work if your target were in the first 
group before the first separator.

Rick Gordon

------

Rick Gordon wrote:

Or really. just:

^ +-+.+\r([^-]+\r){4}

...since I'm assuming that only the separator lines could have a 
hyphen, and that there are no hyphens (including negative numbers), 
that could appear in the other lines.


Rick Gordon

-----

Rick Gordon wrote:

Try this:
^ +--+.+\r([^-]+\r){4}
...and change the number in the braces.

Rick Gordon

-

David wrote:

I work with my airline's crew scheduling department. I want to be able
to search our trips to find which ones have day with x number of flight
legs. Here is a sample, and the formatting is always consistent:

CREW POSITIONS ARE: 1 CREW

0630 PHX 23:55 BOS 07:49 04:54 13:11 1 01 00 00 01 00 00 1
 (04:54,06:09)
DH 2131 BOS 21:00 DCA 22:35 01:35 12:15 2 00 00 00 01 00 00 1
 (00:00,02:35)
1801 DCA 10:50 CLT 12:14 01:24 2:06 3 01 00 00 01 00 00 1
2017 CLT 14:20 JFK 16:09 01:49 0:50 * 3 01 00 00 01 00 00 1
1798 JFK 16:59 CLT 19:12 02:13 0:53 * 3 01 00 00 01 00 00 1
1798 CLT 20:05 PHL 21:42 01:37 17:33 3 01 00 00 01 00 00 1
 (07:03,11:52)
0723 PHL 15:15 BOS 16:35 01:20 2:40 4 01 00 00 01 00 00 1
0586 BOS 19:15 PHX 21:50 05:35 (071:10) 4 01 00 00 01 00 00 1
(06:55,10:35)

Each day is separated by the row of hyphens.

For example, day 3 has 4 legs.

Can someone help me craft (or just create it for me...) a GREP search
that allows me to search for days with x number of legs? I can easily
change the "x" parameter in the GREP search.

--
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
<mailto:bbedit+unsubscr...@googlegroups.com>.
To post to this group, send email to bbedit@googlegroups.com
<mailto: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: <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.


Re: Need help with GREP search

2014-04-26 Thread Rick Gordon

This would work, though:

(?:(?:^ +-+.+\r)|(?:^\s*\r))([^-]+\r){4}

Rick Gordon

-

Rick Gordon wrote:
I think that perhaps my solution wouldn't work if your target were in 
the first group before the first separator.


Rick Gordon

------

Rick Gordon wrote:

Or really. just:

^ +-+.+\r([^-]+\r){4}

...since I'm assuming that only the separator lines could have a 
hyphen, and that there are no hyphens (including negative numbers), 
that could appear in the other lines.


Rick Gordon

-----

Rick Gordon wrote:

Try this:
^ +--+.+\r([^-]+\r){4}
...and change the number in the braces.

Rick Gordon

-

David wrote:

I work with my airline's crew scheduling department. I want to be able
to search our trips to find which ones have day with x number of 
flight

legs. Here is a sample, and the formatting is always consistent:

CREW POSITIONS ARE: 1 CREW

0630 PHX 23:55 BOS 07:49 04:54 13:11 1 01 00 00 01 00 00 1
 (04:54,06:09)
DH 2131 BOS 21:00 DCA 22:35 01:35 12:15 2 00 00 00 01 00 00 1
 (00:00,02:35)
1801 DCA 10:50 CLT 12:14 01:24 2:06 3 01 00 00 01 00 00 1
2017 CLT 14:20 JFK 16:09 01:49 0:50 * 3 01 00 00 01 00 00 1
1798 JFK 16:59 CLT 19:12 02:13 0:53 * 3 01 00 00 01 00 00 1
1798 CLT 20:05 PHL 21:42 01:37 17:33 3 01 00 00 01 00 00 1
 (07:03,11:52)
0723 PHL 15:15 BOS 16:35 01:20 2:40 4 01 00 00 01 00 00 1
0586 BOS 19:15 PHX 21:50 05:35 (071:10) 4 01 00 00 01 00 00 1
(06:55,10:35)

Each day is separated by the row of hyphens.

For example, day 3 has 4 legs.

Can someone help me craft (or just create it for me...) a GREP search
that allows me to search for days with x number of legs? I can easily
change the "x" parameter in the GREP search.

--
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
<mailto:bbedit+unsubscr...@googlegroups.com>.
To post to this group, send email to bbedit@googlegroups.com
<mailto: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: <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.


Opening Text Factory as Editable XML

2014-04-28 Thread Rick Gordon
Is there a way, directly in BBEdit, to open a Text Factory file as 
editable XML without going through the machinations of opening it in 
TextEdit and copying the code, or changing the extension? A modifier 
key, perhaps?



___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Re: Opening Text Factory as Editable XML

2014-04-28 Thread Rick Gordon
This question came to mind when I had a long list of hexColor/rgbColor 
pairs set up, and wanted to change the whole bunch of them in a CSS file.


So I set up 2 Replace Alls in a new text tactory and then observed the 
XML, and saw it would be easy to turn my list of color pairs into the 
needed XML to build the whole text factory automatically.


So I regexed my list and copied the result into the text factory which 
was open as text in TextEdit.


It just seemed silly to have to detour to TextEdit to do that.

Rick Gordon

--

Patrick Woolsey wrote:

On 4/28/14 at 5:28 PM, li...@rickgordon.com (Rick Gordon) wrote:


Is there a way, directly in BBEdit, to open a Text Factory file as
editable XML without going through the machinations of opening it in
TextEdit and copying the code, or changing the extension? A modifier
key, perhaps?


Nope, sorry; there are no user-serviceable parts inside. :-)

If however you have some particular need which text factories don't
currently handle, may I suggest you send an inquiry to support (via the
usual ) so we can offer advice and/or log a request.


Regards,

Patrick Woolsey
==
Bare Bones Software, Inc. <http://www.barebones.com/>



--
___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Re: Open new file in the project window.

2014-06-02 Thread Rick Gordon

Command-Shift-N will open a new untitled document in a new window.


On 6/2/14 1:26 PM, "Rick Yentzer" wrote:


Normally, when I create a new file, I want it to open within the current
project window I have open.
I don't want it to open in a separate window.
Is there an expert preference or another work around to create a new
file or folder in the current project window?

I know I can right click the project folder but I try to stay away from
the mouse as much as possible, so a keyboard centric solution is what
I'm after.

I would also like a new folder in the same manner.

I searched the archives and didn't see a solution.

If not, is it possible to assign a keyboard shortcut to the gear options
in the file browser?

Thanks,
Rick

--
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
<mailto:bbedit+unsubscr...@googlegroups.com>.
To post to this group, send email to bbedit@googlegroups.com
<mailto:bbedit@googlegroups.com>.



___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Any Way to Save Find All Results with Interface?

2014-07-15 Thread Rick Gordon
Is there any way to save the results from a Find All page so that, when 
reopened, it will look like and respond like original Find All page, 
rather than just a text file?


___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Re: Any Way to Save Find All Results with Interface?

2014-07-16 Thread Rick Gordon
Right now, what I was doing was I had gone through a fairly lengthy 
selection/filtering process on the PHP files in a WordPress 
installation, and was trying to isolate places where I had made edits 
and commented an edit signature.


As I've dealt with some core files, I need to keep a checklist to avoid 
losing those edits when a WordPress update comes along.


So I did a search and exported it. Setting up the search is not hard; 
the harder part is hand-picking the files to check. I understand that 
there's nothing that I couldn't build into a saved search, and already 
did a roughly filtered one.


Rick Gordon


On 7/16/14 2:19 AM, "G. T. Stresen-Reuter" wrote:


Not that I'm aware of, but you can save searches. I know that's not exactly the 
same thing but if you can describe what you will be using those results for, 
maybe we can suggest alternatives that work equally well?

Ted

On Jul 16, 2014, at 5:27 AM, Rick Gordon  wrote:


Is there any way to save the results from a Find All page so that, when 
reopened, it will look like and respond like original Find All page, rather 
than just a text file?

_______
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.





___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Re: Any Way to Save Find All Results with Interface?

2014-07-17 Thread Rick Gordon
Thanks, Donna and all.

As I can't get into all the info on creating a plugin at this moment 
(and if this being OT to BBEdit), can you comment on the efficacy of 
plugin hooks vs. modifying functions.php?

Thanks.

Rick Gordon



   	   
   	Donna McMaster  
  July 17, 2014 
1:48 PM
  On Wednesday, 
July 16, 2014 6:30:55 AM UTC-7, Gustave Stresen-Reuter wrote:Another
 recommendation to avoid modifying core files. In addition to child 
themes, as Greg Raven suggests, there are a ton of hooks (actions and 
filters) that enable you to change WordPress behavior and or output 
without touching the core files. See 
http://codex.wordpress.org/Plugin_API/Hooks for more details. Donna



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

  
   	   
   	G. T. Stresen-Reuter  
  July 16, 2014 
6:30 AM
  Understood. You
 might consider using BBEdit's Find Differences command. It allows you 
to search a folder of files and compare them to another folder of files 
and shows you the differences between them.So, when a new 
version of WP comes out, you download it and compare it to your version 
using Find Differences and then apply your changes as needed.And
 from my experience you can do pretty much anything in WP without 
modifying the core files, might be something worth looking into to 
minimize the possibility of error in your situation.Good luck!Ted
   	   
   	Rick Gordon  
  July 16, 2014 
2:54 AM
  Right now, what I was doing was
 I had gone through a fairly lengthy 
selection/filtering process on the PHP files in a WordPress 
installation, and was trying to isolate places where I had made edits 
and commented an edit signature.

As I've dealt with some core files, I need to keep a checklist to 
avoid 
losing those edits when a WordPress update comes along.

So I did a search and exported it. Setting up the search is not 
hard; 
the harder part is hand-picking the files to check. I understand that 
there's nothing that I couldn't build into a saved search, and already 
did a roughly filtered one.

Rick Gordon


On 7/16/14 2:19 AM, "G. T. Stresen-Reuter" wrote:



___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.com

   	   
   	G. T. Stresen-Reuter  
  July 16, 2014 
2:19 AM
  Not that I'm aware of, but
 you can save searches. I know that's not exactly the same thing but if 
you can describe what you will be using those results for, maybe we can 
suggest alternatives that work equally well?Ted
   	   
   	Rick Gordon  
  July 15, 2014 
8:27 PM
  Is there any way to save the 
results from a Find All page so that, when 
reopened, it will look like and respond like original Find All page, 
rather than just a text file?

___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.com





___



RICK GORDON



EMERALD VALLEY GRAPHICS AND CONSULTING


___



WWW: http://www.shelterpub.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.


Re: Any Way to Save Find All Results with Interface?

2014-07-17 Thread Rick Gordon
Apologies for forgetting to 
trim my last post.




-- 
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: Any Way to Save Find All Results with Interface?

2014-07-17 Thread Rick Gordon
To at least start to answer my 
own question: http://tommcfarlin.com/functions-php-vs-plugin-who-wins/



   	   
   	Rick Gordon  
  July 17, 2014 
2:36 PM
  

Thanks, Donna and all.

As I can't get into all the info on creating a plugin at this moment 
(and if this being OT to BBEdit), can you comment on the efficacy of 
plugin hooks vs. modifying functions.php?

Thanks.

Rick Gordon
  




___



RICK GORDON



EMERALD VALLEY GRAPHICS AND CONSULTING


___



WWW: http://www.shelterpub.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.


Modifying Double-Click Behavior

2014-08-08 Thread Rick Gordon

Is there a setting to modify double-click behavior so that an underscore
 would act as a word delimiter?
  

___



RICK GORDON



EMERALD VALLEY GRAPHICS AND CONSULTING


___



WWW: http://www.shelterpub.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.


Re: Modifying Double-Click Behavior

2014-08-08 Thread Rick Gordon

(Sorry for the previous HTML-formatted message.)

Is there a setting to modify double-click behavior so that an underscore 
would act as a word delimiter?


___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Re: Tidy Retired

2014-10-27 Thread Rick Gordon
Actually, I believe that an inline block element followed by a return 
will interpret that as a space, so that something like:


Image_1
Image_2

... would have a space between them, while ...

Image_1style="display:inline-block">Image_2


... would not.

Rick Gordon

-
On 10/27/14 12:42 PM, Ted Stresen-Reuter wrote:

On Oct 27, 2014, at 4:57 PM, Andy Knasinski  wrote:

It's not exactly the same, I suppose, but it should be good enough. Remember 
that white space between elements in HTML should not impact the rendered 
display (contrary to behavior in prior versions of some browsers... methinks my 
age is showing).

_______
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Re: How to change a TOC with text factories (or AppleScript or RegEx)?

2014-12-08 Thread Rick Gordon

Try this:

FIND (grep):
^\s*(.+) *\r\s*(\d+[0-9ms ]+) *$

REPLACE WITH:
\1\t\2

Rick Gordon

-
On 12/8/14 12:03 AM, Vlad Ghitulescu wrote:

Hello!


Copying and pasting the TOC of the "Up and Running with AppleScript 
<http://www.lynda.com/AppleScript-tutorials/Up-Running-AppleScript/158309-2.html>“ 
- tutorial bei Lynda.com <http://Lynda.com> leads to this:



_______
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Re: How to change a TOC with text factories (or AppleScript or RegEx)?

2014-12-08 Thread Rick Gordon

FIND (grep):
^means: beginning of paragraph
\s* means: any number (or none) of whitespace characters
(.+) means: The 1st string to capture is any number of any character (up 
until what's next)

 *\r means optionally any number of spaces (or none), followed by a return
\s* means: any number (or none) of whitespace characters)
(\d+[0-9ms ]+) means The 2nd string to capture is 1 or more digits 
followed any number of characters in the set of 0-9, "m", "s", or a space

 *$ means any number (or none) of spaces, up to the end of the line

REPLACE WITH:
\1 means the first captured string
\t means a tab character
\2 means the 2nd captured string

Yes. It's such a major part of BBEdit's power; you should learn it 
before AppleScript (or at least learn it, AppleScript or no).


Rick Gordon

-
On 12/8/14 12:25 AM, Vlad Ghitulescu wrote:

Hi, Rick!


It works like magic! Thanks!
It’s the 4th time I think that RegEx did it… I should probably learn this 
before AppleScript :-)

Thanks again!


Regards,
Vlad



Am 08.12.2014 um 09:18 schrieb Rick Gordon:

Try this:

FIND (grep):
^\s*(.+) *\r\s*(\d+[0-9ms ]+) *$

REPLACE WITH:
\1\t\2

Rick Gordon

-
On 12/8/14 12:03 AM, Vlad Ghitulescu wrote:

Hello!


Copying and pasting the TOC of the "Up and Running with 
AppleScript<http://www.lynda.com/AppleScript-tutorials/Up-Running-AppleScript/158309-2.html>“
 - tutorial bei Lynda.com<http://Lynda.com>  leads to this:


___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.





___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Re: How to change a TOC with text factories (or AppleScript or RegEx)?

2014-12-08 Thread Rick Gordon
Yes, just add an h into the set between the square brackets (order 
really doesn't matter):


(\d+[0-9hms ]+)

Rick Gordon

-
On 12/8/14 2:18 AM, Vlad Ghitulescu wrote:

Thanks, Rick!
Now I understand also why the script just didn’t work with a longer than an 
hour chapter (1h 24m). I must extend the „m“ and „s“ with a „h“.

Ok, than RegEx is one up, AppleScript one down! ;-)

Thanks again!


Regards,
Vlad

___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Re: another TOC-regex related question

2014-12-14 Thread Rick Gordon
To my knowledge, you could not do this with regex alone, but it would be 
easy to do in any scripting language. (I'd use AppleScript, but only 
because I know it reasonably well, so it's my go-to language.) But it 
should be easy in Perl, Python, or any of the other likely options, as well.


Rick Gordon

-
On 12/14/14 8:32 PM, Vlad Ghitulescu wrote:
I have the TOC well formatted :-) now and I’m searching for a regex to 
number each tutorial in every chapter.

My TOC looks like this now:

—

1. What's New with Joomla! 3 Templates12m 9s
Installing the starting state exercise files6m 17s
Exploring template changes in Joomla! 32m 11s
Discussing CSS and LESS3m 41s

2. Creating the HTML Starting File33m 13s
Reviewing the graphic designs3m 0s
Understanding Joomla! template file structures5m 22s
Configuring a Dreamweaver site and populating it with Bootstrap
CSS9m 48s
Building the grid10m 11s
Adding the Google font2m 50s
Adding a custom style sheet2m 2s

(…)

—

and I would like to have it like this:

—

1. What's New with Joomla! 3 Templates12m 9s
1.01 Installing the starting state exercise files6m 17s
1.02 Exploring template changes in Joomla! 32m 11s
1.03 Discussing CSS and LESS3m 41s

2. Creating the HTML Starting File33m 13s
2.01 Reviewing the graphic designs3m 0s
2.02 Understanding Joomla! template file structures5m 22s
2.03 Configuring a Dreamweaver site and populating it with
Bootstrap CSS9m 48s
2.04 Building the grid10m 11s
2.05 Adding the Google font2m 50s
2.06 Adding a custom style sheet2m 2s

(…)

—

Do you have any idea?


___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Re: another TOC-regex related question

2014-12-14 Thread Rick Gordon

Here's a working example:

set myText to "1. What's New with Joomla! 3 Templates 12m 9s\nInstalling 
the starting state exercise files 6m 17s\nExploring template changes in 
Joomla! 3 2m 11s\nDiscussing CSS and LESS 3m 41s\n\n2. Creating the HTML 
Starting File 33m 13s\nReviewing the graphic designs 3m 
0s\nUnderstanding Joomla! template file structures 5m 22s\nConfiguring a 
Dreamweaver site and populating it with Bootstrap CSS 9m 48s\nBuilding 
the grid 10m 11s\nAdding the Google font 2m 50s\nAdding a custom style 
sheet 2m 2s\n"


--But you'd probably capture it with a selection. This script assumes 
that the first line will be a valid first chapter starting with an 
integer, and that none of the subsections already starts with a number.


set myNewTextList to {}

repeat with myItem in paragraphs of myText
tell myItem
if (count words) > 0 then
try
set myNumber to word 1 as integer --If this fails, 
nothing else up to the "on error" executes.

set myNumberString to word 1
set myIncrement to 0
set end of myNewTextList to myItem & "\r"
on error
set myIncrement to myIncrement + 1
if myIncrement < 10 then
set mySubIncrementString to ".0" & (myIncrement as 
string) & " "

else
set mySubIncrementString to "." & (myIncrement as 
string) & " "

end if
set myNewIncrement to myNumberString & mySubIncrementString
set end of myNewTextList to myNewIncrement & myItem & "\r"
end try
else
set end of myNewTextList to "\r"
    end if
end tell
end repeat
set myText to myNewTextList as string
return myText

-
On 12/14/14 9:57 PM, Rick Gordon wrote:
To my knowledge, you could not do this with regex alone, but it would 
be easy to do in any scripting language. (I'd use AppleScript, but 
only because I know it reasonably well, so it's my go-to language.) 
But it should be easy in Perl, Python, or any of the other likely 
options, as well.


Rick Gordon

___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Re: another TOC-regex related question

2014-12-15 Thread Rick Gordon

That's dependent upon the application. But in BBEdit 10, it would be:

   tell application "BBEdit 10"
set myText to contents of selection
   end tell

…or the shorter form below. So then the script would be:



set myNewTextList to {}

tell application "BBEdit 10" to set myText to contents of selection
repeat with myItem in paragraphs of myText
tell myItem
if (count words) > 0 then
try
set myNumber to word 1 as integer --If this fails, 
nothing else up to the "on error" executes.

set myNumberString to word 1
set myIncrement to 0
set end of myNewTextList to myItem & "\r"
on error
set myIncrement to myIncrement + 1
if myIncrement < 10 then
set mySubIncrementString to ".0" & (myIncrement as 
string) & " "

else
set mySubIncrementString to "." & (myIncrement as 
string) & " "

end if
set myNewIncrement to myNumberString & mySubIncrementString
set end of myNewTextList to myNewIncrement & myItem & "\r"
end try
else
set end of myNewTextList to "\r"
end if
end tell
end repeat
set myText to myNewTextList as string
return myText

----

On 12/15/14 7:30 PM, Vlad Ghitulescu wrote:

Hi, Rick!


That works! Thanks!

I have one question:


Am 15.12.2014 um 07:53 schrieb Rick Gordon <mailto:li...@rickgordon.com>>:


--But you'd probably capture it with a selection.


How you do this in AppleScript?


___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Re: another TOC-regex related question

2014-12-16 Thread Rick Gordon
The name should definitely match the name of your copy of BBEdit 
(without the ".app"). I change mine to reflect version numbers.


I'm not using BBEdit 11, since I'm still running 10.6.8, so I can't 
confirm if they changed the syntax, but I doubt that they'd have changed 
that.


Try running it from Script Editor.

If it's still not working, you might check to see if it's talking to 
BBEdit by something like:


tell application BBEdit
activate
end tell

...which should bounce you back into BBEdit.

If you're running it from BBEdit, the script must be placed in 
~/Library/Application Support/BBEdit/Scripts, right?


Rick Gordon

-
On 12/16/14 5:41 PM, Vlad Ghitulescu wrote:

Hello!


Strange, that doesn’t work anymore…


Am 16.12.2014 um 08:09 schrieb Rick Gordon <mailto:li...@rickgordon.com>>:


tell application "BBEdit 10" to set myText to contents of selection


… even after I replaced „BBEdit 10“ with „BBEdit“ in the line above.

After selecting the paragraph in BBEdit and calling the script from 
the script menu nothing happens :-(


Any idea?


Thanks!
Vlad (without the ".app")

___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Change Underlined Same-Word Variables, etc. to Background-Colored ??

2015-07-26 Thread Rick Gordon
Is it possible to change a setting so that when you click in a given 
word, and all instances of the same word are underlined, to change that 
something more visible, like a background color?


___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Repeated Application of Regex

2015-09-25 Thread Rick Gordon
Is there a way, within the BBEdit interface (as opposed to looping a 
regex in AppleScript) to repeat running a regex until it fails?


___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Re: Repeated Application of Regex

2015-09-25 Thread Rick Gordon
It's not. In this regex, to replace characters within a span to a 
"redacted" character, with Grep and Wrap around enabled, it takes 
repeated presses of Replace All (one press per replaced character) to 
get the job done.


FIND:
()(█*)[^>█]([^>]*)()

REPLACE:
\1\2█\3\4

Rick Gordon

-
On 9/25/15, 1:57 PM, Rich Siegel wrote:

On Friday, September 25, 2015, Rick Gordon  wrote:


Is there a way, within the BBEdit interface (as opposed to looping a regex in
AppleScript) to repeat running a regex until it fails?


I would think that "Find All" (or "Replace All") would do what you need.

_______
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Re: Email Address From BBEdit List Crashes Mail App

2015-10-17 Thread Rick Gordon

FWIW, using Postbox 3.x and POP delivery, I have no problem with his emails.

Rick Gordon

-
On 10/16/15, 9:10 PM, WordWeaver777 wrote:

Dear BBEdit list friends,

Let me start by saying that it is *not* my intention to start anything 
personal here, and I hope that the person who owns this particular 
email address does not take my comments as an attack on their person, 
because that is most certainly *not* the case. However, for those of 
you who likewise use OS X's default Mail app email client, I must ask 
you the following question:


Does the following email address cause you any problems when you click 
on an incoming message which contains this address?


@lbutlr mailto:krem...@kreme.com>>

In my case, for at least weeks now -- and perhaps for months now -- 
whenever I click on a new incoming message from the BBEdit list which 
contains that address, it immediately crashes Mail app without fail. I 
mean every single time.


Furthermore, if I select that message in order to send it to the 
trash, it likewise crashes Mail app.


The *ONLY* way in which I can get rid of such troublesome messages is 
by *not* selecting them at all, and by *not* reading them at all, but 
simply by right-clicking them, and selecting the "delete" option in 
the contextual menu.


Please note that this crashing problem *ONLY* occurs with messages 
that contain that particular email address.


Again, I do *not* know, and have *never* communicated with the person 
who owns said email address, so please do *not* interpret my words 
here as a judgment of their character, because that is most certainly 
*not* the case. He or she may not even know that this is happening.


Nevertheless, being as these crashes of the Mail app have been 
occurring for so long now, I thought that I should bring it up 
publicly here on the list, in order to determine if anyone else on 
this list is experiencing the same thing as I am.


Thanks for listening.
--
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 
<mailto:bbedit+unsubscr...@googlegroups.com>.
To post to this group, send email to bbedit@googlegroups.com 
<mailto:bbedit@googlegroups.com>.



___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Reopen Docs that Were Open at Last Quit Without Confirmation Dialog

2016-03-09 Thread Rick Gordon
Is there a setting that will allow "Reopen documents that were open at 
last quit" without needing to dismiss a confirmation dialog? That 
preference, along with its two sub-categories are all enabled in the 
Application tab of Preferences.


My current workflow choice is always to accept that dialog query.

___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Re: Sort an email list by domain name...

2016-07-06 Thread Rick Gordon

Try something like this:

   FIND:
   ^(.+?@)(\S+)

   [1st capture group is start of line up through first @ sign; 2nd is
   a run of characters without spaces after the @.]

   CHANGE TO:
   %%\2%%%\1\2

   [Add the 2nd group to the front of the line, preceded by %% and
   followed by %%%. The choice of delimiters is inconsequential, as
   long as it's something not otherwise found.]

   ---

   Then sort the lines.

   ---

   Then remove the part you added in front, including the delimiters:

   FIND:
   %%.+?%%%

   CHANGE TO:

   [an empty string]


-
On 7/6/16, 8:39 AM, Bo wrote:

How do I sort an an email list by domain name?


___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Re: Sort email addresses by domain name...

2016-07-06 Thread Rick Gordon

Great! That was new to me, too. (Much better than my suggestion.)

-
On 7/6/16, 10:33 AM, Fletcher Sandbeck wrote:
Choose Sort Lines... from the Text menu and check the Sort by Pattern 
option with the following Searching Pattern and the Entire Match 
sub-option.


@.*

Hope this helps,

[fletcher]


___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Re: Dropbox sync when using Dropbox for Business

2016-10-10 Thread Rick Gordon

Dropbox documents it here: https://www.dropbox.com/en/help/4584

-
On 10/8/16, 7:59 AM, Rich Siegel wrote:
On Friday, October 7, 2016, Christopher Stone 
 wrote:


There's no API access I'm aware of, but the config file should be 
readily available.


cat ~/.dropbox/info.json


That way lies madness. :-) Dropbox does not publish the details of 
their configuration (that I'm aware of). In the past, we used to dig 
into their config files to find the Dropbox location, and then they 
changed things and broke it.


I realize it's an inconvenience, and I'm sorry - but we have provided 
a workable solution, and one that won't break whenever Dropbox decides 
to make another change (as, it appears, they already did by switching 
to JSON).


R.



_______
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Open .JAR File as Project

2016-11-10 Thread Rick Gordon

Is there a way for BBEdit to access a .jar file as a project?

___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Selectively Clearing Recents

2017-01-25 Thread Rick Gordon
Is there a way to selectively clear Recent items without clearing 
everything? I don't mind editing a .plist file, if that's what's necessary.


_______
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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: Selectively Clearing Recents

2017-01-27 Thread Rick Gordon

Perfect. Thanks, Michael.

Rick Gordon


On 1/26/17, 8:13 PM 'Michel Maybon' via BBEdit Talk said:

Hello.

Supposing you are talking about the menu "Open Recent":

- Quit BBEdit
- modify the RecentItems:ItemData part of /Users/account>/Library/Preferences/com.barebones.bbedit.plist

- Relaunch BBEdit

Le Jeudi 26 janvier 2017 2h26, Rick Gordon  a 
écrit :



Is there a way to selectively clear Recent items without clearing
everything? I don't mind editing a .plist file, if that's what's 
necessary.


_______
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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: Grep RegEx help

2017-01-27 Thread Rick Gordon
You just need to add a question mark after the asterisk, to make it not 
greedy.


(?s).*?

Or, if you just wanted to get to what's inside the tags, make it:

(?<=\n)(?s).*?(?=\n)

Rick Gordon


On 1/27/17, 2:40 PM Neal Pozner said:

I have some XML that looks like  as follows.

Essentially, each Group has a  key with a variable 
number of  keys.


I need to make all of the  blocks standard. I 
cannot figure out how to write the RegEx to find all the combinations. 
I thought (?s).* would work 
but it is grabbing everything past the first  block.




Albany - Hudson Market
/*Temp Test
true


/US DOMESTIC
/*Response Management (formerly *JUMPStart)
/*Temp Test



Albany - Hudson-



false


Albany - Hudson Market - FCM's
/*Temp Test
true


/US DOMESTIC
/*Response Management (formerly *JUMPStart)
/*Temp Test



Financial Ctr Mgr

Market
Albany / Hudson




false


Albany - Hudson-69 State Street
/*Temp Test
true


/US DOMESTIC/E/EM/EMW
/US DOMESTIC/E/EB/EBH
/US DOMESTIC/T/TK/TKA
/US DOMESTIC/Q/QD/QDV
/US DOMESTIC/E/EM/EMD
/US DOMESTIC/E/EC/ECA
/US DOMESTIC/J/JE/JES
/US DOMESTIC/L/LA/LAC
/US DOMESTIC/E/ED/EDE
/US DOMESTIC/H/HK/HKK
/US DOMESTIC/H/HA/HAH
/US DOMESTIC/E/EF/EFG
/US DOMESTIC/H/HA/HAK
/*Response Management (formerly *JUMPStart)
/US DOMESTIC/E/EM/EMI
/US DOMESTIC/E/EB/EBB
/US DOMESTIC/Q/QS/QSP
/US DOMESTIC/H/HC/HCG
/US DOMESTIC/H/HC/HCC
/US DOMESTIC/Z/ZJ/ZJS
/US DOMESTIC/H/HC/HCD
/US DOMESTIC/H/HZ/HZB
/US DOMESTIC/E/EM/EMB
/US DOMESTIC/H/HZ/HZC
/US DOMESTIC/H/HS/HSB
/US DOMESTIC/H/HS/HSC
/US DOMESTIC/E/EM/EMP
/US DOMESTIC/H/HC/HCB
/US DOMESTIC/E/EM/EMA
/US DOMESTIC/H/HA/HAJ
/US DOMESTIC/Q/QP/QPR
/US DOMESTIC/E/EB/EBI
/US DOMESTIC/Q/QP/QPS
/US DOMESTIC/H/HK/HKC
/US DOMESTIC/Z/ZJ/ZJD
/US DOMESTIC/Z/ZJ/ZJK
/US DOMESTIC/Z/ZJ/ZJM
/US DOMESTIC/H/HA/HAA
/US DOMESTIC/H/HC/HCA
/US DOMESTIC/H/HK/HKE
/US DOMESTIC/Z/ZJ/ZJB
/US DOMESTIC/H/HK/HKB
/US DOMESTIC/E/EH/EHE
/US DOMESTIC/Z/ZJ/ZJI
/US DOMESTIC/Q/QB/QBB
/US DOMESTIC/H/HK/HKA
/US DOMESTIC/E/EB/EBL
/US DOMESTIC/H/HA/HAC
/US DOMESTIC/Q/QD/QDD
/US DOMESTIC/H/HG/HGA
/US DOMESTIC/T/TM/TMA
/US DOMESTIC/Q/QC/QCQ
/US DOMESTIC/E/EM/EMC
/US DOMESTIC/Q/QC/QCC
/US DOMESTIC/Q/QI
/US DOMESTIC/H/HC/HCE
/US DOMESTIC/Q/QF
/US DOMESTIC/E/EB/EBN




mail code
NY6-100-01-01




false



_______
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Preference to Reopen Files on Remote Severs Automatically?

2017-05-18 Thread Rick Gordon

I often keep a group of files on remote webservers open for easy editing.

Is there a preference that can be set to eliminate the prompt to reopen 
files on remote servers when launching BBEdit, and have them just reopen 
automatically?


___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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: Preference to Reopen Files on Remote Severs Automatically?

2017-05-18 Thread Rick Gordon

Thanks, Rich.

And for reference, the answer is:
defaults write com.barebones.bbedit PromptToReopenRemoteDocuments NO

Rick Gordon


On May 18, 2017 at 12:43:12 PM [-0700],
Rich Siegel wrote in an email entitled
"Re: Preference to Reopen Files on Remote Severs Automatically?":

On Thursday, May 18, 2017, Rick Gordon  wrote:


Is there a preference that can be set to eliminate the prompt to
reopen files on remote servers when launching BBEdit, and have them
just reopen automatically?


Yes. The Expert Preferences help has information on how to set it.

R.

___
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


Max Character Length of Search String / Trimming Unsubscribed Addresses from List

2017-12-17 Thread Rick Gordon

I was considering do a large search string like this:

^(?:user1@host1.domain1|user2@host2.domain2|user3@host3.domain3)\r

…but with a large number of email addresses culled from unsubscribe or 
bounce lists, as a means of removing them from our valid subscribers' lists.


So what I'm wondering is how to determine how many addresses in this OR 
formation I could chain before making my search string get too long.


I'd also be interested to know what other approaches I might consider 
for trimming a list of one email address per line, removing addresses 
from a list of invalid or unsubscribed addresses.


_______
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___
WWW: http://www.shelterpub.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.


  1   2   >