Re: Help for search & replace with Grep

2020-06-12 Thread Jean-Christophe Helary



> On Jun 12, 2020, at 23:18, mrcmrc  wrote:
> 
> Thanks Jean-Christophe! It worked!

Take the time to look at the manual. It is extremely well written.

In fact, I had the exact same questions back in 96 when I first used BBedit, 
and I decided to read the manual and everything I know about regular 
expressions now pretty much comes from it.

So just take one or two hours to check it. Play with the search function and 
see what you can do by yourself.


-- 
Jean-Christophe Helary @brandelune
http://mac4translators.blogspot.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/825618E2-89F9-4031-9198-2BB71EED10A0%40traduction-libre.org.


Re: Help for search & replace with Grep

2020-06-12 Thread Jean-Christophe Helary



> On Jun 12, 2020, at 18:56, mrcmrc  wrote:
> 
> Hi,
> someone may help me? Usually I can do some very simple replacements, but I 
> don't have great experience with Grep syntax...
> 
> I have a block of text like this:
> 
> Miles Davis – trumpet
> John Coltrane – tenor saxophone
> Red Garland – piano
> Paul Chambers – double bass
> Philly Joe Jones – drumset
> 
> and wish to get this:
> 
> Miles Davis, John Coltrane, Red Garland, Paul Chambers, Philly Joe Jones

Search:

 – .*\n

Replace:

, 

there is a space at the beginning of the search string
and one at the end of the replace one.


-- 
Jean-Christophe Helary @brandelune
http://mac4translators.blogspot.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/C68AAB2D-E41D-4DBC-A02E-FF609A133A7A%40traduction-libre.org.


Re: Removing text from parenthesis on

2020-06-01 Thread Jean-Christophe Helary



> On Jun 1, 2020, at 23:32, 'anotherhoward' via BBEdit Talk 
>  wrote:
> 
> What if I wanted to extract all the text up to, but not including, the left 
> parenthesis?

Then you need to check that the left parenthesis is ahead of the stuff you need 
to match. So it's a "lookahead is there's a left parens!":

^.+(?=\()

And if you want to *extract* the stuff that matches, you have a cute "Extract" 
button in the Search dialog to do that.

The manual is of tremendous help too.

-- 
Jean-Christophe Helary @brandelune
http://mac4translators.blogspot.com


> 
> On Monday, June 1, 2020 at 9:49:58 AM UTC-4, Jean-Christophe Helary wrote:
> 
> 
>> On Jun 1, 2020, at 21:31, Howard  wrote: 
>> 
>> Here is an input sample: 
>> 
>> Arizona (5) 
>> Minnesota (4) 
>> Cleveland (2) 
>> San Diego (4) 
>> 
>> Using Grep, I want to remove all the text in each item from the left 
>> parenthesis on. How can I do that? 
> 
> including the left parenthesis: 
> search for \(.+$ 
> replace with nothing 
> 
> excluding the left parenthesis: 
> search for (?<=\().+$ 
> replace with nothing 
> 
> The "exclusion" uses a "lookbehind" match as in "look behind this to see if 
> the rest matches, but only act on the rest". So here, it says "look behind a 
> left parenthesis see if you find anything" 
> 
> 
> -- 
> Jean-Christophe Helary @brandelune 
> http://mac4translators.blogspot.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/bbca3dfb-ac5e-4c35-b0d5-9c693153bfe8%40googlegroups.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <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/65195EA7-FCF9-4B21-88A5-A9C5157A24C0%40traduction-libre.org.


Re: Removing text from parenthesis on

2020-06-01 Thread Jean-Christophe Helary



> On Jun 1, 2020, at 21:31, Howard  wrote:
> 
> Here is an input sample:
> 
> Arizona (5)
> Minnesota (4)
> Cleveland (2)
> San Diego (4)
> 
> Using Grep, I want to remove all the text in each item from the left 
> parenthesis on. How can I do that?

including the left parenthesis:
search for \(.+$
replace with nothing

excluding the left parenthesis:
search for (?<=\().+$
replace with nothing

The "exclusion" uses a "lookbehind" match as in "look behind this to see if the 
rest matches, but only act on the rest". So here, it says "look behind a left 
parenthesis see if you find anything"


-- 
Jean-Christophe Helary @brandelune
http://mac4translators.blogspot.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/92D88C75-60BE-4A29-A761-56A9F779D7E2%40traduction-libre.org.


Re: Find and replace

2020-04-08 Thread Jean-Christophe Helary
What about you change 

value="1"

into 

value="0.99"

and 

value="0"

into

value="0.01"

without worrying about the rest ?

Jean-Christophe 

> On Apr 8, 2020, at 20:09, regis leon  wrote:
> 
> Hello 
> 
> on a XML I need to change 
> 
>  value="1"/>
>  value="0"/>
> 
> 
> 
> to this
> 
> 
>  value="0.99"/>
>  value="0.01"/>
>   
> 
> 
> But I need to keep those values between " " the same for all 
> 
> because it can be like this
> 
> 
>  value="1"/>
>  value="0"/>
>   
> 
> 
> 
> I'm able to find all those line by
> 
> \n   
> 
> 
> but if I try to replace  by  
>
> \n  
> 
> 
> 
> I can't keep those values between " "
> 
> 
> Help 
> 
> -- 
> 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/b639dbdd-a2bb-4cb2-96f9-8b31b681d760%40googlegroups.com.

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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/8AF0B9FF-1C2C-4F99-B17B-00D34E0B01F3%40traduction-libre.org.


Re: (probably :-) GREP-question regarding Photos-metadata

2020-03-14 Thread Jean-Christophe Helary
lse"
>  photomechanic:Prefs="0:0:0:-1"
>  photomechanic:PMVersion="PM6">
>  
> 
>  Ben
>  Mina
>  Tom
>  Vlad
> 
>  
> 
>  
> 
> 
> The individual data is the creation-date:
> 
>  photoshop:DateCreated="2018-05-10T13:35:00.03"
>  xmp:CreateDate="2018-05-10T13:35:00.03"
> 
> and the IPTC-keywords:
> 
>  Ben
>  Mina
>  Tom
>  Vlad
> 
> Another background-information that probably all of you know: there is no 
> relation between the IPTC / XMP - keywords and the Finder / macOS - tags.
> 
> And this exactly is my problem.
> 
> I need to input somehow / somewhere the metadata to my photos, but I don't 
> want to make this twice in order to have this information present in the 
> IPTC-keywords AND in the Finder-tags as well.
> 
> This is not new at all: Google-ing about "copy IPTC-keywords into 
> Finder-tags" or viceversa I've found a lot but all of it involved in one step 
> or another the EXIFtool, a command line utility that reads and writes 
> photo-metadata… and this doesn't scale very well (I have A LOT of photos: 
> about 220,000 pics that are more than 2 TB big!) and it is slow, because the 
> EXIFtool have to read the metadata from the photo.
> 
> So my idea is to take care or the IPTC-keywords in Photo Mechanic (this would 
> create a XMP-file as the one above for every photo I have) and then - and 
> here comes BBEdit! :-) - somehow transfer the data from the XMP-file (that is 
> in the end only a text-file!) to the Finder-tags.
> 
> Now finally to my question (sorry for the length!): How could I
> 
>   • take each IPTC-keyword (delimited by the tag < rdf:li >, see above) 
> and
>   • write this IPTC-keyword into a Finder-tag
> for every photo in a folder?
> 
> Ideally I'd have a script, point it to a folder full of photos and BOOM!, 
> after this every photo would have the same Finder-tags as the IPTC-keywords!
> 
> Could you please help me with this?
> 
> Thanks in advance!
> 
> Regards,
> Vlad
> 
> -- 
> 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/93FE2214-4BDD-4C41-952F-61C910E44C38%40Ghitulescu.de.
> 
> -- 
> 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/E3AD63CE-D6D0-4FD0-A317-514C772BFBC9%40Ghitulescu.de.
> 
> 
> -- 
> 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/74E567C0-F5BE-48D8-A30F-9EEBEA2737C7%40Ghitulescu.de.

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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/85ED17EA-5E51-4CA7-AD1E-B1C557942702%40traduction-libre.org.


Re: Shebang Line Woes

2020-03-06 Thread Jean-Christophe Helary



> On Mar 6, 2020, at 13:45, Paul Gobble  wrote:
> 
> Steve,
> 
> I took BBEdit out of the testing earlier this evening. I've been doing all my 
> editing with vim and attempting to run the script from the command line.  
> I've made the two test cases as similar as possible. Both env and Pyton3 
> reside in /usr/bin on both systems.  The PATH contains /usr/bin in both 
> systems.  the scripts on both systems have the same chmod 755 permissions.  
> The Raspberry Pi runs like you'd expect, the Mac just won't comprehend or 
> acknowledge the Shebang line.
> 
> I'm at a loss.

How did you install python3 ?

Jean-Christophe 

-- 
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/A418D62E-7E8D-44A8-9C7B-E7052407B752%40traduction-libre.org.


Re: Shebang Line Woes

2020-03-05 Thread Jean-Christophe Helary
First, it works on my system.


Mar 6, 2020 13:35:25
/untitled text 2

Hello World


I can't say for sure that BBEdit respected the first line, but I don't have any 
issue with the output.

Even when I save the file I get the same:


Mar 6, 2020 13:40:10
~/Documents/Code/test/python_test-01.py

Hello World


I can't tell you more, but if it's a path issue, reinstalling python3 with a 
reasonable package manager (homebrew ?) could help fixing issues.

Jean-Christophe 

> On Mar 6, 2020, at 11:25, Paul Gobble  wrote:
> 
> I keep banging my head against this problem.  To try something different, I 
> ssh over to my Raspberry Pi.  I check, and its got Python 3 right there in 
> /usr/bin/ . So I use vim to create same script on the Rasperrry Pi, chmod 
> 755, and I see "Hello World" the very first try.  
> 
> So to recap, both my PowerBook with macOS 10.15.3 and my Raspberry Pi running 
> Debian GNU/Linux have a version of Python3 installed in their /usr/bin 
> directories.  Both system have /usr/bin in their PATH.  They both have the 
> same two line script and both start with the same Shebang: 
> #!/usr/bin/python3.  The Raspberry Pi works perfect, the Mac can only muster 
> "#!/usr/bin/python3: No such file or directory".
> 
> What is different between the two systems? Where should I look? 
> 
> 
> On Thursday, March 5, 2020 at 7:06:11 AM UTC-5, Paul Gobble wrote:
> I'm using BBedit 13.0.5 on Mac Os 10.15.3 as my editor while I try to learn a 
> bit of Python3.  
> 
> #!/usr/bin/env python3
> print('Hello World')
> 
> Baby steps.
> 
> I try to execute this from the Run menu item in the #! menu and get
> 
> /Users/.../Scripts/python_test-01.py: line 1: #!/usr/bin/env: No such file 
> or directory
> 
> Then I try to use the direct path in the shebang line
> 
> #!/usr/bin/python3
> print('Hello World')
> 
> and get a very similar response
> 
> /Users.../Scripts/python_test-01.py: line 1: #!/usr/bin/python3: No such 
> file or directory
> 
> So I go investigate in the Terminal app and look around.
> 
> Emonda:bin paul$ pwd
> 
> /usr/local/bin
> 
> Emonda:bin paul$ whereis python3
> 
> /usr/bin/python3
> 
> Emonda:bin paul$ whereis env
> 
> /usr/bin/env
> 
> Emonda:bin paul$ 
> 
> 
> Both env and python3 are right where I said they were in the shebang line, 
> but interpreter can't find them!  
> 
> Can anyone help me out here?  What am I missing?
> 
> Thanks,
> Paul
> 
> -- 
> 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/f3a60234-2b25-44bc-8200-58c528dc8bca%40googlegroups.com.

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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/3AE3E8F3-BD8D-4FA8-BDE2-7D3626A5D257%40traduction-libre.org.


Re: how to select a word

2020-03-05 Thread Jean-Christophe Helary



> On Mar 5, 2020, at 22:55, Vlad Ghitulescu  wrote:
> 
> On 5 Mar 2020, at 14:53, Jean-Christophe Helary wrote:
> 
>>> On Mar 5, 2020, at 20:05, Vlad Ghitulescu  wrote:
>>> 
>>> Hey!
>>> 
>>> Is there a keyboard shortcut to select the word where the cursor is in?
>> 
>> You can set a shortcut to Edit > Select > Word in Preferences > Menus and 
>> Shortcuts
> 
> There it is!
> 
> Thanks Jean-Christophe!

It is actually hard to know all the possible functions, so what I do to 
discover them is hit Shift+Command+/ to enter the Help field and then type 
strings that are related to the function I'm looking for.

In this case I entered Select and found the Select > Word item in the Edit 
menu. I checked that it was the tool that you requested and then checked that 
it was available as a shortcut setable function in Preferences.

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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/84CCD8D7-27EE-466C-BCEF-827F93343FB1%40traduction-libre.org.


Re: how to select a word

2020-03-05 Thread Jean-Christophe Helary



> On Mar 5, 2020, at 20:05, Vlad Ghitulescu  wrote:
> 
> Hey!
> 
> Is there a keyboard shortcut to select the word where the cursor is in?

You can set a shortcut to Edit > Select > Word in Preferences > Menus and 
Shortcuts


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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/1C46BFEA-3D59-4971-A360-74A1678892F4%40traduction-libre.org.


regex syntax helper :)

2020-02-13 Thread Jean-Christophe Helary
I just noticed today that the regex syntax helper now has syntax coloring !!! 
Excellent :)


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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/76C75358-66C5-42AE-9F93-14E495A662B0%40traduction-libre.org.


Re: Pattern alternation on entire line

2020-02-10 Thread Jean-Christophe Helary



> On Feb 11, 2020, at 6:58, Tom Robinson  wrote:
> 
> What have I missed here guys?
> 
> I want to match entire lines which are empty, contain a single ’s’, or 
> contain ‘e’ and/or ‘h’ (in that order):
> 
> e
> h
> eh
> s
> 
> ehs
> he
> x
> 
> The first 5 lines should match (including the empty line), last 3 shouldn’t.
> 
> But despite the caret anchor, my pattern is catching the ending of unwanted 
> lines:
> 
> ^s|(e?h?)$

Tom,

The results are

[e]
[h]
[eh]
[s]
[]
ehs
h[e]
x
[]

So, it looks like the regex works like this:

^s

or

(e?h?)$

This one: ^s$|^(e?h?)$ seems to do what you want.


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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/876A6DC3-19BF-491A-8F64-9CD162C79D4C%40traduction-libre.org.


open file default location ?

2020-01-13 Thread Jean-Christophe Helary
I'm not sure I understand what is the default location for the "open file" command.I have a file opened and I want to open another file, I expect that "open file" will default to the front document, which would help, but it is not the case.How is the default location decided ?Jean-Christophe Helary---http://mac4translators.blogspot.com @brandelune



-- 
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/E7C2A612-AFD6-4505-83CC-5EA73955B1B9%40traduction-libre.org.


Re: Appending a string using Search and Replace

2020-01-13 Thread Jean-Christophe Helary
Jason,

This is pretty much exactly what has been discussed in a very recent thread. 
There must be a discoverability issue in the manual... :)

What you need to do is have BBEdit *remember* the match so that it can keep it 
as is in the replace string.

^([[:upper:]]+)$

replaced by

\1, UNKNOWN

what you need to read is in "Creating Subpatterns", p 186 of the manual and the 
following section "Using Backreferences in Subpatterns".

Et voilà !

Jean-Christophe 

> On Jan 13, 2020, at 22:51, Jason M. Kelly <6500j...@gmail.com> wrote:
> 
> I am beginning a new project and attempting to use BBEdit prepare a data set 
> for input into a database. For the first step, I would like to add a string 
> to each text entry in all caps that does not have a first name after it. For 
> example, using the sample from the data set below, I would like to transform 
> the entry “ABBOTT” into “ABBOTT, UNKNOWN”
> 
>  
> ABBOTT, EDWARD (c.1737–91), painter, of Long Acre, London; according to 
> Redgrave, he travelled in France and Italy with the engraver William Wynne 
> Ryland, i.e. c.1760; see Ryland.
>  
> ABBOTT, JOHN, merchant; see Francis Harriman
>  
> ABBOTT
> 1763 Naples (31 Dec.; Martin jnl.MSS)
>  
> 
> I am able to search for each entry in all caps that is not followed by a 
> first name using this GREP formula: ^[[:upper:]]+$
>  
> For the life of me, I cannot figure out how to use the REPLACE function to 
> retain the original text and append a string. (e.g. to transform “ABBOTT” 
> into “ABBOTT, UNKNOWN”) 
>  
> I’m sure it’s a really simple thing that I’m missing, but I have been trouble 
> finding a solution online. 
> 
> I appreciate any help from this list. Thanks. 
> 
> -- 
> 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/35e76da1-8142-4168-af9e-abdf529b0602%40googlegroups.com.

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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/6A472DE2-0203-46B6-BA07-1074E94F9C7D%40traduction-libre.org.


:^) <- those are patterns, they show I'm happily playing in the pattern playground -> (^:

2020-01-11 Thread Jean-Christophe Helary
The pattern playground feature is simply amazing :)

Any beginner who reads this message and is scared of using the regular 
expression / grep  Find/Replace feature, make sure you read Chapter 8 
"Searching with Grep" on page 177 and "Pattern Playgrounds" on page 208.

I don't have the Change Notes at hand but that's a relatively recent feature.

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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/9B856F57-B9B1-4FD5-93AE-B5B7D3C840EB%40traduction-libre.org.


Re: Cannot replace source text using GREP

2020-01-02 Thread Jean-Christophe Helary



> On Jan 3, 2020, at 13:15, anotherhoward  wrote:
> 
> Here is my input:
> 1
> 2
> 3
> 4
> 5
> 
> Here is my search pattern:
> \d\n
> 
> Here is the desired output:
> 1,2,3,4,5

So, you need to "separate" the number part from the line break part, so that 
you can keep the number part in the replacement string but replace the line 
break part with a ",".

When you check the manual, there is a "Creating subpatterns" section and it 
says  

"Subpatterns provide a means of organizing or grouping complex grep patterns. 
This is primarily important for two reasons: for limiting the scope of the 
alternation operator (which otherwise creates an alternation of everything to 
its left and right), and for changing the matched text when performing 
replacements."

In all honesty, that's not very clear, plus it can lead to wrong 
interpretations, because, generally speaking, you create subpatterns so that 
you can call them in the replacement (and not to change them). The paragraph 
should probably have "and for *remembering* the matched text when performing 
replacements." instead.

But the point is, you need that subpattern here:

instead of \d\n, try (\d)\n

now, the \d part is remembered.

And you can call it in the replacement string by "Using Backreferences in 
Subpatterns", which is the following section in the manual.

Here, you only have one subpattern: (\d)\n

So, to call it in the replacement string, you just use \1, now, for every \d 
match, \1 will use the number that matched that \d.

Last, you want to really replace "\n" with ",", which is trivial.

So your replacement string should be:

\1,


Search for: (\d)\n
Replace with: \1,



Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://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/C881BBFF-D870-4F2F-BB24-036C29991682%40traduction-libre.org.


Re: Grep Question

2019-12-31 Thread Jean-Christophe Helary



> On Jan 1, 2020, at 5:11, Jimmbo  wrote:
> 
> Can anyone suggest a Grep pattern for finding lines that don't end with a 
> closing HTML symbol (>)? 
> 
> This doesn't work for some mysterious reason: [^>]$

Can you copy a line that seems to not work ?


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://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/0A3A6C77-F3A2-4ED2-99B2-BB21F9ADF3BC%40traduction-libre.org.


Re: css help...

2019-12-26 Thread Jean-Christophe Helary



> On Dec 26, 2019, at 23:34, Bill Kochman  wrote:
> 
> Jean, just as an added point, while full AMP compliance may not be your 
> ultimate goal, I think it is important to point out that whether we like it 
> or not, when it comes to Internet search, Google is the indisputable king.

Hence the reason to use duckduckgo instead :)

But I totally understand what you're saying.

> Okay. I am done now before Rich or Patrick tell me that I am getting too far 
> off-topic. 浪

:)

JC

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/D547D90D-1C11-4E9D-A275-43FD78BBC9F8%40traduction-libre.org.


Re: css help...

2019-12-26 Thread Jean-Christophe Helary
Thank you for checking Holger,

That was indeed the case.

JC

> On Dec 26, 2019, at 17:57, 'Holger Bartel' via BBEdit Talk 
>  wrote:
> 
> Hi, 
> 
> From a quick guess without checking I’d assume you’re missing the viewport 
> meta tag. Have a look here, hope it helps: 
> https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag
> 
> Best, 
> Holger

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/C45112EC-4C8D-4B3E-8E97-CDF7C7A78B43%40traduction-libre.org.


Re: css help...

2019-12-26 Thread Jean-Christophe Helary
Bill,

Thank you very much for the comment.

> On Dec 26, 2019, at 22:40, Bill Kochman  wrote:
> 
> Jean, that is correct. The viewport parameter is required in all 
> AMP-compliant HTML documents, as well as a canonical URL meta tag and other 
> things.

I'm not aiming at AMP compliance (I personally don't think it is a good idea to 
have all the internet served exclusively from Google servers), I just need to 
have mobile Safari properly recognize the media query, but that indeed did the 
trick.

I just found some solid reference about it at MDN:
https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag

Also, it looks like viewport is an Apple invention...

Thank you all for your help.

Jean-Christophe 

> 
> For the record, several years ago, when I first learned about the benefits of 
> using the AMP standard, I knew absolutely nothing about it. So, I had to 
> learn completely from scratch, and sometimes it was quite frustrating.
> 
> Google is very strict regarding the dos and don’ts of AMP. However, after 
> months of hard work and perseverance, I achieved a fully AMP-compliant 
> website.
> 
> This was all done with basically two apps: BBEdit and Balthisar Tidy for 
> Work. Also, there are many online AMP tutorials, as well as several AMP code 
> validators, which I highly recommend that you use.
> 
> In closing, you may want to visit my website — billkochman.com — and look at 
> the source code to see what proper AMP code looks like. All of my pages pass 
> Google’s AMP validation.
> 
> Kind regards in Christ,
> 
> Bill Kochman
> Bill's Bible Basics
> 
> https://www.billkochman.com
> https://www.youtube.com/channel/UCXhxqWcWC7SpP-JBNXIYTdg
> https://www.facebook.com/wordweaver.evangelist
> 
> 
>> On Dec 26, 2019, at 11:20 PM, Jean-Christophe Helary 
>>  wrote:
>> 
>> Kerri,
>> 
>> Thank you for the comment. I'll try that too.
>> 
>> I eventually asked the same question on reddit and it seems that the HTML 
>> should contain a
>> 
>> 
>> 
>> like tag.
>> 
>> https://www.reddit.com/r/css/comments/eft71n/iphone_safari_does_not_respond_to_maxwidth_media/
>> 
>> Do you agree that's the case ?
>> 
>> I'll be trying to add that to the texinfo output later tonight and see if 
>> that works better.
>> 
>> JC
>> 
>>> On Dec 26, 2019, at 22:07, Kerri Hicks  wrote:
>>> 
>>> Take a look at CSS 'resolution'.
>>> 
>>> https://developer.mozilla.org/en-US/docs/Web/CSS/resolution
>>> 
>>> There's a -webkit prefix for Safari.
>>> 
>>> Also, using em measurements for your breakpoints is unconventional. I 
>>> typically use pixels.
>>> 
>>> --Kerri
>>> 
>>> On Thu, Dec 26, 2019, 3:42 AM Jean-Christophe Helary 
>>>  wrote:
>>> Apologies for the offtopicness of the question so first, if you know any 
>>> place where the questions would not be off topic let me know (please, no 
>>> stackoverflow...)
>>> 
>>> The question is, I'm trying to recover from a 20 years lag in CSS 
>>> development and I thought working first on a site where I can't change the 
>>> HTML would be a perfect choice since I can work on the selector spec and 
>>> from there move to more creative stuff.
>>> 
>>> Here is what I have now:
>>> 
>>> (sample, the links don't work)
>>> https://brandelune.github.io/code/Visiting-Functions.html
>>> 
>>> original
>>> https://www.gnu.org/software/emacs/manual/html_node/elisp/Visiting-Functions.html
>>> 
>>> and the css:
>>> https://brandelune.github.io/code/emacs.css
>>> 
>>> I'm trying to use a media query to target mobile browsers so I have that 
>>> thingy here in the middle:
>>> 
>>> @media (max-width: 40em) {
>>> ...
>>> }
>>> 
>>> On the Safari/Firefox responsive simulators, the things work perfectly well.
>>> When I check the page on my iPhone 11 or even on my wife's iPhone 6, I get 
>>> the standard page with super small characters and no reaction to the 
>>> max-width property.
>>> 
>>> And I have no idea what to do with that behavior... Where can I even start 
>>> to debug that ?
>>> 
>>> Jean-Christophe Helary
>>> ---
>>> http://mac4translators.blogspot.com @brandelune
>>> 
>>> 
>>> -- 
>>> This is the BBEdit Talk public discussion group. If you have a 
>>> feature request or need technical sup

Re: css help...

2019-12-26 Thread Jean-Christophe Helary
Kerri,

Thank you for the comment. I'll try that too.

I eventually asked the same question on reddit and it seems that the HTML 
should contain a



like tag.

https://www.reddit.com/r/css/comments/eft71n/iphone_safari_does_not_respond_to_maxwidth_media/

Do you agree that's the case ?

I'll be trying to add that to the texinfo output later tonight and see if that 
works better.

JC

> On Dec 26, 2019, at 22:07, Kerri Hicks  wrote:
> 
> Take a look at CSS 'resolution'.
> 
> https://developer.mozilla.org/en-US/docs/Web/CSS/resolution
> 
> There's a -webkit prefix for Safari.
> 
> Also, using em measurements for your breakpoints is unconventional. I 
> typically use pixels.
> 
> --Kerri
> 
> On Thu, Dec 26, 2019, 3:42 AM Jean-Christophe Helary 
>  wrote:
> Apologies for the offtopicness of the question so first, if you know any 
> place where the questions would not be off topic let me know (please, no 
> stackoverflow...)
> 
> The question is, I'm trying to recover from a 20 years lag in CSS development 
> and I thought working first on a site where I can't change the HTML would be 
> a perfect choice since I can work on the selector spec and from there move to 
> more creative stuff.
> 
> Here is what I have now:
> 
> (sample, the links don't work)
> https://brandelune.github.io/code/Visiting-Functions.html
> 
> original
> https://www.gnu.org/software/emacs/manual/html_node/elisp/Visiting-Functions.html
> 
> and the css:
> https://brandelune.github.io/code/emacs.css
> 
> I'm trying to use a media query to target mobile browsers so I have that 
> thingy here in the middle:
> 
> @media (max-width: 40em) {
> ...
> }
> 
> On the Safari/Firefox responsive simulators, the things work perfectly well.
> When I check the page on my iPhone 11 or even on my wife's iPhone 6, I get 
> the standard page with super small characters and no reaction to the 
> max-width property.
> 
> And I have no idea what to do with that behavior... Where can I even start to 
> debug that ?
> 
> Jean-Christophe Helary
> ---
> http://mac4translators.blogspot.com @brandelune
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <https://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/D30E58AD-EE74-4E36-8E93-62CE71B5B6C6%40traduction-libre.org.
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <https://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/CAEmA4uYJqKY6XiA6Q8Drsx_4vNXJGfrORQvZwKN_J%2Bdazen%3DLg%40mail.gmail.com.

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://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/C54F804B-7B40-451B-B725-15B07ED5327A%40traduction-libre.org.


css help...

2019-12-26 Thread Jean-Christophe Helary
Apologies for the offtopicness of the question so first, if you know any place 
where the questions would not be off topic let me know (please, no 
stackoverflow...)

The question is, I'm trying to recover from a 20 years lag in CSS development 
and I thought working first on a site where I can't change the HTML would be a 
perfect choice since I can work on the selector spec and from there move to 
more creative stuff.

Here is what I have now:

(sample, the links don't work)
https://brandelune.github.io/code/Visiting-Functions.html

original
https://www.gnu.org/software/emacs/manual/html_node/elisp/Visiting-Functions.html

and the css:
https://brandelune.github.io/code/emacs.css

I'm trying to use a media query to target mobile browsers so I have that thingy 
here in the middle:

@media (max-width: 40em) {
...
}

On the Safari/Firefox responsive simulators, the things work perfectly well.
When I check the page on my iPhone 11 or even on my wife's iPhone 6, I get the 
standard page with super small characters and no reaction to the max-width 
property.

And I have no idea what to do with that behavior... Where can I even start to 
debug that ?

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://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/D30E58AD-EE74-4E36-8E93-62CE71B5B6C6%40traduction-libre.org.


Re: Barebones Website

2019-12-16 Thread Jean-Christophe Helary



> On Dec 17, 2019, at 8:30, Lawrence Salberg  wrote:
> 
> Does no one actually use BBEdit to build websites anymore?

Probably, and other editors too.
Not only for HTML/CSS but also for JS/PHP I guess.

> Even simple ones?

Define "simple". Last time I created a site it was on WP and even if the 
structure was "simple", nothing in the site itself was simple. There is no way 
I could reproduce that site by just typing things in my editor of choice.

> Is everything a CMS now

No. Or maybe not "WP/Drupal" like CMS. There are static CMS too. And there are 
complex sites too that don't depend on CMS.

> (and I'm a CMS expert, but still... I hate them and they drag on performance 
> for simple sites).

Then get back to the basics... :)


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://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/38DACE55-BDB5-4FD3-9C85-58500B15F79E%40traduction-libre.org.


Re: Help menu ?

2019-09-24 Thread Jean-Christophe Helary
Rich, Ryan,

Cool stuff :)

Too bad my Meta key is Cmd, I would have loved to replace S-Cmd-U with M-x ;)

JC

> On Sep 24, 2019, at 20:37, Rich Siegel  wrote:
> 
> On 9/24/19 at 5:13 AM, jean.christophe.hel...@traduction-libre.org
> (Jean-Christophe Helary) wrote:
> 
>> What's the easiest way to call the Help menu ?
>> 
>> I'm trying to use it as a way to call commands hidden in menus that
>> either don't come with a shortcut or have a shortcut I don't remember.
>> 
>> → Call Help, Type a few letters (like "Pref") navigate to "Prefix" (or
>> type "ix") then hit Enter.
> 
> The "Commands" command on the Go menu does exactly this; give it a try.
> 
> Enjoy,
> 
> R.
> -- 
> Rich Siegel Bare Bones Software, Inc.
>   <http://www.barebones.com/>
> 
> Someday I'll look back on all this and laugh... until they sedate me.
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <https://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/r480Ps-10146i-DB71FDE0EA6C4E0BA6222E920DD6D19B%40Stormwind.local.

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://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/E912BD38-FE26-4E70-BE69-4D90E031957C%40traduction-libre.org.


Help menu ?

2019-09-24 Thread Jean-Christophe Helary
What's the easiest way to call the Help menu ?

I'm trying to use it as a way to call commands hidden in menus that either 
don't come with a shortcut or have a shortcut I don't remember.

→ Call Help, Type a few letters (like "Pref") navigate to "Prefix" (or type 
"ix") then hit Enter.

I'm thinking of it as a kind of ad-hoc autocompletion. Similar to what emacs 
has after you hit M-x: you don't need to remember the function shortcut, just 
its name (or a part of its name, or just try a word that you think should be 
there, etc.)


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://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/F9C52B24-2FE2-4251-BF1D-C0092634E22B%40traduction-libre.org.


Re: longer search history ?

2019-08-29 Thread Jean-Christophe Helary
:) I'll definitely check there next time I have a similar question :)

Thank you.

> On Aug 30, 2019, at 9:18, Fletcher Sandbeck  wrote:
> 
> Search for BBEdit Expert Preferences in the manual for some additional 
> settings which you can adjust in the terminal like:
> By default, BBEdit will remember the 16 most recent search and replace 
> strings/patterns for the popup menu in the Find and Multi-File Search 
> windows. The size of this history is adjustable:
> 
> defaults write com.barebones.bbedit FindAndReplaceHistorySize -int [some 
> number]
> 
> A minimum history size of 2 is enforced. Setting the history to zero makes it 
> infinite.
> 
> [fletcher]
> 
>> On Aug 29, 2019, at 4:27 PM, Jean-Christophe Helary 
>> > <mailto:jean.christophe.hel...@traduction-libre.org>> wrote:
>> 
>> Is there a way to have a longer search history ?
>> 
>> Jean-Christophe Helary
>> ---
>> http://mac4translators.blogspot.com <http://mac4translators.blogspot.com/> 
>> @brandelune

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://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/C6D2E396-10E4-4A28-B7CA-5E8DBA025C68%40traduction-libre.org.


longer search history ?

2019-08-29 Thread Jean-Christophe Helary
Is there a way to have a longer search history ?

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://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/02D693B5-D5C5-4D59-9242-DA95B831F535%40traduction-libre.org.


Re: conditional regex replace...

2019-06-22 Thread Jean-Christophe Helary


> On Jun 23, 2019, at 10:29, Christopher Stone  
> wrote:
> 
> You CAN'T place a condition in the REPLACE part of the find dialog.
> 
> A normal regular expression find/replace doesn't have that capacity.
> 
> You have to use a programming language like Perl to manage such things.

Thank you for the confirmation Chris.


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/C0AB4CBD-0949-4097-A2C2-CFC8AFDEFDB0%40traduction-libre.org.


Re: conditional regex replace...

2019-06-22 Thread Jean-Christophe Helary
Patrick, Christopher,

Thank you for the replies.

I had tried to use a conditional statement in replace, something like:

search: ((m)|(M)aterial)
replace: (?(2)substance|Substance)

but that didn't work. It was the first time I tried to use conditional 
statements so I guess there's something I fundamentally did not understand 
about them :)

Jean-Christophe 

> On Jun 23, 2019, at 1:34, Patrick Woolsey  wrote:
> 
> On Jun 22, 2019, at 09:14, Jean-Christophe Helary 
>  wrote:
>> 
>> What if I want to replace in one command the following thing:
>> 
>> material → substance
>> Material → Substance
>> 
>> ie, how do I condition the change on the change of case...
>> 
> 
> Though both regular (string) and grep searches may use case-sensitive 
> matching, there's no way to conditionalize the replacement to have the same 
> case as the match.
> 
> I therefore suggest you instead use the Canonize command (Text -> 
> Canonize...) with the "Case sensitive" option enabled, and include both forms 
> in the transformation file.
> 
> Regards,
> 
> Patrick Woolsey
> ==
> Bare Bones Software, Inc. <https://www.barebones.com/>
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To post to this group, send email to bbedit@googlegroups.com.
> Visit this group at https://groups.google.com/group/bbedit.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/325F72AE-0F05-4879-8E70-7D6F6C80B2DE%40barebones.com.

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/76881972-5989-40B7-9072-DBB90A3E4C41%40traduction-libre.org.


conditional regex replace...

2019-06-22 Thread Jean-Christophe Helary
What if I want to replace in one command the following thing:

material → substance
Material → Substance

ie, how do I condition the change on the change of case...



Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/FE73A943-21B2-4115-A3C5-B6B9E6D84B03%40traduction-libre.org.


Re: Shortcut for "Deploy Site"?

2019-06-20 Thread Jean-Christophe Helary



> On Jun 20, 2019, at 11:36, Fabrizio Ferrari  wrote:
> 
> Thank you to everyone for your replies and help. I ended up contacting 
> support and they confirmed there isn't a short cut for that command yet, and 
> they are going to implement it in the next release.

Excellent !

> Thanks again!

*You* did it :)

Jean-Christophe 

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/92953DB1-3000-42D4-905E-8E4D236B0529%40traduction-libre.org.


Re: Shortcut for "Deploy Site"?

2019-06-19 Thread Jean-Christophe Helary


> On Jun 20, 2019, at 1:02, Gustave Stresen-Reuter  
> wrote:

> And finally, you said:
> 
> > I see only reachable via mouse under the cloud icon at the bottom of the 
> > sidebar.
> 
> I'm not sure what version of BBEdit you're using but maybe it's not the most 
> recent?

It's very much the most recent. If you check the manual, you see that you need 
to do a few things before getting to that display. If you search for "deploy" 
in the manual you'll find it.

> PS: It doesn't sit terribly well with me that your response is "No more 
> help?" rather than "I looked around some more and found that there are other 
> Mac system utilities such as Keyboard Maestro that will allow me to do what I 
> want."

Well, BBEdit has an extremely well documented manual and amazing preference 
settings, along with being advertized as *the* thing to work on HTML, so one 
has every right to expect that feature. But the command is not even in the AS 
dictionary.

> PPS: One of the advantages to paying for software is access to support. Have 
> you tried contacting support? They're normally quick to respond…

And they're here too.


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/74DAFFFD-AB70-447A-8C86-6336C09453B1%40traduction-libre.org.


Re: Shortcut for "Deploy Site"?

2019-06-19 Thread Jean-Christophe Helary
I just checked the preferences and the manual and it doesn't look like it's 
even possible to assign a shortcut to that item.

> On Jun 19, 2019, at 22:56, Fabrizio Ferrari  wrote:
> 
> No more help? Can anyone confirm that there isn't a keyboard shortcut for 
> that command?
> 
> 
> On Monday, June 17, 2019 at 4:56:40 AM UTC-7, Fabrizio Ferrari wrote:
> Hello everyone,
> I am a new user of BBedit and I am learning how to use it right now.
> 
> I like very much how the program allows deploying via FTP any changes made on 
> the local files, but I am wondering if there is a keyboard shortcut for the 
> "Deploy Site..." command which I see only reachable via mouse under the cloud 
> icon at the bottom of the sidebar.
> 
> Please, let me know, that'd be very useful!
> 
> Thanks.


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/2F55C1D6-408A-4345-8786-8E6661BF4A39%40traduction-libre.org.


Re: regexp - what am i missing???

2019-05-12 Thread Jean-Christophe Helary
Jan,

both  and ]+/> have a "(.*)" that matches 
the longest string, ie from the first " in the line to the last " in the line.

What you want is something like this: 

Jean-Christophe 

> On May 12, 2019, at 21:26, Jan Erik Moström  wrote:
> 
> I want to a simple search on a text like this
> 
> -
>  
> lkhlkhl
> 
> 
> 
>  
> 
> 
> -
> 
> where I want to pick out the file paths, in other words four matches.
> 
> I first wrote this expression "" but it matches both 
> items on the last lines (I don't understand why). I changed it to " src="(.*)"[^>]+/>" but with the same result.
> 
> What am missing?


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/67696A16-65C6-4D3E-82E5-8301B961E81D%40gmail.com.


Re: Can I have two documents open same time, side by side?

2019-04-29 Thread Jean-Christophe Helary
There is a free utility call Spectacle that helps you reorganize your windows, 
regardless of the application.

Put a window front, move it left, put another window front, move it right. And 
you're done.

You could also use AppleScript to do the same thing (@Christopher Stone wink 
wink :)

> On Apr 30, 2019, at 6:18, Richard Pitcairn  <mailto:doctorpitca...@gmail.com>> wrote:
> 
> I would like to visually compare two documents but can't see how to have both 
> open side by side. I have searched user manual and on line and not finding an 
> answer. Is it possible?
> Thanks,
> — Richard 

Jean-Christophe Helary
---
http://mac4translators.blogspot.com <http://mac4translators.blogspot.com/> 
@brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Want to strip text out of closed captions to send my father who's partially disabled.

2019-01-20 Thread Jean-Christophe Helary
You may want to tell us what you tried that didn't work so that we can help you 
understand what went wrong !

Jean-Christophe 

> On Jan 21, 2019, at 11:00, Dj  wrote:
> 
> Had to step out for the weekend and just got back to this. Thank you all  for 
> all these angles to approach it from. Endless amounts to learn!

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Want to strip text out of closed captions to send my father who's partially disabled.

2019-01-18 Thread Jean-Christophe Helary
I would use 2 expressions, one for the 2 first lines that seem to have a 
standard format, and one for the tags since their number seems to be arbitrary.

The first expression would be something like this:
search for :
\d+\r\d\d:\d\d:\d\d,\d\d\d --> \d\d:\d\d:\d\d,\d\d\d\r

replace with nothing

That way you get rid of the ID and time codes:

the kid has no idea what you mean

because you don't know what you mean but

you mean something like well don't be a

pain in the neck don't be a 
diva don't

be a don't be narcissistic and something

like that but 
you actually mean

something really important what you mean

And the second one would be:
search for
<[^>]+>

replace with nothing

And the result is:

the kid has no idea what you mean

because you don't know what you mean but

you mean something like well don't be a

pain in the neck don't be a diva don't

be a don't be narcissistic and something

like that but you actually mean

something really important what you mean


Jean-Christophe 
> On Jan 19, 2019, at 11:00, Dj  wrote:
> 
> Hello, my father is hard of hearing and I'd like to send him some closed 
> caption files so he can read the content like you would a book. Is there an 
> easy way to strip data out of the below example so it's only text, and not 
> timestamps and tags?  I've been failing trying to come up with an expression 
> the last few hours 
> 
> Original text is like below and I'm trying to fetch only the the spoken/text 
> elements so they sit next to each other without gaps. Is this a multi-part 
> operation, or is it possible with one expression? Thanks!
> 
> 1092
> 00:40:25,710 --> 00:40:29,220
> the kid has no idea what you mean
> 
> 1093
> 00:40:27,119 --> 00:40:31,019
> because you don't know what you mean color="#CC"> but
> 
> 1094
> 00:40:29,219 --> 00:40:33,149
> you mean something like well don't be a
> 
> 1095
> 00:40:31,019 --> 00:40:35,369
> pain in the neck don't be 
> a diva don't
> 
> 1096
> 00:40:33,150 --> 00:40:36,930
> be a don't be narcissistic and something
> 
> 1097
> 00:40:35,369 --> 00:40:39,059
> like that but 
> you actually mean
> 
> 1098
> 00:40:36,929 --> 00:40:42,089
> something really important what you mean
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <https://www.twitter.com/bbedit 
> <https://www.twitter.com/bbedit>>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To post to this group, send email to bbedit@googlegroups.com 
> <mailto:bbedit@googlegroups.com>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Easy way to open .html files in BBEdit vs. browser?

2018-10-23 Thread Jean-Christophe Helary


> On Oct 23, 2018, at 21:16, Roland Küffner  wrote:
> 
> On Tue, Oct 23, 2018 at 2:34 AM Jean-Christophe Helary  <mailto:brandel...@gmail.com>> wrote:
> 
> And Chris will probably jump in to talk about Fastscript or some other 
> wondermagical solution he has :)
> 
> If you find yourself throwing around files between different applications 
> very often, I'd highly recommend LaunchBar 
> (https://www.obdev.at/products/launchbar/index-de.html 
> <https://www.obdev.at/products/launchbar/index-de.html>). It provides 
> something like piping in the terminal, only for the whole OS. It works like a 
> charm with BBEdit. No matter if file, folder, a clipboard entry or a text 
> selection - BBEdit is always only a  and a  away.

With my "system", I call Spotlight and then >b gets me my "open in BBEdit" 
script.
Even without that, BB is enough to call it.

I do understand that those launchers have some real practical value, but I like 
to write the 3 AppleScript lines that will do just what I need :)


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Easy way to open .html files in BBEdit vs. browser?

2018-10-22 Thread Jean-Christophe Helary


> On Oct 23, 2018, at 11:02, David Brostoff  wrote:
> 
> On Oct 22, 2018, at 5:34 PM, Jean-Christophe Helary  
> wrote:
>> 
>> I have the same issue that I solved with a trivial bit of AppleScript
> 
> Thank you for this suggestion and for the detailed instructions.
> 
> I already solved this by using a keyboard shortcut with the "Open File in 
> BBEdit" service, as Roland Küffner suggested,

Yes, I saw that (because of the time difference I was still asleep at the time 
:)

Services are a good solution, especially since you can create your own with 
Automator. But as you saw, there is only a limited number of shortcuts that you 
can use...

> but I may use your solution for a similar problem I have with a different 
> application (opening some PDFs in Preview instead of Acrobat).

Feel free to do so.


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: automatic pasting into the search field !!!!!

2018-10-20 Thread Jean-Christophe Helary
Thank you Grant !

> On Oct 21, 2018, at 5:37, Grant Hutchinson  wrote:
> 
> 
>> On Oct 20, 2018, at 5:01 AM, Jean-Christophe Helary  
>> wrote:
>> 
>> Is it possible to disable the automating pasting of stuff into the search 
>> field ?
> 
> This behaviour can be turned off through Expert Preferences:
> 
> defaults write com.barebones.bbedit FindDialog_UsesFindScrap -bool NO
> 
> More information here:
> 
> http://www.barebones.com/support/bbedit/ExpertPreferences.html#texts


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


automatic pasting into the search field !!!!!

2018-10-20 Thread Jean-Christophe Helary
Is it possible to disable the automating pasting of stuff into the search field 
?


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Learning HTML CSS Javascript with BBEdit12

2018-10-11 Thread Jean-Christophe Helary
Thank you Kerri, I was not aware of that setting.

Jean-Christophe 

> On Oct 12, 2018, at 1:29, Kerri Hicks  wrote:
> 
> Perhaps helpful to the OP, the Markup->Edit Markup panel gives you a list of 
> eligible tags. "Insert Tag" on the in-document contextual menu (I use 
> right-click to invoke it) also gives you a picklist of eligible tags.
> 
> Also, depending on how your preferences are set, BBEdit doesn't require a 
> user action to trigger the autocompletion display. I didn't use a trigger in 
> the image below, I just waited half a second.
> 
> 
> 
> --Kerri
> 
> On Thu, Oct 11, 2018 at 11:39 AM Jean-Christophe Helary  <mailto:brandel...@gmail.com>> wrote:
> Regarding autocompletion for HTML/CSS/Javascript (and others), Coda (not 
> free) and Bluefish (free software) are excellent. They both automatically 
> display the autocompletion options as you type and let you select from a 
> drop-down menu located at point.
> 
> Emacs is like BBEdit, it requires user action to trigger the autocompletion 
> display.
> 
> Jean-Christophe 
> 
>> On Oct 11, 2018, at 23:47, DavidWeinberger > <mailto:da...@weinberger.org>> wrote:
>> 
>> No single tool is right for every job, so BBedit may not be the tool for 
>> you, at least at this point.
>> 
>> It may be that the free version of BlueGriffon would suit your needs better, 
>> at least for HTML and CSS; the last time I looked it, it wasn't doing much 
>> with JavaScript editing. BlueGriffon shows dialogue boxes that list all (?) 
>> the available options for HTML and CSS elements. It also lets you edit HTML 
>> directly, or by editing its source code.
>> 
>> Best of luck, and keep BBedit in mind as your needs evolve. 
>> 
>> David W.
>> Long-time happy BBedit user
>> 
>> 
>> Blue Griffon <http://bluegriffon.org/>n Wednesday, October 10, 2018 at 
>> 9:41:40 AM UTC-4, BB_HTML_JS wrote:
>>  i gave it a tray, i load all the Languages Packages and Clipping in BBEdit 
>> , didn't get it works like the authors apps
>> i was hopping to use it for learning HTML,CSS, javascript corse on the mac. 
>> 
>> i thing bbedit ist not my right apps for that, because i found  
>> the  completions libraries for Javascript and authors languages are  
>> limited, 
>> the user have to write his own stuffs. cod-less Lang..etc. 
>> i thing  BBedit is  Professional  strong for using it in authors 
>> professional work on the mac.
>> i triad   Notepad ++ , Brackets and VSCode  they  behaves just like a IDEs.
>> they have a gread competitions Doc Lang. Libraries inside.
>> for my learning i have to use Brackets. 
>> 
>> i will keep updating BBedit 12.
>> 
>> 
>> -- 
>> This is the BBEdit Talk public discussion group. If you have a 
>> feature request or need technical support, please email
>> "supp...@barebones.com <mailto:supp...@barebones.com>" rather than posting 
>> to the group.
>> Follow @bbedit on Twitter: <https://www.twitter.com/bbedit 
>> <https://www.twitter.com/bbedit>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "BBEdit Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to bbedit+unsubscr...@googlegroups.com 
>> <mailto:bbedit+unsubscr...@googlegroups.com>.
>> To post to this group, send email to bbedit@googlegroups.com 
>> <mailto:bbedit@googlegroups.com>.
>> Visit this group at https://groups.google.com/group/bbedit 
>> <https://groups.google.com/group/bbedit>.
> 
> Jean-Christophe Helary
> ---
> http://mac4translators.blogspot.com <http://mac4translators.blogspot.com/> 
> @brandelune
> 
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com <mailto:supp...@barebones.com>" rather than posting to 
> the group.
> Follow @bbedit on Twitter: <https://www.twitter.com/bbedit 
> <https://www.twitter.com/bbedit>>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To post to this group, send email to bbedit@googlegroups.com 
> <mailto:bbedit@googlegroups.com>.
> Visit this group at https://groups.

Re: Learning HTML CSS Javascript with BBEdit12

2018-10-11 Thread Jean-Christophe Helary
Regarding autocompletion for HTML/CSS/Javascript (and others), Coda (not free) 
and Bluefish (free software) are excellent. They both automatically display the 
autocompletion options as you type and let you select from a drop-down menu 
located at point.

Emacs is like BBEdit, it requires user action to trigger the autocompletion 
display.

Jean-Christophe 

> On Oct 11, 2018, at 23:47, DavidWeinberger  wrote:
> 
> No single tool is right for every job, so BBedit may not be the tool for you, 
> at least at this point.
> 
> It may be that the free version of BlueGriffon would suit your needs better, 
> at least for HTML and CSS; the last time I looked it, it wasn't doing much 
> with JavaScript editing. BlueGriffon shows dialogue boxes that list all (?) 
> the available options for HTML and CSS elements. It also lets you edit HTML 
> directly, or by editing its source code.
> 
> Best of luck, and keep BBedit in mind as your needs evolve. 
> 
> David W.
> Long-time happy BBedit user
> 
> 
> Blue Griffon <http://bluegriffon.org/>n Wednesday, October 10, 2018 at 
> 9:41:40 AM UTC-4, BB_HTML_JS wrote:
>  i gave it a tray, i load all the Languages Packages and Clipping in BBEdit , 
> didn't get it works like the authors apps
> i was hopping to use it for learning HTML,CSS, javascript corse on the mac. 
> 
> i thing bbedit ist not my right apps for that, because i found  
> the  completions libraries for Javascript and authors languages are  limited, 
> the user have to write his own stuffs. cod-less Lang..etc. 
> i thing  BBedit is  Professional  strong for using it in authors professional 
> work on the mac.
> i triad   Notepad ++ , Brackets and VSCode  they  behaves just like a IDEs.
> they have a gread competitions Doc Lang. Libraries inside.
> for my learning i have to use Brackets. 
> 
> i will keep updating BBedit 12.
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <https://www.twitter.com/bbedit 
> <https://www.twitter.com/bbedit>>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To post to this group, send email to bbedit@googlegroups.com 
> <mailto:bbedit@googlegroups.com>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Check for updates...

2018-09-30 Thread Jean-Christophe Helary


> On Oct 1, 2018, at 0:02, Rich Siegel  wrote:
> 
> On 9/30/18 at 8:33 AM, brandel...@gmail.com (Jean-Christophe Helary)
> wrote:
> 
>> I am running 11.6.8 and when I check for updates the messages tells me
>> that I am running the latest available version...
> 
> If at any previous point you had clicked "Skip This Version", a bug (now 
> fixed) in the updater would cause it to stop reporting any further updates.

Ok, thank you.

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Check for updates...

2018-09-30 Thread Jean-Christophe Helary
I am running 11.6.8 and when I check for updates the messages tells me that I 
am running the latest available version...

That's obviously a lie :)


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


autocompletion ?

2018-09-26 Thread Jean-Christophe Helary
I was wondering if there was something like Coda's automatic autocompletion 
suggestions...
For people who don't know, when you start typing a CSS property, Coda displays 
a drop-down when the possible values are shown, then it displays another 
drop-down for the possible values of that property. That's extremely useful and 
makes typing much faster.
For HTML, the dropdown displays all the possible attributes and then again all 
the possible values (including class names).

Also what about reindenting the selection ? In Emacs, when you have a selection 
you can get a reindentation based on the context.

I'm still using 11, so I may be missing features only present in 12.


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Open your files in your editor of choice (BBEdit version :)

2018-07-24 Thread Jean-Christophe Helary
Thank you Chris :)

Jean-Christophe 

> On Jul 25, 2018, at 5:26, Christopher Stone  
> wrote:
> 
> On 07/22/2018, at 04:20, Jean-Christophe Helary  <mailto:brandel...@gmail.com>> wrote:
>> Some trivial AppleScript almost 100% provided by Chris Stone :)
> 
> 
> Hey Jean-Christophe,
> 
> If you really want a one-size-fits-all approach then this is the way to go:
> 
> 
> # Auth: Christopher Stone
> # dCre: 2018/07/24 15:19
> # dMod: 2018/07/24 15:19 
> # Appl: Finder and any given application.
> # Task: Open the Finder selection with a given app's bundle identifier.
> # Libs: None
> # Osax: None
> # Tags: @ccstone, @Applescript, @Script, @Finder, @Open, @Finder, @Selection, 
> @Bundle, @Identifier, @ID
> 
> 
> # Bundle Identifier of the app you want to open the selected files.
> set appID to "com.apple.TextEdit"
> 
> tell application "Finder"
> set finderSelectionList to selection as alias list
> if length of finderSelectionList = 0 then error "No files were selected 
> in the Finder!"
> 
> open finderSelectionList using application file id appID
> 
> end tell
> 
> 
> 
> It should work with just about any application.
> 
> --
> Take Care,
> Chris
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit 
> <http://www.twitter.com/bbedit>>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To post to this group, send email to bbedit@googlegroups.com 
> <mailto:bbedit@googlegroups.com>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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 your files in your editor of choice (BBEdit version :)

2018-07-22 Thread Jean-Christophe Helary
Some trivial AppleScript almost 100% provided by Chris Stone :)

https://mac4translators.blogspot.com/2018/07/open-file-in-your-editor-of-choice.html


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune

-- 
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: PHP development ?

2018-07-20 Thread Jean-Christophe Helary


> On Jul 21, 2018, at 0:06, bruce linde  wrote:
> 
> mamp, git, vagrant.
> 
> i’ve been using mamp forever but my partner pushed me to try vagrant... i’m 
> now running both.

I'm checking Vagrant and I'm not sure how I could use that for Web/PHP 
development. Could you develop on that ?

Jean-Christophe 


> On Jul 20, 2018, at 6:11 AM, Jean-Christophe Helary  <mailto:brandel...@gmail.com>> wrote:

>> On Jul 20, 2018, at 22:00, Greg Raven > <mailto:gregra...@gmail.com>> wrote:
>>> 
>>> The best way I have found to do this is to have your PHP files in a BBEdit 
>>> project,
>> 
>> I've created a project for my files (I find projects hard to navigate, 
>> namely no apparent way to move around without having to use the mouse, but 
>> maybe I'm missing something). Basically a bunch of WP files.
>> 
>>> and then set the project settings to open a local website.
>> 
>> Can you be more specific ?
>> 
>>> To have a local website, you can use any of a number of methods, including 
>>> MAMP, HostBuddy, VirtualHostX, VirtualBox, etc.,
>> 
>> I'm using MAMP. I have the test site and the "production" site side by side, 
>> both managed under git and I'll be setting up sync to make sure I have 
>> everything under control. Then I need to find a way to sync to the ftp 
>> server (I don't have a clear idea how to do that but I'll get there 
>> eventually...)
>> 
>> Jean-Christophe 
>> 
>>> or you can set up your local Apache server to serve your site locally with 
>>> PHP. I just use the built-in Apache with modifications to the httpd.conf, 
>>> hosts, and vhosts files. There are a couple of fiddly bits involved when 
>>> doing it this way, but you don't have to download and maintain anything and 
>>> it works just fine.
>>> 
>>> On Thursday, July 19, 2018 at 9:13:42 PM UTC-7, Jean-Christophe Helary 
>>> wrote:
>>> 
>>> 
>>>> On Jul 20, 2018, at 10:04, Scott in Pollock > 
>>>> wrote:
>>>> 
>>>> You'll need a local server running PHP. Google 'MAMP'.
>>> 
>>> Sorry if that was not clear. I do have everything set up already.
>>> 
>>> I just need BBedit to "preview" my files not by calling file://... but by 
>>> calling http/localhost/...
>>> 
>>> What's happening now is that I edit/save PHP on BBedit and the switch to 
>>> Safari and reload. That's not practical. Is there a way to do call that 
>>> preview from BBedit directly ?


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: PHP development ?

2018-07-20 Thread Jean-Christophe Helary
> Hope this helps.

It sure does :) Thank you Greg !

JC

> On Jul 20, 2018, at 22:34, Greg Raven  wrote:
> 
> When you have your project open in BBEdit, in the bottom left corner of the 
> window, along the bottom, there are five icons. The "raining cloud" icon is 
> the one you want. Click on it and select "Site Settings …" at the top of the 
> pop-up list. Enable the "Use local preview server" option and fill in the URL 
> of your local instance (such as "http://wp-php-project.local;).
> 
> I'm guessing that you have only the wp-content folder (or some sub-folder of 
> wp-content) in your project. Otherwise, it gets messy.
> 
> For those without MAMP, Local by Flywheel is an excellent alternative for 
> local WordPress development.
> 
> Hope this helps.
> 
> On Friday, July 20, 2018 at 6:11:30 AM UTC-7, Jean-Christophe Helary wrote:
> 
> 
>> On Jul 20, 2018, at 22:00, Greg Raven > wrote:
>> 
>> The best way I have found to do this is to have your PHP files in a BBEdit 
>> project,
> 
> I've created a project for my files (I find projects hard to navigate, namely 
> no apparent way to move around without having to use the mouse, but maybe I'm 
> missing something). Basically a bunch of WP files.
> 
>> and then set the project settings to open a local website.
> 
> Can you be more specific ?
> 
>> To have a local website, you can use any of a number of methods, including 
>> MAMP, HostBuddy, VirtualHostX, VirtualBox, etc.,
> 
> I'm using MAMP. I have the test site and the "production" site side by side, 
> both managed under git and I'll be setting up sync to make sure I have 
> everything under control. Then I need to find a way to sync to the ftp server 
> (I don't have a clear idea how to do that but I'll get there eventually...)
> 
> Jean-Christophe 
> 
>> or you can set up your local Apache server to serve your site locally with 
>> PHP. I just use the built-in Apache with modifications to the httpd.conf, 
>> hosts, and vhosts files. There are a couple of fiddly bits involved when 
>> doing it this way, but you don't have to download and maintain anything and 
>> it works just fine.
>> 
>> On Thursday, July 19, 2018 at 9:13:42 PM UTC-7, Jean-Christophe Helary wrote:
>> 
>> 
>>> On Jul 20, 2018, at 10:04, Scott in Pollock > wrote:
>>> 
>>> You'll need a local server running PHP. Google 'MAMP'.
>> 
>> Sorry if that was not clear. I do have everything set up already.
>> 
>> I just need BBedit to "preview" my files not by calling file://... but by 
>> calling http/localhost/...
>> 
>> What's happening now is that I edit/save PHP on BBedit and the switch to 
>> Safari and reload. That's not practical. Is there a way to do call that 
>> preview from BBedit directly ?
>> 
>> 
>> Jean-Christophe Helary
>> ---
>> http://mac4translators.blogspot.com <http://mac4translators.blogspot.com/> 
>> @brandelune
>> 
>> 
>> 
>> -- 
>> This is the BBEdit Talk public discussion group. If you have a 
>> feature request or would like to report a problem, please email
>> "sup...@barebones.com <>" rather than posting to the group.
>> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit 
>> <http://www.twitter.com/bbedit>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "BBEdit Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to bbedit+un...@googlegroups.com <>.
>> To post to this group, send email to bbe...@googlegroups.com <>.
>> Visit this group at https://groups.google.com/group/bbedit 
>> <https://groups.google.com/group/bbedit>.
> 
> Jean-Christophe Helary
> ---
> http://mac4translators.blogspot.com <http://mac4translators.blogspot.com/> 
> @brandelune
> 
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit 
> <http://www.twitter.com/bbedit>>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com 
> <mailto:bbedit+uns

Re: PHP development ?

2018-07-20 Thread Jean-Christophe Helary


> On Jul 20, 2018, at 22:00, Greg Raven  wrote:
> 
> The best way I have found to do this is to have your PHP files in a BBEdit 
> project,

I've created a project for my files (I find projects hard to navigate, namely 
no apparent way to move around without having to use the mouse, but maybe I'm 
missing something). Basically a bunch of WP files.

> and then set the project settings to open a local website.

Can you be more specific ?

> To have a local website, you can use any of a number of methods, including 
> MAMP, HostBuddy, VirtualHostX, VirtualBox, etc.,

I'm using MAMP. I have the test site and the "production" site side by side, 
both managed under git and I'll be setting up sync to make sure I have 
everything under control. Then I need to find a way to sync to the ftp server 
(I don't have a clear idea how to do that but I'll get there eventually...)

Jean-Christophe 

> or you can set up your local Apache server to serve your site locally with 
> PHP. I just use the built-in Apache with modifications to the httpd.conf, 
> hosts, and vhosts files. There are a couple of fiddly bits involved when 
> doing it this way, but you don't have to download and maintain anything and 
> it works just fine.
> 
> On Thursday, July 19, 2018 at 9:13:42 PM UTC-7, Jean-Christophe Helary wrote:
> 
> 
>> On Jul 20, 2018, at 10:04, Scott in Pollock > wrote:
>> 
>> You'll need a local server running PHP. Google 'MAMP'.
> 
> Sorry if that was not clear. I do have everything set up already.
> 
> I just need BBedit to "preview" my files not by calling file://... but by 
> calling http/localhost/...
> 
> What's happening now is that I edit/save PHP on BBedit and the switch to 
> Safari and reload. That's not practical. Is there a way to do call that 
> preview from BBedit directly ?
> 
> 
> Jean-Christophe Helary
> ---
> http://mac4translators.blogspot.com <http://mac4translators.blogspot.com/> 
> @brandelune
> 
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit 
> <http://www.twitter.com/bbedit>>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To post to this group, send email to bbedit@googlegroups.com 
> <mailto:bbedit@googlegroups.com>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: PHP development ?

2018-07-19 Thread Jean-Christophe Helary


> On Jul 20, 2018, at 10:04, Scott in Pollock  wrote:
> 
> You'll need a local server running PHP. Google 'MAMP'.

Sorry if that was not clear. I do have everything set up already.

I just need BBedit to "preview" my files not by calling file://... but by 
calling http/localhost/...

What's happening now is that I edit/save PHP on BBedit and the switch to Safari 
and reload. That's not practical. Is there a way to do call that preview from 
BBedit directly ?


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


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


PHP development ?

2018-07-19 Thread Jean-Christophe Helary
Being new to PHP I'm looking for a way to easily develop and test code, in 
BBEdit possibly :)

What I seem to need first is a way to run the code I just wrote in a "preview" 
page that is called from localhost and not from the file system.

I do have a Safari tab open on localhost but the previews I get from BBedit run 
the file from the file system and thus don't execute PHP.

Any way to get around that ?

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: Introduction to regular expressions...

2018-07-12 Thread Jean-Christophe Helary
Thank you very much Barbara.

As I write in the article, I really started learning regex with the BBedit Lite 
use manual 20+ years ago.
Once you have the basics, you should really browse the Chapter 8 in the manual 
and see what regex feature you find potentially useful. I personally started to 
use some "advanced" features only this year. So you don't need to know 
everything, just to have an idea of what is there and how to find it :)

Also, if you have a regex problem this group is extremely helpful so never 
hesitate to ask questions (even if you think your question trivial).

Cheers,

Jean-Christophe 

> On Jul 13, 2018, at 7:14, Barbara Snyder  wrote:
> 
> Thanks, this will be useful to me.
> 
> -- Barbara
> 
> 
> On Thursday, July 5, 2018 at 4:34:44 PM UTC-7, Jean-Christophe Helary wrote:
> I had written this introduction back in 2011, based on TextWrangler. I 
> slightly updated it and changed some formatting to make it more readable. 
> 
> https://mac4translators.blogspot.com/2011/04/introduction-to-regular-expressions.html
>  
> <https://mac4translators.blogspot.com/2011/04/introduction-to-regular-expressions.html>
>  
> 
> 
> Jean-Christophe Helary 
> --- 
> http://mac4translators.blogspot.com <http://mac4translators.blogspot.com/> 
> @brandelune

-- 
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: Possibility of bbedit Terminal Command on SSH Connections

2018-07-11 Thread Jean-Christophe Helary


> On Jul 12, 2018, at 8:41, Rick Gordon  wrote:
> 
> The end result would be an executable that could be stored on the host system 
> and run similar to the basic syntax for the command-line executable as used 
> on the Mac, such as:
> 
> bbedit path-to-file
> 
> Does that even make any sense, in term of logistics?

If you have scp on the host system already a bash script would probably do, 
wouldn't it?

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: AppleScript syntax colouring? How?

2018-06-23 Thread Jean-Christophe Helary

> On Jun 24, 2018, at 1:28, Christopher Stone  
> wrote:
> Hey Martin,
> 
> See this page.
> 
> http://bbeditextras.org/wiki/index.php?title=Codeless_Language_Modules 
> <http://bbeditextras.org/wiki/index.php?title=Codeless_Language_Modules>
> 
> The modules available won't have as comprehensive coloring as the Script 
> Editor or Script Debugger, but they're better than nothing.

It must be the one I'm using...

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: selecting blocs of lines

2018-06-19 Thread Jean-Christophe Helary
:) Thank you Chris !

Jean-Christophe 

> On Jun 20, 2018, at 8:32, Christopher Stone  
> wrote:
> 
> On 06/10/2018, at 08:03, Jean-Christophe Helary  <mailto:brandel...@gmail.com>> wrote:
>> If there was a way to separate point and mark. I could leave the mark where 
>> I want, jump to some place in the document and I would have a selection.
>> 
>> I guess that's a valid feature request ?
> 
> 
> Hey Jean-Christophe,
> 
> You can do that with two scripts.  (Appended.)
> 
> A script that records the current insertion location.
> 
> And a script that will select from the recorded “marker” to the current 
> cursor location in the front document.
> 
> Save them as compiled scripts using the Script Editor.app.
> 
> Give them relevant keyboard shortcuts.
> 
> Go-to-town.
> 
> This line in script 2 is vitally important:
> 
> set scriptFile to alias ((path to application support from user domain as 
> text) & "BBEdit:Scripts:Mark_01.scpt")
> 
> The script name MUST be correct.
> 
> The script will function correctly when moving either forward or backward in 
> the document.
> 
> Once again I've provided no error-checking.  I added a very generic 
> error-handler to script 2 as an example.
> 
> I have not provided multiple document support.
> 
> Presently the marker is stored in the Marker_01 script and has no specific 
> linkage to the document, so it is very perishable.
> 
> If I was going to move beyond proof-of-concept I'd consider storing the 
> marker in a text file on a per-document basis using the document name and 
> character offset of the insertion location.  Reading, writing, and 
> maintaining this would be a trivial exercise with `sed` and would be very 
> fast.
> 
> --
> Take Care,
> Chris
> 
> 
> The Mark Script
> 
> 
> 
> # Auth: Christopher Stone
> # dCre: 2018/06/10 22:19
> # dMod: 2018/06/10 22:19 
> # Appl: BBEdit
> # Task: Create Marker 01 for use in other scripts.
> # Libs: None
> # Osax: None
> # Tags: @Applescript, @Script, @BBEdit, @Create, @Marker
> 
> 
> property insertionLocation : ""
> 
> tell application "BBEdit"
> tell front text window
> set insertionLocation to selection
> end tell
> end tell
> 
> 
> 
> 
> 
> The Select-from-Cursor-Location-to-Marker Script
> 
> 
> 
> # Auth: Christopher Stone
> # dCre: 2018/06/10 22:19
> # dMod: 2018/06/10 22:19 
> # Appl: BBEdit
> # Task: Select from Marker 01 to current cursor location.
> # Libs: None
> # Osax: None
> # Tags: @Applescript, @Script, @BBEdit, @Select, @Marker, @Current, @Cursor, 
> @Location
> 
> 
> try
> 
> set scriptFile to alias ((path to application support from user domain as 
> text) & "BBEdit:Scripts:Mark_01.scpt")
> set markScript to load script scriptFile
> 
> tell application "BBEdit"
> tell front text window
> set markedInsertionLocation to markScript's insertionLocation
> set insertionLocation to selection
> 
> set markedCharacterOffset to (characterOffset of 
> markedInsertionLocation)
> set currentCharacterOffset to (characterOffset of 
> insertionLocation)
> 
> if markedCharacterOffset < currentCharacterOffset then
> set startChar to markedCharacterOffset
> set endChar to currentCharacterOffset - 1
> else
> set startChar to currentCharacterOffset
> set endChar to markedCharacterOffset - 1
> end if
> 
> select (characters startChar thru endChar)
> 
> end tell
> end tell
> 
> on error e number n
> set e to e & return & return & "Num: " & n
> if n ≠ -128 then
> try
> tell application (path to frontmost application as text) to set 
> ddButton to button returned of ¬
> (display dialog e with title "ERROR!" buttons {"Copy Error 
> Message", "Cancel", "OK"} ¬
> default button "OK" giving up after 30)
> if ddButton = "Copy Error Message" then set the clipboard to e
> end try
> end if
&

Re: plist files ?

2018-06-17 Thread Jean-Christophe Helary
Thank you Tom :)

> On Jun 18, 2018, at 6:19, Tom Robinson  wrote:
> 
> On 2018-06-17, at 01:45, Jean-Christophe Helary  wrote:
>> 
>> When you open com.apple.Dock.plist for ex. BBEdit gives you a standard xml 
>> file. TextEdit or any other standard text editor (emacs, nano, etc.) give 
>> you a binary blob.
> 
> 
> From the friendly manual:
> 
>> BBEdit transparently opens and displays the contents of any bz2 or 
>> gzip-compressed files


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: plist files ?

2018-06-16 Thread Jean-Christophe Helary



> On Jun 16, 2018, at 22:25, François Schiettecatte  
> wrote:
> 
> plist files can be compressed, see the plutil command line for more info.

:) That's not what I am asking :)

When you open com.apple.Dock.plist for ex. BBEdit gives you a standard xml 
file. TextEdit or any other standard text editor (emacs, nano, etc.) give you a 
binary blob.

>> On Jun 16, 2018, at 6:11 AM, Jean-Christophe Helary  
>> wrote:
>> 
>> Is there something magic BBedit does to plist files before opening them ? 
>> When I open the same file in something else I get a binary blob...
>> 
>> 
>> Jean-Christophe Helary
>> ---
>> http://mac4translators.blogspot.com @brandelune

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


plist files ?

2018-06-16 Thread Jean-Christophe Helary
Is there something magic BBedit does to plist files before opening them ? When 
I open the same file in something else I get a binary blob...


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: AppleScript syntax colouring? How?

2018-06-12 Thread Jean-Christophe Helary


> On Jun 13, 2018, at 1:21, 'Martin Petersen' via BBEdit Talk 
>  wrote:
> 
> Thanks, but still no syntax colouring. Any idea?

That's probably something I added later on...

Jean-Christophe 

> 
> Am Dienstag, 12. Juni 2018 19:49:55 UTC+8 schrieb Jean-Christophe Helary:
> 
> 
>> On Jun 12, 2018, at 14:41, 'Martin Petersen' via BBEdit Talk 
>> > wrote:
>> 
>> Played around with the Demo and I must say I am impressed by the support for 
>> Regular Expressions in the find and replace dialogue. Yet I can not find 
>> support (syntax coloring) for AppleScripts. Neither is a .scpt file 
>> automatically recognized nor can I find AppleScript in the language scopes 
>> at the bottom of the window. I am sure I do something wrong but what?
> 
> A .scpt file is a compiled applescript. You need at least Script Editor to 
> open and edit it.
> 
> BBEdit works with .applescript files, which are non compiled applescript 
> documents.
> 
> 
> Jean-Christophe Helary
> ---
> http://mac4translators.blogspot.com <http://mac4translators.blogspot.com/> 
> @brandelune
> 
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit 
> <http://www.twitter.com/bbedit>>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To post to this group, send email to bbedit@googlegroups.com 
> <mailto:bbedit@googlegroups.com>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: AppleScript syntax colouring? How?

2018-06-12 Thread Jean-Christophe Helary


> On Jun 12, 2018, at 14:41, 'Martin Petersen' via BBEdit Talk 
>  wrote:
> 
> Played around with the Demo and I must say I am impressed by the support for 
> Regular Expressions in the find and replace dialogue. Yet I can not find 
> support (syntax coloring) for AppleScripts. Neither is a .scpt file 
> automatically recognized nor can I find AppleScript in the language scopes at 
> the bottom of the window. I am sure I do something wrong but what?

A .scpt file is a compiled applescript. You need at least Script Editor to open 
and edit it.

BBEdit works with .applescript files, which are non compiled applescript 
documents.


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: selecting blocs of lines

2018-06-10 Thread Jean-Christophe Helary


> On Jun 10, 2018, at 23:11, Rich Siegel  wrote:
> 
> Here is an excerpt from the 12.1 change notes:

Thank you ! I'm still on 11 so I missed that. I'll definitely consider the 
upgrade.


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: selecting blocs of lines

2018-06-10 Thread Jean-Christophe Helary


> On Jun 10, 2018, at 20:50, Herbert Schulz  wrote:
> 
>> On Jun 9, 2018, at 10:43 PM, Jean-Christophe Helary  
>> wrote:
>> 
>> What's the easy way to select a block of lines specified by line numbers?
>> 
>> Like, I have a big text and want to select from line 57 to line 293?
>> 
>> If I were in emacs, I'd put a mark (ctrl+@) at the beginning of line 57 and 
>> would jump to line 293, then a region would be created and I could work on 
>> it.
>> 
>> Is there an equivalent to setting a mark to create a selection in BBedit?
>> 
>> 
>> Jean-Christophe Helary
> 
> Howdy,
> 
> Click at the start line, go to the final line, Shift-Click at the end of that 
> line.

:) Yes.

But I was looking for something more automatic.

The problem with BBEdit is that point and mark are always the same (if you 
allow myself to speak in emacsese).

If there was a way to separate point and mark. I could leave the mark where I 
want, jump to some place in the document and I would have a selection.

I guess that's a valid feature request ?


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: selecting blocs of lines

2018-06-10 Thread Jean-Christophe Helary


> On Jun 10, 2018, at 17:24, Christopher Stone  
> wrote:
> 
> I forgot to mention that I'm not doing any error checking in that script.

Thank you for the reminder.

That's something I'm pretty sure I can add on my side, just in case. As 
homework for the remainder of the WE (already past 6pm on Sunday here...)

JC

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: selecting blocs of lines

2018-06-10 Thread Jean-Christophe Helary
Chris, thank you ! :)

JC

> On Jun 10, 2018, at 15:13, Christopher Stone  
> wrote:
> 
> On 06/09/2018, at 22:43, Jean-Christophe Helary  <mailto:brandel...@gmail.com>> wrote:
>> What's the easy way to select a block of lines specified by line numbers?
> 
> 
> Hey Jean-Christophe,
> 
> As far as I know there isn't one.
> 
> BBEdit does have a jump-to-line function (Cmd-J), but it doesn't allow for a 
> selection
> 
> You can roll-your-own and get as sophisticated as you want.
> 
> The appended script will pop-up a dialog and will accept the following input:


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


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


selecting blocs of lines

2018-06-09 Thread Jean-Christophe Helary
What's the easy way to select a block of lines specified by line numbers?

Like, I have a big text and want to select from line 57 to line 293?

If I were in emacs, I'd put a mark (ctrl+@) at the beginning of line 57 and 
would jump to line 293, then a region would be created and I could work on it.

Is there an equivalent to setting a mark to create a selection in BBedit?


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: BBEdit comes back to Mac App Store?

2018-06-06 Thread Jean-Christophe Helary
> I am surprised at how few machines are dropped between 10.12 and 10.14. I was 
> expecting my iMac and older MBP (both 2012) would be dropped this year, and 
> neither one is.

I see that my current early 2011 MBP will be dropped. What a shame. I just put 
an SSD drive and was thinking of changing the battery for another 7 years of 
use...


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: BBEdit comes back to Mac App Store?

2018-06-05 Thread Jean-Christophe Helary


> On Jun 5, 2018, at 17:20, @lbutlr  wrote:
> 
> So, anyone who watched the WWDC keynote heard that BBEdit is coming to the 
> App Store. They did not mention that it was coming BACK.

And they had more applause than Microsoft when announced :)


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: Feature request :)

2018-04-29 Thread Jean-Christophe Helary
Thank you Kerri too for the same suggestion.

> On Apr 30, 2018, at 4:11, Christopher Stone <listmeis...@suddenlink.net> 
> wrote:
> 
> Did you perhaps mean the sidebar?

Yes :) Sorry.

>> Is there an alternative (and quick) way to get the differences between 2 
>> given files ?
> 
> Cmd-Click on two files in the Project panel or the Currently Open Documents 
> panel of the sidebar, Right-Click, and select Compare.

That's funny that I did not notice Compare. Sorry for the hassle.


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


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


Feature request :)

2018-04-29 Thread Jean-Christophe Helary
I was selecting 2 files in the navigation bar earlier today and naively 
right-clicked on them expecting to find a "Find differences" menu there... But 
there were none !

Is there an alternative (and quick) way to get the differences between 2 given 
files ?

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Regular expression with negative look-behind assertion

2018-04-16 Thread Jean-Christophe Helary
Thank you for asking the question in the first place. It was my first time 
putting such devices into action, I really got interested in them !

JC

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

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Regular expression with negative look-behind assertion

2018-04-16 Thread Jean-Christophe Helary


> On Apr 16, 2018, at 15:59, F. Alfredo Rego <f.alfredor...@gmail.com> wrote:
> 
> Weird happenings, indeed.
> 
> I’m almost there, but not quite, because I’m interested in the UNCOMMENTED 
> #defines, such as line 5 here:
> 
> However, your suggested search pattern produces the COMMENTED #defines (all 
> lines EXCEPT line 5): 

On my side I get the uncommented lines.

(? 
> 
> 
> 
> 
> 
> 
> 
> 
> I tried several reversing/negating tricks and guesses, to no avail.
> 
> 
> As an added “feature”, the search produces reasonable results ONLY IF all the 
> lines are flush to the left margin, without any leading spaces. This means a 
> lot of pre-processing to left-justify #defines that are indented. Not an 
> attractive prospect.
> 
> 
> An interesting challenge. Beats me . . .
> 
> 
> Thanks.
> 
> Alfredo
> 
> 
>> On Apr 15, 2018, at 4:49 PM, Jean-Christophe Helary 
>> <jean.christophe.hel...@gmail.com <mailto:jean.christophe.hel...@gmail.com>> 
>> wrote:
>> 
>> It looks like you forgot a space.
>> 
>> But it's weird, because I can match (?> 
>> Jean-Christophe 
>> 
>>> On Apr 16, 2018, at 7:35, F. Alfredo Rego <f.alfredor...@gmail.com 
>>> <mailto:f.alfredor...@gmail.com>> wrote:
>>> 
>>> I’m trying to find all “enabled” defines such as this:
>>> 
>>> #define _some_enabled_define_
>>> 
>>> while excluding all “disabled” (commented) defines such as this:
>>> 
>>> // #define _some_disabled_define_
>>> 
>>> 
>>> This regular expression causes BBEdit to include both of the above kinds of 
>>> defines (“enabled” defines and “disabled” (commented) defines) in the 
>>> search results:
>>> 
>>> (?>> 
>>> As far as I believe, the forward slash is not a special character, but I 
>>> tried escaping it anyway:
>>> 
>>> (?>> 
>>> Same results.
>>> 
>>> 
>>> To test whether macOS supports a negative look-behind assertion, I tried an 
>>> obviously incorrect regular expression and got a reassuring error message 
>>> which tells me that, at least, the syntax for the negative look-behind 
>>> assertion is checked correctly:
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Am I missing something? Any clues?
>>> 
>>> Thanks.
>>> 
>>> Alfredo
>>> 
>>> 
>>> -- 
>>> This is the BBEdit Talk public discussion group. If you have a 
>>> feature request or would like to report a problem, please email
>>> "supp...@barebones.com <mailto:supp...@barebones.com>" rather than posting 
>>> to the group.
>>> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit 
>>> <http://www.twitter.com/bbedit>>
>>> --- 
>>> You received this message because you are subscribed to the Google Groups 
>>> "BBEdit Talk" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to bbedit+unsubscr...@googlegroups.com 
>>> <mailto:bbedit+unsubscr...@googlegroups.com>.
>>> To post to this group, send email to bbedit@googlegroups.com 
>>> <mailto:bbedit@googlegroups.com>.
>>> Visit this group at https://groups.google.com/group/bbedit 
>>> <https://groups.google.com/group/bbedit>.
>> 
>> Jean-Christophe Helary
>> ---
>> http://mac4translators.blogspot.com <http://mac4translators.blogspot.com/> 
>> @brandelune
>> 
>> 
>> 
>> -- 
>> This is the BBEdit Talk public discussion group. If you have a 
>> feature request or would like to report a problem, please email
>> "supp...@barebones.com <mailto:supp...@barebones.com>" rather than posting 
>> to the group.
>> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit 
>> <http://www.twitter.com/bbedit>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "BBEdit Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to bbedit+unsubscr...@googlegroups.com 
>> <mailto:bbedit+unsubscr...@googlegroups.com>.
>> To post to this group, send email to bbedit@googlegroups.com 
>> <mailto:bbedit@googlegroups.com>.
>> Visit this group at https://groups.google.com/group/bbedit 
>> <https://grou

Re: Regular expression with negative look-behind assertion

2018-04-15 Thread Jean-Christophe Helary
It looks like you forgot a space.

But it's weird, because I can match (? On Apr 16, 2018, at 7:35, F. Alfredo Rego <f.alfredor...@gmail.com> wrote:
> 
> I’m trying to find all “enabled” defines such as this:
> 
> #define _some_enabled_define_
> 
> while excluding all “disabled” (commented) defines such as this:
> 
> // #define _some_disabled_define_
> 
> 
> This regular expression causes BBEdit to include both of the above kinds of 
> defines (“enabled” defines and “disabled” (commented) defines) in the search 
> results:
> 
> (? 
> As far as I believe, the forward slash is not a special character, but I 
> tried escaping it anyway:
> 
> (? 
> Same results.
> 
> 
> To test whether macOS supports a negative look-behind assertion, I tried an 
> obviously incorrect regular expression and got a reassuring error message 
> which tells me that, at least, the syntax for the negative look-behind 
> assertion is checked correctly:
> 
> 
> 
> 
> 
> 
> Am I missing something? Any clues?
> 
> Thanks.
> 
> Alfredo
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit 
> <http://www.twitter.com/bbedit>>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To post to this group, send email to bbedit@googlegroups.com 
> <mailto:bbedit@googlegroups.com>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: scripting a grep replacement

2018-04-03 Thread Jean-Christophe Helary


> On Apr 3, 2018, at 14:44, Christopher Stone <listmeis...@suddenlink.net> 
> wrote:
> 
>> (how I wish TextEdit had regex too...)
> 
> It does have a rather horrible pattern matching syntax if you click on the 
> magnifying glass in the find field.

I know, but it doesn't work for my stuff.

> But – if you want real regular expression support in an RTF editor then you 
> should look at Jedit Omega <http://www.artman21.com/en/jeditOmega/>.

I actually tried Xcode for that but was not convinced... Thank you for the hint.

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: scripting a grep replacement

2018-04-02 Thread Jean-Christophe Helary
Re-Hello Chris, :)

> On Apr 3, 2018, at 12:25, Christopher Stone <listmeis...@suddenlink.net> 
> wrote:
> 
> Because you're referencing the wrong object – the window and not the window's 
> text.

Well, in fact it works with the window but the issue was my quoting of the 
"grep" option.
There are plenty of other issues with my code, but hey, that's my first BBedit 
AS *ever* :)

(how I wish TextEdit had regex too...)

> 
> 
> BBEdit is very recordable, so when you get stuck like this hit the record 
> button in the Script Editor (or Script Debugger), switch back to BBEdit and 
> do your task.

That's what helped me.

> BBEdit is very literal in how it records things, so very often some clean-up 
> is required.

I was surprised by the need to escape the escape even when the option was set 
to grep.

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: scripting a grep replacement

2018-04-02 Thread Jean-Christophe Helary
Thanks to BBedit being recordable I found my mistake. Sorry for the hassle.

tell application "BBEdit"
tell front window
replace "-+ \\d+> " using "" options {search mode:grep}
end tell
end tell

I always forget that constants are not strings... But the literal \\d was 
unexpected...

JC

> On Apr 3, 2018, at 11:39, Jean-Christophe Helary 
> <jean.christophe.hel...@gmail.com> wrote:
> 
> I'm not sure I understand why the following grep search doesn't work:
> 
> tell application "BBEdit"
>   tell front window
>   replace "^-+ " using "" options {search mode:"grep"}
>   end tell
> end tell
> 
> The string "-- " is present and the replace works when I don't use the grep 
> option and search for the literal string instead, so there must be something 
> wrong with the option syntax...
> 
> Jean-Christophe Helary
> -----------
> http://mac4translators.blogspot.com <http://mac4translators.blogspot.com/> 
> @brandelune
> 
> 

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


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


scripting a grep replacement

2018-04-02 Thread Jean-Christophe Helary
I'm not sure I understand why the following grep search doesn't work:

tell application "BBEdit"
tell front window
replace "^-+ " using "" options {search mode:"grep"}
end tell
end tell

The string "-- " is present and the replace works when I don't use the grep 
option and search for the literal string instead, so there must be something 
wrong with the option syntax...

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: HTML authoring - specifying a font

2018-03-16 Thread Jean-Christophe Helary


> On Mar 16, 2018, at 23:37, Nori Muster <norimus...@gmail.com> wrote:
> 
> Thanks David - this may be a good alternative to learning CSS like everyone 
> else recommended, but maybe it's about time I learn CSS anyway. 

What David sent is CSS.

If you check the link I sent you'll see that there are a few basic things that 
you have to know to do most of what you want. And no need to remember. Anytime 
you need CSS, just check the reference page.

> Oh computers - why do you challenge me all the time?
> Thank you for the code, Ill try it. Does  go up there above or below 
> <body>? I'm guessing just below <body>.

The <style> tag defines an "internal style sheet" and comes *inside* the <head> 
tag (which is above the <body> tag).

<a  rel="nofollow" href="https://www.w3schools.com/css/css_howto.asp">https://www.w3schools.com/css/css_howto.asp</a>

Jean-Christophe 

> Nori
> 
> On Friday, March 16, 2018 at 7:20:20 AM UTC-7, DavidWeinberger wrote:
> To save a click:
> 
> To put style info into the HTML doc itself, in the <head> section you'd add 
> something like this:
> 
> <style>
>   body{
>  font-family: Helvetica, sans-serif;
>   }
> 
> 
> (The san-serif provides an alternative for browsers that don't have the 
> Helvetica font installed, which will be approximately 0% of browsers, I 
> believe.)
> 
> David W.
> 
> 
> On Thursday, March 15, 2018 at 9:43:55 PM UTC-4, Jean-Christophe Helary wrote:
> 
> 
>> On Mar 16, 2018, at 9:53, Nori Muster <norim...@gmail.com <>> wrote:
>> 
>> I know how to set a typeface using  
>> But is there a way to change the whole document at the same time, like to 
>> put helvetica in the  line?
> 
> Yes, it is a technology that's called CSS (cascading style sheets) and it's 
> been around for a very long time.
> 
> You may want to check the W3schools tutorials to get up to speed:
> https://www.w3schools.com/Css/ <https://www.w3schools.com/Css/>
> 
> 
> Jean-Christophe Helary
> ---
> http://mac4translators.blogspot.com <http://mac4translators.blogspot.com/> 
> @brandelune
> 
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit 
> <http://www.twitter.com/bbedit>>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To post to this group, send email to bbedit@googlegroups.com 
> <mailto:bbedit@googlegroups.com>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: HTML authoring - specifying a font

2018-03-15 Thread Jean-Christophe Helary


> On Mar 16, 2018, at 9:53, Nori Muster <norimus...@gmail.com> wrote:
> 
> I know how to set a typeface using  
> But is there a way to change the whole document at the same time, like to put 
> helvetica in the  line?

Yes, it is a technology that's called CSS (cascading style sheets) and it's 
been around for a very long time.

You may want to check the W3schools tutorials to get up to speed:
https://www.w3schools.com/Css/


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


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

2018-02-15 Thread Jean-Christophe Helary


> On Feb 16, 2018, at 9:17, @lbutlr <krem...@kreme.com> wrote:
> 
> -- 
> If you must choose between two evils, pick the one you've never tried
> before.

Mail got fixed recently ?

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: Search, start at top and other things

2018-02-06 Thread Jean-Christophe Helary


> On Feb 5, 2018, at 11:44, Christopher Stone <listmeis...@suddenlink.net> 
> wrote:
> 
>> I can't seem to directly: 
>> set PREV_SEARCH_STRING to search string of PREV_SEARCH_STRING
> 
> Hey John,
> 
> Under some circumstances you have to expand the property before you can get 
> to the sub-properties:

How can one know in which case that it is necessary?

> tell application "BBEdit"
> set PREV_SEARCH_STRING to search string of (get current search strings)
> end tell
> 

Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: HTML5 support

2018-01-22 Thread Jean-Christophe Helary


> On Jan 22, 2018, at 22:46, Greg Raven <gregra...@gmail.com> wrote:
> 
> Third, I'm not finding either translate or fade as HTML5 elements, and they 
> don't even sound like elements, IMHO. Are you certain they are not attributes 
> or CSS?

translate is an attribute:
https://www.w3.org/International/questions/qa-translate-flag

There is a ling between the translate attribute and the ITS specification

"The ITS 2.0 specification has a normative dependency on the HTML5 
specification: it relies on the HTML5 Translate attribute. By publishing this 
Recommendation, W3C expects that the functionality specified in this ITS 2.0 
Recommendation will not be affected by changes to HTML5 as that specification 
proceeds to Recommendation."

https://www.w3.org/TR/its20/#html5-global-approach

It's a fascinating area of work, even if slightly off-topic in this thread :)


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
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: How to randomize a list?

2018-01-16 Thread Jean-Christophe Helary


> On Jan 16, 2018, at 21:34, Vlad Ghitulescu <v...@ghitulescu.de> wrote:

> homebrew
> 
> https://apple.stackexchange.com/questions/69223/how-to-replace-mac-os-x-utilities-with-gnu-core-utilities
> 
> Aha!
> Never thought I need this until now…

Homebrew is interesting for the breadth of choice and for the numerous 
applications that have newer versions that will *never* be updated on macOS 
(the applications stuck in the past ended up that way seemingly because Apple 
wants to avoid GPL 3 licences.)

Also, besides for the command line tools, you also have access to full .app 
applications that are also available as brew packages.

> sort 5.93 November 2005 SORT(1)

That's pretty old...


Jean-Christophe Helary
---
@brandelune http://mac4translators.blogspot.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: How to randomize a list?

2018-01-16 Thread Jean-Christophe Helary


> On Jan 16, 2018, at 21:36, Vlad Ghitulescu <v...@ghitulescu.de> wrote:
> 
>>> drwxr-xr-x@ 5 Vlad staff 170 14 Jan 21:17 .
>>> drwxr-xr-x@ 17 Vlad staff 578 15 Jan 06:44 ..
>>> -rwxr-xr-x@ 1 Vlad staff 111 1 Nov 2016 Delete_Viewed_Video_in_Lynda_TOC.pl
>>> -rwxr--r--@ 1 Vlad staff 69 15 Jan 06:32 Randomize.sh
>>> -rwxr-xr-x@ 1 Vlad staff 80 4 Nov 2015 Selection_To_Numbered_List.sh
>>> 
>>> How is this possible?
>> 
>> See the `x` in column 4? That indicates that `Randomize.sh` is in fact 
>> executable,  _by the owner_  (you). BBEdit also runs as you, so it can 
>> execute the script just fine.
> 
> Why do the others have an x on column 7 (that's groups, right?!)?

Because the group (staff) has read and execute (search for directories) access 
on them.


Jean-Christophe Helary
---
@brandelune http://mac4translators.blogspot.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: How to randomize a list?

2018-01-15 Thread Jean-Christophe Helary


> On Jan 15, 2018, at 14:46, Vlad Ghitulescu <v...@ghitulescu.de> wrote:
> 
> What are the GNU Coreutils good for?

They are common Linux utilities of which some BSD equivalents are present on 
macOS.

https://www.gnu.org/software/coreutils/manual/coreutils.html

> Should I install them too? (I've read about the difference in the performance 
> of the various randomizer solutions in the previous cited 
> StackOverflow-threads)
> And if so, how?

homebrew

https://apple.stackexchange.com/questions/69223/how-to-replace-mac-os-x-utilities-with-gnu-core-utilities

> That means that the "stock macOS" on my Sierra 10.12.6 are older than… what?

:) High Sierra ?

I never used sort -R before, but as I wrote the manual has 2015 as a date and 
Sierra was released in 2016, so I guess Apple saw fit to upgrade sort for High 
Sierra.

Would you mind checking the date at the end of the sort man page on your 
machine?


Jean-Christophe Helary
---
@brandelune http://mac4translators.blogspot.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: How to randomize a list?

2018-01-13 Thread Jean-Christophe Helary
shuf requires coreutils which is not in macOS by default. You can install it 
with homebrew.

sort -R seems to be available in recent versions of macOS (the man page 
indicates a 2015 date).

There is also a solution with Perl as given here:

https://stackoverflow.com/questions/2153882/how-can-i-shuffle-the-lines-of-a-text-file-on-the-unix-command-line-or-in-a-shel

Jean-Christophe 

> On Jan 14, 2018, at 8:50, Sam Hathaway <list.bbe...@munkynet.org> wrote:
> 
> Make a text filter called Randomize with the contents:
> 
> #!/bin/sh
> exec shuf
> 
> Text filters go in ~/Library/Application Support/BBEdit/Text Filters. I think 
> they probably have to be executable. Running these command in Terminal should 
> do the trick:
> 
> cd ~/Library/Application\ Support/BBEdit
> mkdir -p Text\ Filters
> cd Test\ Filters
> echo -e "#!/bin/sh\necho shuf" > Randomize
> chmod +x Randomize
> 
> You should then see it in the “Apply Text Filter” submenu of the “Text” menu.
> 
> Hope this helps!
> -sam
> 
> On 13 Jan 2018, at 14:46, Vlad Ghitulescu wrote:
> 
> Hello!
> 
> I have a list of difficult words / phrases for my son (see below) that I want 
> to randomize in order to keep the boy awake :-)
> 
> I've found similar (old!) questions:
> 
> http://bbedit-talk.barebones.narkive.com/jXrdz0T6/randomize-lines
> 
> https://stackoverflow.com/questions/2153882/how-can-i-shuffle-the-lines-of-a-text-file-on-the-unix-command-line-or-in-a-shel
> 
> https://stackoverflow.com/questions/886237/how-can-i-randomize-the-lines-in-a-file-using-standard-tools-on-red-hat-linux
> 
> https://superuser.com/questions/760732/randomly-shuffle-rows-in-a-large-text-file
> 
> but I couldn't find out how to make them work in BBEdit (so I ended using 
> http://www.randomizelist.com until I get a hint from you ;-).
> 
> Could you please help me?
> 
> Thanks!
> 
> Regards,
> Vlad
> 
> P.S. Here's the current list:
> 
> ähnlich
> Antrieb
> auspacken
> blitzschnell
> Brot
> Brücke
> Bruder
> Brunnen
> Bus
> diesem
> Dreieck
> Eichhörnchen
> Ellenbogen
> er hat
> Erfolg
> Erlebnis
> erschrecken
> erzählen
> Fahrzeug
> fallen
> feuerspeiend
> Flicken
> Förster
> Fritz
> Fußball
> Gefahr
> Glück
> groß
> Hals
> hässlich
> hell
> hellblau
> hellbraun
> hellgelb
> hellgrün
> hellorange
> hier
> ich heiße
> ich wünsche mir
> Idee
> ihm
> im Gesicht
> in der letzten Reihe
> Kinderkramm
> Kiste
> knacken
> können
> Leggings
> lieb
> lieber
> Lippen
> Mädchen
> man kann
> Märchen
> Maschine
> Mitte
> Nachmittag
> nichts wie hin
> ohne
> Ohren
> Platz
> Prinz
> Pullover
> Pumpe
> Punkte
> quer
> Rand
> Rasen
> rechts
> schlau
> Schloss
> schützen
> schwarz
> schwimmen
> sehen
> Seite
> sie
> sie sieht aus
> sitzen
> sogar
> Sommersprossen
> Sonne
> Spaß
> spielen
> Staub
> Straße
> Tier
> Tropfen
> tun
> verrückt
> verstecken
> viel
> voll
> von
> vor
> wartet
> Wasser
> Werkstatt
> Werkzeug
> zusammen
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: http://www.twitter.com/bbedit
> --- You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To post to this group, send email to bbedit@googlegroups.com.
> Visit this group at https://groups.google.com/group/bbedit.
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To post to this group, send email to bbedit@googlegroups.com.
> Visit this group at https://groups.google.com/group/bbedit.

Jean-Christophe Helary
---
@brandelune http://mac4translators.blogspot.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: Help: How to Find and Replace Tags

2018-01-11 Thread Jean-Christophe Helary


> On Jan 12, 2018, at 6:54, bcross <bcr...@gracebiblerichmond.org> wrote:
> 
> I want to find all instances of this tag in my document: 
> .*?

([^<]*)

> and replace it with:
> .*?  

\1

Everything you need to know is in the regex chapter of the BBEdit manual.


Jean-Christophe Helary
---
@brandelune http://mac4translators.blogspot.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: Are there any special features about this code editor?

2017-11-30 Thread Jean-Christophe Helary


> On Nov 30, 2017, at 22:44, Roland Küffner <medienmeis...@gmail.com> wrote:
> 
> for a really comprehensible comparison, see:
> https://kieranhealy.org/blog/archives/2011/07/29/text-editors-in-the-lord-of-the-rings/
>  
> <https://kieranhealy.org/blog/archives/2011/07/29/text-editors-in-the-lord-of-the-rings/>

Although arguably a better essay by Healy is:
https://kieranhealy.org/blog/archives/2011/07/17/what-i-mean-is-that-i-have-marx-in-my-bones-and-you-have-him-in-your-mouth/

where he makes a parallel between having Marx in your mouth vs having him in 
your bones and Brad Delong's critique of David Harvey.

And I'm sure he wrote that in BBEdit.

So I guess another feature of the beast is:

• You can write powerful critiques of false marxists with it.
  (or other really cool and/or earth shattering things)


Jean-Christophe Helary
---
@brandelune http://mac4translators.blogspot.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: Are there any special features about this code editor?

2017-11-27 Thread Jean-Christophe Helary


> On Nov 28, 2017, at 1:51, Madelyn Bingham <madelyn.bing...@gmail.com> wrote:
> 
> Are there any special features about BBEdit that make it special or set it 
> apart?

Applescript support, integration with the system, as Christopher described.

As far as "text editing" proper is concerned, even TextEdit covers most of the 
basic needs of a writer.

BBEdit's core functions cover *anything* a coder in any language needs.
BBEdit also has a lot of HTML editing related functions.

The only "serious" editing thing I don't do in BBEdit is validate and correct 
xml files. The day BBEdit offers a solution similar to Emacs' nxml mode I'll 
quit using Emacs for that (maybe it's there but I've not found it).

> What are some tips and tricks to using this code editor?

1) Check the (excellent) manual for complex tasks that you'd like to accomplish.
2) Ask here.



Jean-Christophe Helary
---
@brandelune http://mac4translators.blogspot.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: Applescript development workflow ?

2017-10-18 Thread Jean-Christophe Helary


> On Oct 19, 2017, at 9:09, Patrick Woolsey  wrote:
> 
>> I was wondering if there was a recommended Applescript development workflow 
>> in BBEdit ?
>> (I'm also using SD and sometimes Script Editor, so I know how it works there)
> 
> If you mean writing and running AppleScript within BBEdit, then there is not, 
> and I use Script Debugger for that purpose myself (though I will occasionally 
> copy the contents of a script into BBEdit for some quick searching & 
> replacement before pasting it back :-).

I remember when I started using Script Debugger that I felt it would be hard to 
have a "proper" development workflow (whatever that actually means for me...) 
without version control, and I started a thread on the SD forum about that, the 
conclusion being that as long as you work with compiled scripts (and SD needs 
to compile to get proper syntax coloring), there is no way to do version 
control since scripts are binary blobs.

Until today, just a few minutes before I posted here, when I realized that I 
could work with text .applescript files in SD, and run them for testing etc. 
version control them and create a compiled version for "real" use. Honestly, I 
don't know why it took me so long to realize that.

In the meanwhile I erred on the Emacs side where they have a (sadly slightly 
outdated) applescript mode that does *everything* in Emacs, by accessing 
osacompile etc. Hence the possibility to work in a real text editing 
environment and still work with Applescript.

I've never actually used BBEdit for much more than regex search/replacements 
(and I can't praise your manual enough on that subject :) so I was wondering if 
there were ways to use the tools provided to create some kind of "applescript 
mode" for BBEdit...

Jean-Christophe

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Applescript development workflow ?

2017-10-18 Thread Jean-Christophe Helary
I was wondering if there was a recommended Applescript development workflow in 
BBEdit ?

(I'm also using SD and sometimes Script Editor, so I know how it works there)

Jean-Christophe

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Window's bounds in fullscreen

2017-10-15 Thread Jean-Christophe Helary
Please ignore that message. For some reason Script Debugger was not giving me 
the good values, or maybe I was not reading them properly. Apologies.

Jean-Christophe 


> On Oct 15, 2017, at 17:57, Jean-Christophe Helary 
> <jean.christophe.hel...@gmail.com> wrote:
> 
> There is a discussion on how to detect if a window is fullscreen on the AS 
> user list and BBEdit (11, I guess) displayed a weird behavior:
> 
> "regardless of whether the window is new (default size) or fullscreen 
> BBEdit's windows keep the same bounds ({0, 22, 1009, 800} on my screen). 
> Position is thus {0, 22} regardless of the state of the window."
> 
> There does not seem to be a way to detect whether a given window is in 
> Fullscreen mode or not, hence us trying to find ways to do that using various 
> window informations. I managed to do that with Terminal by comparing the 
> number of rows to the max possible if the window was fullscreen (machine 
> specific, but that was the best I could find), and other people have tried 
> with "position" or "bounds", which do seem to be better approximations. Hence 
> the check with BBEdit.
> 
> My understanding is that BBEdit 12 uses a lot more native frameworks, so 
> would the weird result above be fixed there ? Do developers have a way to 
> reliably show a window's "fullscreenness"?
> 
> Jean-Christophe

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


Window's bounds in fullscreen

2017-10-15 Thread Jean-Christophe Helary
There is a discussion on how to detect if a window is fullscreen on the AS user 
list and BBEdit (11, I guess) displayed a weird behavior:

"regardless of whether the window is new (default size) or fullscreen BBEdit's 
windows keep the same bounds ({0, 22, 1009, 800} on my screen). Position is 
thus {0, 22} regardless of the state of the window."

There does not seem to be a way to detect whether a given window is in 
Fullscreen mode or not, hence us trying to find ways to do that using various 
window informations. I managed to do that with Terminal by comparing the number 
of rows to the max possible if the window was fullscreen (machine specific, but 
that was the best I could find), and other people have tried with "position" or 
"bounds", which do seem to be better approximations. Hence the check with 
BBEdit.

My understanding is that BBEdit 12 uses a lot more native frameworks, so would 
the weird result above be fixed there ? Do developers have a way to reliably 
show a window's "fullscreenness"?

Jean-Christophe

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: BBEdit for Writers

2017-10-11 Thread Jean-Christophe Helary
Very interesting.

In your "Why not use" section, I would have put Emacs.app. I'd guess the 
objections would look like Scrivener's, or maybe would be the foreign shortcuts.

Jean-Christophe 

> On Oct 12, 2017, at 2:10, Stories & Novels  wrote:
> 
> I put together a short guide that might be of interest to someone new to 
> BBEdit and wondering if it would work well for writing prose.
> 
> BBEdit for Writers: A Guide and Appreciation 
>  (storiesandnovels.com/bbedit)
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter:  >
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to bbedit@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/bbedit 
> .

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Select text in HTML between and

2017-08-16 Thread Jean-Christophe Helary

> On Aug 15, 2017, at 14:49, hstrobe  wrote:
> 
> How can I modify the regex (if possible) to handle the following HTML with a 
> sub-div ?

Use indentation as a marker ?

Jean-Christophe 

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: compare docx files?

2017-07-26 Thread Jean-Christophe Helary

> On Jul 27, 2017, at 9:31, Jeffrey Jones  wrote:
> 
> Of course BBEdit can open a ZIP file. You can browse the contents of a docx 
> using BBEdit's Disk Browser feature. I don't think you can compare them, or I 
> wouldn't know how. Or why you would use BBEdit to do so.

I'm pretty sure Word has a compare function.

Jean-Christophe 

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: [] or | ?

2017-05-17 Thread Jean-Christophe Helary
Thank you solak, that's exactly the issue. We found about it when I was 
exploring ways to fix an "open text path with emacs" kind of service, at the 
same time as I noticed the equivalent service in BBEdit was not working as 
expected. Interesting how fixing a seemingly small issue can lead to finding 
deep implementation bugs...

Jean-Christophe 

> On May 18, 2017, at 3:17, solak  wrote:
> 
> Oh, it is definitely the case that if the pattern in question is then 
> concatenated into a more complex pattern, then '[ab]' is equivalent to 
> '(a|b)' but not to 'a|b'.
> 
> Consider that the function to which the pattern is given might then be 
> searching for, something like '^(?:(.*?)[ab])*(.*)$' or '^(?:(.*?)a|b)*(.*)$' 
> to populate \1 \2 … with the various substrings of the long string with 
> delimiters.
> 
> I suggest that this indicates a bug in the split-string function, which ought 
> to wrap the delimiter pattern so that it tells the RE engine to match 
> '^(?:(.*?)(?:a|b))*(.*)$' instead.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: [] or | ?

2017-05-09 Thread Jean-Christophe Helary
Thank you everybody for the replies.

My use case is not BBEdit based so I'm not sure it is relevant here (well, I' 
sure it is *not* relevant rather... :)

It is a discussion we're having on emacs-devel where the official split-string 
function will give 2 different results based on wether you use [ab] or a|b as 
an argument for the "trim" regex. There seems to be a bug somewhere since the 
arguments give the same result for [ab] and (a|b), and since I learned 
everything I know about regex with BBLite, I thought about asking here :)

Jean-Christophe 

> On May 10, 2017, at 1:33, Patrick Woolsey <pwool...@barebones.com> wrote:
> 
> On 5/9/17 at 10:10 PM, jean.christophe.hel...@gmail.com (Jean-Christophe 
> Helary) wrote:
> 
>> I'm wondering if [] and | are equivalent for single characters or if there 
>> are marginal cases where they would not be equivalent ?
>> 
> 
> Though the expressions [ab] and a|b { or ([ab]) and (a|b) } are functionally 
> equivalent (provided that 'a' and 'b' are unitary characters), I can't 
> guarantee that they are logically equivalent since the alternation operator 
> has a lower precedence (and that I can't think of a counter-example offhand 
> doesn't mean there isn't one :-).
> 
> Since however I would not ordinarily use these expressions interchangeably, 
> may I ask what your use case is?
> 
> 
> Regards,
> 
> Patrick Woolsey
> ==
> Bare Bones Software, Inc. <http://www.barebones.com/>
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
> --- You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To post to this group, send email to bbedit@googlegroups.com.
> Visit this group at https://groups.google.com/group/bbedit.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: [] or | ?

2017-05-09 Thread Jean-Christophe Helary
David,

Thank you for your reply.

> On May 9, 2017, at 20:05, Dave <dave.live...@gmail.com> wrote:
> 
> Parsimony aside, since the pipe defines alternative patterns, there is no way 
> to create patterns like (dog|cat) using character classes. 

Hence the question "I'm wondering if [] and | are equivalent for *single 
characters*". (emphasis added).

So the question is, for any arbitrary a and b, are [ab] and a|b logically 
equivalent, or are there cases for some a and b where it is not the case?

Jean-Christophe

> 
> On Monday, May 8, 2017 at 10:10:45 PM UTC-4, Jean-Christophe Helary wrote:
> I'm wondering if [] and | are equivalent for single characters or if there 
> are marginal cases where they would not be equivalent ? 

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