Re: Displaying Code Page 437

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

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

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

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


Re: Possible with Grep?

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

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

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

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/48a8df4d-9c08-476f-9879-997254829881n%40googlegroups.com.


Re: Most BBEdit-like Terminal Editor ??

2024-02-28 Thread Rick Gordon


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

Rick Gordon

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/cdba45d4-86bc-4360-8653-08bff10644c3n%40googlegroups.com.


Most BBEdit-like Terminal Editor ??

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

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


Re: BBEdit Environment for html

2024-01-29 Thread Rick Yentzer
I think Local is the easiest to quickly get up and running. Mamp is good 
too. DevKinsta is another one that Docker containers, but it really easy to 
use. Of these three, I'd choose Local or Mamp.
If you want to piece it together yourself, you can install php with 
Homebrew on the command line.
On Thursday, January 25, 2024 at 8:34:33 AM UTC-5 Massimo Rainato wrote:

>
>
> Il giorno 24 gen 2024, alle ore 21:40, Bucky Junior  
> ha scritto:
>
> I have BBEdit open ALL the time. I use it mostly to write web pages using 
> a combination of HTML, mySQL, PHP, and apache to write and test my work 
> before uploading it into the wild.
>
> I've run into a problem I've been unable to surmount. Apple no longer 
> supports PHP. In Ventura, I was able to internally codesign PHP so that I 
> could use it on my machine. With Somoma, I've codesigned PHP but run into a 
> barrier of some PHP component that's not signed and so apache fails.
>
> What are other developers, more capable than I are doing with BBEdit, 
> apache, and PHP. I've considered the homebrew version of apache but am 
> hesitant to make the plunge.
>
> Suggestions?
>
>
> my 2c on https://www.mamp.info 
>
>
> Massimo Rainato
> massimo...@gmail.com
>
>
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/1a8d3deb-18e9-423d-9c9f-692bca901262n%40googlegroups.com.


Re: BBEdit 15.0 and Sonoma

2024-01-11 Thread Rick Yentzer
None here either!

On Wednesday, January 10, 2024 at 8:18:59 PM UTC-5 Maxime Audet wrote:

> No problem here!
>
> On Tuesday, January 9, 2024 at 9:58:41 PM UTC-5 Bruce Van Allen wrote:
>
>> None over here 
>>
>> — Bruce 
>>
>> _bruce__van_allen__santa_cruz_ca_ 
>>
>>
>> > On Jan 9, 2024, at 6:27 PM, 'Steve Nicholson' via BBEdit Talk <
>> bbe...@googlegroups.com> wrote: 
>> > 
>> > I’ve been holding off upgrading my Mac to Sonoma specifically because 
>> of BBEdit 14. All my other apps have given Sonoma the thumbs-up. Are there 
>> significant problems using BBEdit 15 with Sonoma? 
>> > 
>> > -Steve 
>> > 
>>
>>

-- 
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/c5a6fe95-2624-4286-9c89-2dd4b8c81170n%40googlegroups.com.


Re: Automatically indent python code

2024-01-08 Thread Rick Yentzer
Hi Claudio,
I mainly use Black for Python formatting as well. 
They have nice documentation that shows how to customize its output. 
That may get you closer to what you want. 
https://black.readthedocs.io/en/stable/index.html

On Wednesday, December 27, 2023 at 2:11:06 PM UTC-5 Todd Ingalls wrote:

> Hi Claudio
> Just to note there are other python formatters available,  for 
> instance yapf https://pypi.org/project/yapf/ which you mind find of 
> value. It can be used in BBedit in a similar way
>
> On Wednesday, December 27, 2023 at 1:22:00 PM UTC-5 Claudio Pedrazzi wrote:
>
>> Hi Jean
>> I sincerely thank you for your rather comprehensive and instructive 
>> reply.  I installed black (it also installs with *pip3 install black*) 
>> and tried it on my code.  It does much more than just fix the indentation! 
>> I don't always agree with the changes.  Also I do not like that it 
>> overwrites the original source file.  However, this has nothing to do with 
>> my question, which I consider adequately answered.  I now understand that 
>> indenting Python code is not as "straightforward" as I thought.
>> Thanks again for the clarification
>> Claudio Pedrazzi
>>
>> Il giorno mer 27 dic 2023 alle ore 16:23 jj  ha 
>> scritto:
>>
>>> Hi Claudio,
>>>
>>> You should never infer that something cannot be done with BBEdit.
>>> BBEdit has an incredibly useful toolset for editing text and code.
>>> So there is certainly a way with regular expressions to do what you 
>>> want. 
>>>
>>> But ... reformatting Python code is not as simple as it sounds because 
>>> of indentation,
>>> line width wrapping, etc.
>>>
>>> The recommended *Black* Python formatter is a tool that addresses those 
>>> difficulties.
>>>
>>> You can install it on you system with *Homebrew* .
>>>
>>> Once *Homebrew *is installed, use it in the terminal to install *black*:
>>>
>>> % brew install black
>>> 
>>> Once *black *is installed, you can use it from the terminal:
>>> 
>>> % black /path/to/your/python_file.py
>>>   
>>> Or you can also create a BBEdit Text Filter that will allow you to use 
>>> it from BBEdit.
>>>
>>> Create a file with this content at this location ~/Library/Application 
>>> Support/BBEdit/Text Filters/black.sh.
>>>
>>> #!/usr/bin/env zsh
>>>
>>> black -q -
>>>
>>> Give the *black.sh* shell script the executable permissions.
>>> You should now have in BBEdit a menu *Text > Apply Text Filter > black* you 
>>> can use to reformat you python files.
>>>
>>> If you need help on *black*, in the terminal type:
>>>
>>> % black --help
>>>
>>> HTH
>>>
>>> Jean Jourdain
>>>
>>> On Tuesday, December 26, 2023 at 2:30:07 PM UTC+1 Claudio Pedrazzi wrote:
>>>
 Hi Jean

 thanks a lot for the reply!

 So can I infer from your answer, that BBEdit is not able to do the 
 requested task, even in the paid (pro) version?

 Claudio

 Il giorno lunedì 25 dicembre 2023 alle 21:09:05 UTC+1 jj ha scritto:

> Claudio,
>
> You should take a look at :
> https://github.com/psf/black
> HTH
>
> Jean Jourdain
>
> On Monday, December 25, 2023 at 6:05:52 PM UTC+1 Claudio Pedrazzi 
> wrote:
>
>> Hi everyone,
>> this is my first post here and I hope I am in the right place. I have 
>> a python code of about a thousand lines, contained in a .py file, and I 
>> would like to fix, possibly automatically, the indentation (i.e. at the 
>> first level four characters, then eight, and so on, as the standard 
>> requires).
>> To explain myself better, the code is correct and it works, but some 
>> parts are indented 2 characters, some 3, and some 4. I am trying to do 
>> this 
>> with BBedit, of which I have the pro version (the paid one). I don't 
>> know 
>> if this is the right way but I use Markup > Utilities > Format and I 
>> always 
>> get an error: Unespected EOF; Document ended in the middle of a tag. 
>> Maybe 
>> I'm not using the right function? Are there ways to get this result?  
>> If not, are there other free tools to perform this task?
>> I have to say that I am not very proficient with scripting and such 
>> extensions, I would like a simple "menu based" solution, of course if it 
>> exists.
>>
>> Thanks a lots in advance
>> Best regards
>> Claudio
>>
>>
>> -- 
>>> This is the BBEdit Talk public discussion group. If you have a feature 
>>> request or need technical support, please email "sup...@barebones.com" 
>>> rather than posting here. Follow @bbedit on Twitter: <
>>> https://twitter.com/bbedit>
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "BBEdit Talk" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to bbedit+un...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> 

Re: Color and text

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


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


Rick Gordon


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


Hello,

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

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


___
RICK GORDON
___




--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/9424d8d3-8ffd-46fe-945a-19c71c7d5bba%40rickgordon.com.


Re: Formatting Multiple Choice Questions Using Regex

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

So I'm revising my FIND component to:

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

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

Re: Formatting Multiple Choice Questions Using Regex

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

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

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

Re: Formatting Multiple Choice Questions Using Regex

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

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

-

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

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

Re: Formatting Multiple Choice Questions Using Regex

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

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

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

Rick Gordon 

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

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

Re: Formatting Multiple Choice Questions Using Regex

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

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

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


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

That would change this: 

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

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

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

…to this: 

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

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

REPLACE: 
Correct 
-- 

…would change the field for the correct answer. 

Rick Gordon 

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

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

Re: Bbedit Applescript command

2023-08-18 Thread Rick Gordon

I suspect that either:

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

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

Rick Gordon



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

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

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


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

Hi again,
A bit more.

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

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


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

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

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

Kind Regards
Eric


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

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

So this Snippet transforms the text and works.

(*Process the file for InDesign*)

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

*activate*

*open*/file/SourceFile

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

*close*/window/1 saving/no/

*end* *tell*

*tell* /application/"Finder"

*activate*

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

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

*activate*

*open*/file/SourceFile

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

*close*/window/1 saving/no/

*end* *tell*

*tell* /application/"Finder"

*activate*

*end* *tell*


Resultant text is
___



etc etc with paragraphs and line feeds seperating text blocks
___

This Snippet using BBEdit

(*Process the file for InDesign*)

*tell* /application/"BBEdit"

*activate*

*open*/file/SourceFile

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

*close*/window/1

*end* *tell*

*tell* /application/"Finder"

*activate*

*end*


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

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


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


Thank you if you got this far


Kind Regards
Eric


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

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

*
*

*tell* /application/"System Events"

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

*end**tell*


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

*tell* /application/ "System Events"

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

*end**tell*


Hope this helps,

[fletcher]


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

Hi,
For context I have n AS that changes the creator type of
  

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

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


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

much information)":

found text:08:30


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

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/64D9C83F.8070507%40rickgordon.com.


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

2023-06-07 Thread Rick Gordon

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

As you can see, what I provided…

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

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

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


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


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


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


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


Rick Gordon



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

Hi Rick

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

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


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

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

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


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

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

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


Very many thanks for your efforts

Dave

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

Try this:

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

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

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

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

Rick Gordon

--

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

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

2023-06-07 Thread Rick Gordon

Try this:

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


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

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


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


Rick Gordon

--

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

Hi Kaveh

I'm not sure that that would solve it.

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


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

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

Ah, I thought all lines had that.

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

Not sure that would solve it.

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

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

Not every line in the file begins with 2 PLAC

Dave

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

BTW to replace

2 PLAC

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

"^" -- start of line
with

"2 PLAC "

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

Simplest might be first to remove all "2 PLAC "

Then replace
"(? wrote:

Hi Kaveh

No problem, 3 examples of before and after

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

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

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

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

Hi Dave

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

Regards
Kaveh

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

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

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

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

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

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

-- 
This is the BBEdit Talk public discussion

group. If you have a feature request or
need technical support, please email
"sup...@barebones.com" rather than posting
here. Follow @bbedit on Twitter:
<https://twitter.com/bbedit>
---
You received this message because you are
subscribed to the Google Groups "BBEdit
Talk" group.
To unsubscribe from this group and stop
receiving emails from it, send an email to
bbedit+un...@

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

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


Rick Gordon

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

Thanks in advance -
Andy
--
This is the BBEdit Talk public discussion group. If you have a feature 
request or need technical support, please email 
"supp...@barebones.com" rather than posting here. Follow @bbedit on 
Twitter: <https://twitter.com/bbedit>

---
You received this message because you are subscribed to the Google 
Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to bbedit+unsubscr...@googlegroups.com 
<mailto:bbedit+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/4455d2a7-6efe-4183-903e-ea1baa8e091dn%40googlegroups.com 
<https://groups.google.com/d/msgid/bbedit/4455d2a7-6efe-4183-903e-ea1baa8e091dn%40googlegroups.com?utm_medium=email_source=footer>.


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

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/64618D52.5020503%40rickgordon.com.


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

2023-04-03 Thread Rick Gordon

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

Rick Gordon



Steve deRosier wrote:

Hi Rick,

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


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

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


function bbedit {


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


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

FCREATED=0

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

then

touch "$PWD/$1"

FCREATED=1

fi

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


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


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


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


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

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

then

rm "$PWD/$1"

fi

}


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


Anyway, maybe that helps for you!

- Steve



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


You could consider using sshfs.

Greg Shenaut

Sent from my iPhone

> On Apr 3, 2023, at 14:21, Rick Gordon mailto:li...@rickgordon.com>> wrote:
>
> Is there any way to get a subset of BBEdit-like functionality in
a Terminal editor?
>
> I often use BBEdit as a means of editing in the Terminal on my
own computer, but that doesn't work so easily with another
computer that I access via ssh, where I can't really exit the
Terminal to edit. though I could install a tool that I could run
in the Terminal.
>
> I see that there are a number of mouse-aware Terminal editors
that are available, and am just looking at ci-edit
<https://github.com/google/ci_edit>, though it seems sluggish.
>
> I'd appreciate any suggestions here. Thanks.
>
> ___
> RICK GORDON
> EMERALD VALLEY GRAPHICS AND CONSULTING
> ___
> WWW: http://www.shelterpub.com
>
> --
> This is the BBEdit Talk public discussion group. If you have a
feature request or need technical support, please email
"supp...@barebones.com <mailto:supp...@barebones.com>" rather than
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
> --- You received this message because you are subscribed to the
Google Groups "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it,
send an email to bbedit+unsubscr...@googlegroups.com
<mailto:bbedit%2bunsubscr...@googlegroups.com>.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/642B4195.9010704%40rickgordon.com.

-- 
This is the BBEdit Talk public discussion group. If you have a

feature request or need technical support, please email
"supp...@barebones.com <mailto:supp...@barebones.com>" rather than
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to bbedit+unsubscr...@googlegroups.com
<mailto:bbedit%2bunsubscr...@googlegroups.com>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/bbedit/87C1D38D-8CAA-4EEA-8FF4-CF9E7CFF0D5E%40me.com.

--
This is the BBEdit Talk public discussion group. If you have a feature 
request or need technical support, please email 
"supp...@barebones.com" rather than posting here. Follow @bbedit on 
Twitter: <https://twitter.com/bbedit>

---
You received this message because you are subscribed to the Google 
Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to bbedit+unsubscr...@googlegroups.com 
<mailto:bbedit+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CALLGbR%2BUtEN%3Da6POaYcuRMSf_49TEoEi%3Dyn5mL1JYWDSfYW64A%40mail.gmail.com 
<https://groups.google.com/d/msgid/bbedit/CALLGbR%2BUtEN%3Da6POaYcuRMSf_49TEoEi%3Dyn5mL1JYWDSfYW64A%40mail.gm

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

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


Rick Gordon



'Gregory Shenaut' via BBEdit Talk wrote:

You could consider using sshfs.

Greg Shenaut

Sent from my iPhone


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

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

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

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

I'd appreciate any suggestions here. Thanks.

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

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




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

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/642B7544.6000202%40rickgordon.com.


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

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


--

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


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


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


I'd appreciate any suggestions here. Thanks.

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



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

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/642B4266.4060706%40rickgordon.com.


BBEdit or BBEdit-Like Editor Running Directly in Terminal

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


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


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


I'd appreciate any suggestions here. Thanks.

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

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/642B4195.9010704%40rickgordon.com.


Re: Need help with Bash text filter

2022-12-29 Thread Rick Yentzer
Thank you Jean, 
That was very helpful and I was able to get it working with a few 
adjustments.

Do you have recommendations on learning more about shell scripting and 
setting up some of these types of command line tools to work with BBEdit?

On Thursday, December 29, 2022 at 2:30:43 AM UTC-5 jj wrote:

> In case you want to close the terminal and stay in BBEdit, you can create 
> a shell script in ~/Library/Application\ 
> Support/BBEdit/Scripts/php-cs-fixer-example.sh  
> (Adapt php-cs-fixer's path as per your configuration) :
>
> #!/usr/bin/env sh
> /opt/homebrew/bin/php-cs-fixer fix --rules=no_whitespace_in_blank_line 
> -- "$BB_DOC_PATH" ;
>
> And apply it to the front document from the BBEdit's Script menu.
>
> HTH,
>
> Jean Jourdain
> On Thursday, December 29, 2022 at 4:58:46 AM UTC+1 ryen...@gmail.com 
> wrote:
>
>> Thank you! I came here wondering why a text filter wasn't working, but it 
>> did when run in terminal. Mine was the same issue. I was passing the text 
>> contents instead of the file which php-cs-fixer expects. Oh well, guess 
>> I'll just keep terminal open when needed.
>>
>> On Tuesday, December 20, 2022 at 10:01:20 AM UTC-5 y2k...@gmail.com 
>> wrote:
>>
>>> I haven't used beautysh but it looks like it's expecting to be passed 
>>> the name/path of a file to operate on, and rewrites the file in place?
>>>
>>> A text filter, on the other hand, is passed the contents of the file you 
>>> run it against, in the standard input (sys.stdin in Python).
>>>
>>> So you may need to adapt the module interface mentioned in the docs 
>>> ("You can also call beautysh as a module") in order to use it as a text 
>>> filter.
>>>
>>> --Kevin
>>>
>>> On Tue, Dec 20, 2022 at 9:24 AM Greg Raven  wrote:
>>>
 I have a couple of Bash-language text filters that work great. I just 
 tried to create a new one, which instead of working as expected generates 
 an error message.

 Here's the code:

 ```
 #!/bin/sh

 ## requires macOS CommandLineTools
 ## requires pip3 install beautysh

 python3 ~/Library/Python/3.9/bin/beautysh
 ```
 When I run beautysh from the command line, it seems to work fine, just 
 like my text filter that employs css-beautity, js-beautify, and json.tool 
 and uses similar coding.

 Can anyone shed any light on this?

 -- 
 This is the BBEdit Talk public discussion group. If you have a feature 
 request or need technical support, please email "sup...@barebones.com" 
 rather than posting here. Follow @bbedit on Twitter: <
 https://twitter.com/bbedit>
 --- 
 You received this message because you are subscribed to the Google 
 Groups "BBEdit Talk" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to bbedit+un...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/bbedit/b58483e7-bf67-4e06-899c-a506a2ed88fcn%40googlegroups.com
  
 
 .

>>>

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


Re: Need help with Bash text filter

2022-12-28 Thread Rick Yentzer
Thank you! I came here wondering why a text filter wasn't working, but it 
did when run in terminal. Mine was the same issue. I was passing the text 
contents instead of the file which php-cs-fixer expects. Oh well, guess 
I'll just keep terminal open when needed.

On Tuesday, December 20, 2022 at 10:01:20 AM UTC-5 y2k...@gmail.com wrote:

> I haven't used beautysh but it looks like it's expecting to be passed the 
> name/path of a file to operate on, and rewrites the file in place?
>
> A text filter, on the other hand, is passed the contents of the file you 
> run it against, in the standard input (sys.stdin in Python).
>
> So you may need to adapt the module interface mentioned in the docs ("You 
> can also call beautysh as a module") in order to use it as a text filter.
>
> --Kevin
>
> On Tue, Dec 20, 2022 at 9:24 AM Greg Raven  wrote:
>
>> I have a couple of Bash-language text filters that work great. I just 
>> tried to create a new one, which instead of working as expected generates 
>> an error message.
>>
>> Here's the code:
>>
>> ```
>> #!/bin/sh
>>
>> ## requires macOS CommandLineTools
>> ## requires pip3 install beautysh
>>
>> python3 ~/Library/Python/3.9/bin/beautysh
>> ```
>> When I run beautysh from the command line, it seems to work fine, just 
>> like my text filter that employs css-beautity, js-beautify, and json.tool 
>> and uses similar coding.
>>
>> Can anyone shed any light on this?
>>
>> -- 
>> This is the BBEdit Talk public discussion group. If you have a feature 
>> request or need technical support, please email "sup...@barebones.com" 
>> rather than posting here. Follow @bbedit on Twitter: <
>> https://twitter.com/bbedit>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "BBEdit Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to bbedit+un...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/bbedit/b58483e7-bf67-4e06-899c-a506a2ed88fcn%40googlegroups.com
>>  
>> 
>> .
>>
>

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


Re: Copy markdown as HTML

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


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

Rick Gordon



On November 7, 2022 at 1:15:10 PM [-0800], Frank Eves wrote in an email 
entitled "Copy markdown as HTML":
Markdown focused applications like iA Writer, Marked2 and Ulysses have 
an Edit Menu item 'Copy as HTML'. I find it handy when creating 
WordPress content. Unfortunately, for my purposes, BBEdit's Edit 
menu's 'Copy as Styled HTML' outputs more complex text. Can someone 
suggest an easy way to copy markdown as basic HTML in BBEdit?

--
This is the BBEdit Talk public discussion group. If you have a feature 
request or need technical support, please email 
"supp...@barebones.com" rather than posting here. Follow @bbedit on 
Twitter: <https://twitter.com/bbedit>

---
You received this message because you are subscribed to the Google 
Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to bbedit+unsubscr...@googlegroups.com 
<mailto:bbedit+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/186955c6-fd95-4e9e-8703-028543b9f1d5n%40googlegroups.com 
<https://groups.google.com/d/msgid/bbedit/186955c6-fd95-4e9e-8703-028543b9f1d5n%40googlegroups.com?utm_medium=email_source=footer>.


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

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/63697612.4010707%40rickgordon.com.


Re: Color scheme vs. color space question

2020-10-02 Thread Rick Yentzer
Hey Watts, I've seen the same thing happen that you describe. In the past, 
I have copied the correct color value and then adjust visually to get a 
closer match.

On Friday, October 2, 2020 at 6:41:04 AM UTC-4 Greg Raven wrote:

> The release notes from last night include this item:
>
> * Corrected the color space used for converting color
> representations from external forms (such as the value strings in
> color schemes).
>
> Thanks, Rich!
>
> On Thursday, October 1, 2020 at 9:23:54 AM UTC-7 Watts Martin wrote:
>
>> After Greg's question yesterday about color schemes, I thought about 
>> trying to make a BBEdit version of Nord. And I did... except the background 
>> color is really, really light compared to what it should be.
>>
>> So, I double-checked: I'd entered the proper background color, #2E3440, 
>> and BBEdit indeed says that's what it is. So I used the Digital Color Meter 
>> app and set it to sRGB -- double-checking that now it measured the 
>> background color of this swatch on the Nord web page 
>>  as #2E3440 -- and 
>> BBEdit's background measured as #3D4451. It seems like all of BBEdit's 
>> color swatches are being changed to colors that don't match. However, if I 
>> change the color meter to "Generic RGB," then BBEdit's background measures 
>> as #2E3440... but the web page color swatches no longer match the hex codes 
>> they're supposed to be.
>>
>> So: is BBEdit operating in a different color space that I'm going to have 
>> to convert these color hex codes to, or is something else going on here? 
>> (I'm hesitant to report this as a "bug," although a cursory check of a 
>> couple other popular color scheme web sites -- Dracula and Solarized -- 
>> suggests they're mapping their hex codes to sRGB, too, so this could make 
>> porting schemes to BBEdit extra fiddly.)
>>
>

-- 
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/e6cfea63-a5cf-4dd8-b03c-614b73f0bbe6n%40googlegroups.com.


Re: Cobalt2 color scheme

2020-10-02 Thread Rick Yentzer
Here is a first pass at the cobalt2 theme. I didn't go through every 
setting as I don't use some of them day-to-day, but I hope this is a good 
start.
On Thursday, October 1, 2020 at 9:44:06 AM UTC-4 Greg Raven wrote:

> If you think it will help, I'd be happy to share my Color Scheme file. 
> Just let me know.
>
> On Thursday, October 1, 2020 at 6:25:34 AM UTC-7 ryen...@gmail.com wrote:
>
>> I've converted a couple of themes over the years, but it's been a long 
>> time. I would be interested in porting some themes over though. I use One 
>> Dark in PyCharm quite a bit. I'm familiar with Cobalt 2 also. When I get 
>> some free time, I'll try to make one. I would like to see the Wiki updated 
>> with some current theme offerings. Perhaps I need to look into that as 
>> well. :)
>>
>> On Thursday, October 1, 2020 at 7:49:25 AM UTC-4 Greg Raven wrote:
>>
>>> Good suggestion. I hadn't looked at the built-in themes for awhile. 
>>> Toothpaste is close to Cobalt2, which gives me a good starting point for 
>>> creating my own version. The biggest obstacle I'm facing now is that Visual 
>>> Studio Code and BBEdit use different nomenclature to refer to various GUI 
>>> elements, which makes it tough to transfer color specifications from one to 
>>> the other easily.
>>>
>>> On Wednesday, September 30, 2020 at 9:17:53 AM UTC-7 Watts Martin wrote:
>>>
 You could try some of the other included schemes and see what you 
 think; I'm not usually a dark scheme person, but I like "Toothpaste" (it's 
 reminiscent of Zenburn, one of the few dark color schemes I like for other 
 editors when it's done right).

 There are a few color schemes on the BBEdit Extras wiki, although 
 they're mostly using the old, more limited schema from before BBEdit 11, 
 and there's a good chance many of the links are broken. It'd be kind of 
 neat to try and come up with a system for converting TextMate themes to 
 BBEdit color schemes, but it might be a fairly significant undertaking, as 
 their formats are very different.

 On Wed, Sep 30, 2020 at 7:13 AM Greg Raven  wrote:

> I just watched a coding video on YouTube where the presenter said he 
> was using the Cobalt2 theme for VS Code. Maybe it's because I've been 
> using 
> the default BBEdit color scheme for almost 30 years, but it looked pretty 
> good.
>
> Does anyone have a similar Color Scheme for BBEdit?
>
> I took a look at making my own CLM, but I'm not certain I could ever 
> get to that level of hacktivism.
>
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "sup...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: <
> https://twitter.com/bbedit>
> --- 
> You received this message because you are subscribed to the Google 
> Groups "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to bbedit+un...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/e33b839d-d3d1-4ca2-8584-6d85d0e65f84n%40googlegroups.com
>  
> 
> .
>


-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/9b2a6b8d-b107-4624-bc3b-996c4059a532n%40googlegroups.com.
<>


Re: Cobalt2 color scheme

2020-10-01 Thread Rick Yentzer
I've converted a couple of themes over the years, but it's been a long 
time. I would be interested in porting some themes over though. I use One 
Dark in PyCharm quite a bit. I'm familiar with Cobalt 2 also. When I get 
some free time, I'll try to make one. I would like to see the Wiki updated 
with some current theme offerings. Perhaps I need to look into that as 
well. :)

On Thursday, October 1, 2020 at 7:49:25 AM UTC-4 Greg Raven wrote:

> Good suggestion. I hadn't looked at the built-in themes for awhile. 
> Toothpaste is close to Cobalt2, which gives me a good starting point for 
> creating my own version. The biggest obstacle I'm facing now is that Visual 
> Studio Code and BBEdit use different nomenclature to refer to various GUI 
> elements, which makes it tough to transfer color specifications from one to 
> the other easily.
>
> On Wednesday, September 30, 2020 at 9:17:53 AM UTC-7 Watts Martin wrote:
>
>> You could try some of the other included schemes and see what you think; 
>> I'm not usually a dark scheme person, but I like "Toothpaste" (it's 
>> reminiscent of Zenburn, one of the few dark color schemes I like for other 
>> editors when it's done right).
>>
>> There are a few color schemes on the BBEdit Extras wiki, although they're 
>> mostly using the old, more limited schema from before BBEdit 11, and 
>> there's a good chance many of the links are broken. It'd be kind of neat to 
>> try and come up with a system for converting TextMate themes to BBEdit 
>> color schemes, but it might be a fairly significant undertaking, as their 
>> formats are very different.
>>
>> On Wed, Sep 30, 2020 at 7:13 AM Greg Raven  wrote:
>>
>>> I just watched a coding video on YouTube where the presenter said he was 
>>> using the Cobalt2 theme for VS Code. Maybe it's because I've been using the 
>>> default BBEdit color scheme for almost 30 years, but it looked pretty good.
>>>
>>> Does anyone have a similar Color Scheme for BBEdit?
>>>
>>> I took a look at making my own CLM, but I'm not certain I could ever get 
>>> to that level of hacktivism.
>>>
>>> -- 
>>> This is the BBEdit Talk public discussion group. If you have a feature 
>>> request or need technical support, please email "sup...@barebones.com" 
>>> rather than posting here. Follow @bbedit on Twitter: <
>>> https://twitter.com/bbedit>
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "BBEdit Talk" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to bbedit+un...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/bbedit/e33b839d-d3d1-4ca2-8584-6d85d0e65f84n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

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


Re: Can BBEdit format code like it formats HTML?

2020-09-19 Thread Rick Yentzer

Hey James,

BBEdit formats only html and css to the best of my knowledge. Like Steve, I 
have used command line utilities if I needed additional formatting for 
other languages. I mostly work with web languages and python/php and have 
my build tools set to format if needed. Hope that helps.

On Friday, September 18, 2020 at 2:15:57 PM UTC-4 Steve wrote:

> Well, it does automatically handle indentation depending on your settings, 
> and you can setup clippings if that's your jam. It also does a lot of 
> coloring, especially nice when setup via ctags.
>
> For more hardcore reformatting, you can always setup to trigger external 
> commands, like `astyle` for C/C++/Java, or one of the many python PEP8 
> formatters.  The flexibility in this regard is one of the things I like 
> about BBEdit. Though personally I usually restrict such options to doing 
> manually on the commandline; for python projects I use pylint triggered 
> from a Makefile to enforce style guidelines that I choose to enable.
>
> I also like the fact it doesn't autoformat for me... in other words it 
> doesn't get in my way or overrule me. Since for any given project I'm 
> working with 3-8 different languages, it staying out of my way and only 
> helping in the ways I want is critical. I also wouldn't ever want an editor 
> take in a project file and just reformat it for me because that breaks 
> revision control history for zero useful purpose; I've had IDEs do this to 
> me and dropped them immediately because of it.
>
> Hope that helps!
> - Steve
>
>
> On Fri, Sep 18, 2020 at 10:49 AM James Reynolds  
> wrote:
>
>> I know BBEdit has an HTML formatter. Can it also format code? Like what 
>> https://beautifier.io/ does for JavaScript?
>>
>> James Reynolds
>> Sr Systems Administrator
>> School of Biological Sciences
>> The University of Utah
>> 801-585-3086 <(801)%20585-3086>
>>
>> -- 
>> This is the BBEdit Talk public discussion group. If you have a feature 
>> request or need technical support, please email "sup...@barebones.com" 
>> rather than posting here. Follow @bbedit on Twitter: <
>> https://twitter.com/bbedit>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "BBEdit Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to bbedit+un...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/bbedit/0F089104-5A7A-4BE0-A750-5B7965AE443B%40gmail.com
>> .
>>
>

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


Re: way to exclude folders from Site search, updates and syntax check?

2020-07-04 Thread Rick Yentzer
This would be a helpful addition to keep from searching in folders one 
would not need to look in. For instance, I would not necessarily need to 
search "node_modules", or "env" folders. The "node_modules" folder can get 
fairly large.

Thanks,
Rick Yentzer

On Friday, April 10, 2020 at 3:25:29 PM UTC-4, Rich Siegel wrote:
>
> On 4/10/20 at 3:01 PM, web...@gmail.com  (James Taylor) 
> wrote: 
>
> > Looking for a way to exclude folders from Site search, updates and 
> syntax 
> > check? 
> > 
> > for example, in this Site, I wany to exclude files in "_x" folder in 
> public 
> > html directory. 
>
> There's nothing built in for this purpose; sorry. 
>
> R. 
> -- 
> Rich Siegel Bare Bones Software, Inc. 
> >  <
> https://www.barebones.com/> 
>
> Someday I'll look back on all this and laugh... until they sedate me. 
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/b95f035f-e82d-443c-8add-e964f1294d77o%40googlegroups.com.


Re: How Can I Search for All Lines NOT Matching a Complex Regex String

2020-04-30 Thread Rick Gordon
Thanks, Neil. I'd been hoping to avoid scratch documents, but that WOULD 
do the job, so why not?


Thanks again,
Rick Gordon


On April 30, 2020 at 5:08:11 PM [-0700], Neil Faiman wrote in an email 
entitled "Re: How Can I Search for All Lines NOT Matching a Complex Regex

String":


 1. Copy the entire document to a new document.
 2. Use the *add line numbers* command to add line numbers to the
lines in the new document.
 3. Use the *process lines containing *command on the new document,
using your grep pattern, with the *output options* parameter set
to *{ copying to clipboard: false, copying to new document: false,
deleting matched lines: true, reporting results: false }*.

Now your new document should contain just the lines of the original 
document that don't match your grep pattern, prefixed with their 
original line numbers.

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

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/5EAB68FA.8070704%40rickgordon.com.


How Can I Search for All Lines NOT Matching a Complex Regex String

2020-04-30 Thread Rick Gordon
I'm trying to AppleScript a solution using BBEdit (using AppleScript 
because there are multi-application communications) where I could flag 
the line number and content of all lines in a document not matching a 
complex regex string.


For instance, if I wanted to flag all lines in document that did *NOT* 
produce a match to:


^[A-Z0-9._%+-]{1,64}@(?:[A-Z0-9-]{1,63}\.){1,125}[A-Z]{2,63},[^,\r]*,[^,\r]*\r

That is, lines not structured as below:

 * a line starting a possibly multi-subdomained email address
 * a comma, optionally followed by some text
 * a second comma, optionally followed by some more text

…how should I proceed? Is there a regex that can match those, or do I 
need a more complex approach. I ultimately want to get a string of the 
unmatched lines (preferably with line numbers) to throw into a dialog.


Thanks.

___
RICK GORDON
___

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/5EAB536A.2060708%40rickgordon.com.


Re: Help with Ctags

2020-03-12 Thread Rick Yentzer
Hey Vlad,

Your post got me thinking about it so I tried something similar and it 
wasn't working like I "thought" it would.

Per Rich's post it looks like it will not be possible with ctags to go to 
the "definition" of a css class.

Thanks,
Rick

On Thursday, March 12, 2020 at 9:07:55 AM UTC-4, Vlad Ghitulescu wrote:
>
> Hi, Rick!
>
> That's exactly what I've asked here 
> <https://groups.google.com/forum/#!topic/bbedit/fDQtoX-Opvs>! :-)
> At least I'm not alone…
>
> And the ctags-route was also suggested in the above thread.
>
> Regards,
> Vlad
>
> On 11 Mar 2020, at 23:13, Rick Yentzer wrote:
>
> Hello, I've searched this forum and read several posts on ctags, but I 
> cannot get it to work like I'm thinking it should.
>
> The manuals says:
>
> If one or more tags files are found in the same directory as the front 
> document, or in any parent directory up the chain from the front document, 
> you can employ the ctag information by selecting a word, and either 
> choosing Find Definition from the Search menu, or by Control-clicking and 
> accessing the Definitions submenu of the contextual menu.
>
>  
>
> My folder structure is:
>
>- testing-ctags
>   - index.html
>   - styles.css
>   - ctags (generated with bbedit --maketags)
>   
> I have two simple class names in styles.css that are used in index.html 
> like so:
>
> Section heading here
> Click me.
>
>
> The ctags file contains the css classes:
>
> !_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to 
> lines/
> !_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
> !_TAG_PROGRAM_AUTHOR Universal Ctags Team //
> !_TAG_PROGRAM_NAME Universal Ctags /Derived from Exuberant Ctags/
> !_TAG_PROGRAM_URL https://ctags.io/ /official site/
> !_TAG_PROGRAM_VERSION 0.0.0 /6e5c9a9/
> *.btn styles.css 1;" c line:1*
> .section-header styles.css 8;" c line:8
>
> But, when I select "btn" in index.html and go to Menu>Search>Find 
> Definition, all I get is a "beep" sound and nothing happens.
>
> What am I missing, or doing wrong?
>
> Thanks,
> Rick Yentzer
>
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "sup...@barebones.com 
> " rather than posting here. Follow @bbedit on Twitter: <
> https://twitter.com/bbedit>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbe...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/58670504-e0c8-4fa1-9437-5c4313128063%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/bbedit/58670504-e0c8-4fa1-9437-5c4313128063%40googlegroups.com?utm_medium=email_source=footer>
> .
>
>

-- 
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/65be7907-cc6b-497c-818b-ab81846ca0b8%40googlegroups.com.


Re: Python3 Shebang Woes

2020-03-11 Thread Rick Yentzer
Paul,

Have you tried to run that file from the command line? I wonder if 
BBEdit is not finding python3 in your $PATH variable.

#!/usr/local/bin/python3
print('Hello World')


I created a test file with my location of python 3 and BBEdit ran the file 
correctly. python 3 is in my $PATH varaible.

In my case, running echo $PATH yields

/usr/local/bin:/usr/bin:/bin: ...


Thanks,

RY


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: 
--- 
You received this message because you are subscribed to the Google 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/59297f9e-334d-408f-9d76-5b0429d89cde%40googlegroups.com.


Re: How do you set the python interpreter BBEdit uses?

2020-03-11 Thread Rick Yentzer
It's been a while since I've focused on Python but, according I found this 
in the manual on page 335:

Locating Unix tools via PATH
When locating Unix tools for various purposes, BBEdit will honor your 
account’s PATH environment variable (provided it is available and not 
empty). This should result in more predictable outcomes when using 
aftermarket installations of open-source tools as well as for alternative 
installations of tools included with the system (such as Python).

If you modify your PATH, you must quit and relaunch BBEdit for those 
changes to take effect. Note also that if your PATH contains entries 
relative to the current working directory, those entries are not likely to 
work since $PWD is undefined for a GUI application, though absolute paths 
will work.


Hope that helps.

Thanks,
Rick Yentzer 

On Wednesday, March 11, 2020 at 6:06:02 PM UTC-4, leecreighton wrote:
>
> Apparently I've got a couple of python interpreters installed (notably one 
> at /usr/local/bin and one at /opt/anaconda3/bin and maybe others). They 
> don't have identical modules installed so I get errors when I run in BBEdit 
> vs when I run in IDLE or python terminal.
>
> I'd loke to point BBEdit to the anaconda3 version, but I can't find a 
> preference for it. Anyone know?
>
> lc
>

-- 
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/00886106-2da4-440e-ba68-681f8cb698d6%40googlegroups.com.


Help with Ctags

2020-03-11 Thread Rick Yentzer
Hello, I've searched this forum and read several posts on ctags, but I 
cannot get it to work like I'm thinking it should.

The manuals says:

If one or more tags files are found in the same directory as the front 
document, or in any parent directory up the chain from the front document, 
you can employ the ctag information by selecting a word, and either 
choosing Find Definition from the Search menu, or by Control-clicking and 
accessing the Definitions submenu of the contextual menu.

 

My folder structure is:

   - testing-ctags
  - index.html
  - styles.css
  - ctags (generated with bbedit --maketags)
  
I have two simple class names in styles.css that are used in index.html 
like so:

Section heading here
Click me.


The ctags file contains the css classes:

!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to 
lines/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR Universal Ctags Team //
!_TAG_PROGRAM_NAME Universal Ctags /Derived from Exuberant Ctags/
!_TAG_PROGRAM_URL https://ctags.io/ /official site/
!_TAG_PROGRAM_VERSION 0.0.0 /6e5c9a9/
*.btn styles.css 1;" c line:1*
.section-header styles.css 8;" c line:8

But, when I select "btn" in index.html and go to Menu>Search>Find 
Definition, all I get is a "beep" sound and nothing happens.

What am I missing, or doing wrong?

Thanks,
Rick Yentzer

-- 
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/58670504-e0c8-4fa1-9437-5c4313128063%40googlegroups.com.


Re: How to jump to a CSS-class from the HTML-file

2020-03-10 Thread Rick Yentzer
I don't know of a way, but that's not to say it doesn't exist. There are 
much smarter people here than I. Hopefully someone can chime in with a 
workflow for this very thing. This can be done in JetBrains' editors, but I 
still most of my time in BBEdit.

Perhaps an applescript could get us close?

Any takers? :)

Thanks,
Rick Yentzer

On Thursday, March 5, 2020 at 7:06:20 AM UTC-5, Vlad Ghitulescu wrote:
>
> Hey!
>
> Is there a way in BBEdit to jump right to the definition of the CSS-class 
> from within a HTML-file where this class is used?
>
> Like in this HTML-file (row 3607):
>
> I would like to jump right to the definition of the class "
> *treppen_thumbnails*"
>
> I normally use for this Multi-File search within the BBEdit-project and 
> then find it (here in the „*_modals-01-eingestemmteT.less-file*“)
>
> Is there a shorter way or perhaps even a keyboard shortcut to jump 
> directly to the definition within the project after selecting the class 
> within the HTML-file?
>
> Thanks!
>
> 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/11819583-d27e-4ded-94bd-6dca09512d91%40googlegroups.com.


Re: Can Completion work with underscores?

2020-02-22 Thread Rick Yentzer
Hey Ed,

I just tried this with a python document, and Bbedit is offering the 
correct suggestion, and once I hit tab to accept, or enter, it fills in the 
entire name

I defined a simple function with a_really_long_name and it worked.

Could it be your settings under Preferences/Completion:

According to the manual (pg 225) it states:

The Completion preferences control BBEdit’s text completion behaviors, 
including both the completion popup and automatic insertion of delimiters, 
which consist of parentheses, brackets, single and double quotes, *as well 
as various language-specific elements*.

If this doesn't work, send a help request. They're usually pretty quick to 
respond.

Thanks,
Rick

On Thursday, February 20, 2020 at 9:56:31 AM UTC-5, Ed Leafe wrote:
>
> I write a lot of Python, and following the PEP8 standards, long variable 
> names are written using underscores, such as 
> *something_with_very_long_name*. But when working in BBEdit, if I type 
> *some* and then press the hotkey for Edit/Complete, I don't get a match 
> for the long name; the word *something* appears, which suggests that 
> BBEdit is using underscore as a word delimiter. Is there any way to change 
> this so that an underscore is treated like any other character?
>

-- 
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/20959f5b-c28c-4bd2-997b-484462948fdf%40googlegroups.com.


Re: Grep for removing injection spam links in a database or html

2020-01-30 Thread Rick Gordon
One thing to watch for is that in your search, you are looking for curly 
quotes (actually a mix of straight and curly quotes), which should all 
be straight.


Rick Gordon


On January 30, 2020 at 2:18:30 PM [-0800], Jefferis Peterson wrote in an 
email entitled "Re: Grep for removing injection spam links in a database 
or html":
Thank you GP That worked very well for 80 links, but i found 
another set of links masked by making the text invisible in the posts...


http://alwaysvaltrexonline.com;>buy valtrex online


There are 3 variations...  the addition of colons in the style, and 
the addition of the color#and instead of using a single period to 
disguise it, they have put in full text in the link


I tried to modify what you did but  nothing I did seemed to work.
 This is the closest to what you did I thought:I thought that 
this set of characters would find any text: [^”]* So i added it 
where the strings were for color and link text, but it did not find 
these type of strings:


[^”]*<\/a>


Can you tell me what I did wrong?  And are spaces ignored in the string?
___

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

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/5E33569A.1000703%40rickgordon.com.


Re: Dual Monitor Annoyances

2019-11-01 Thread Rick Gordon
I have also found this to be the case with BBEdit 12.x. And it's 
compounded by my use of separate Mission Control spaces on each desktop, 
so that I am often rummaging through space trying to relocate my Find 
window.


Rick Gordon


On November 1, 2019 at 6:56:58 PM [-0700], Marius Schamschula wrote in 
an email entitled "Dual Monitor Annoyances":

I have a dual monitor setup on my iMac.

I keep all my BBEdit windows on the primary window.

However, from time to time the search (and multi-file search) move 
themselves to the second monitor.


This in itself isn't a major problem, however, the result is that I 
can no longer return to the Desktop containing the BBEdit windows by 
using Command + Tab, as BBEdit thinks it is already there, as it has 
found the search dialogs on the second monitor.


Is there any way to stop this?

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

--
This is the BBEdit Talk public discussion group. If you have a 
feature request or 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/5DBCE2FB.8030807%40rickgordon.com.


Re: React (JSX) support

2019-08-20 Thread Rick Yentzer
I understand. If things change, I'll post here to update you.

Thanks,
Rick


On Tuesday, August 20, 2019 at 5:03:10 PM UTC-4, Carl Bolduc wrote:
>
> Hi Rick,
>
> Hey Carl, did you try to contact BBEdit support to find out?
>
>
> No... in the end, I don't have time to work on a JavaScript syntax to add 
> JSX support. Since JSX support isn't there, I had to move away from BBEdit. 
> I'm currently using VS Code and I will most likely use Panic's Nova when 
> it's released (I much prefer MacOS native apps).
>
> Carl
>

-- 
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/fa311879-d63f-49aa-b5c4-57645a83800a%40googlegroups.com.


Re: React (JSX) support

2019-08-20 Thread Rick Yentzer
Hey Carl, did you try to contact BBEdit support to find out?

– Rick

On Thursday, March 7, 2019 at 9:00:25 AM UTC-5, Hoger November wrote:
>
> Hi, 
>
> I’m not sure, but sup...@barebones.com  will likely have an 
> answer for you ;) 
>
> Cheers,
> Holger
>
> On 7 Mar 2019, at 2:43 AM, Carl Bolduc > 
> wrote:
>
> Hi!
>
> Can a language module extend an existing language? JSX is adding stuff to 
> JavaScript.
>
> Thanks,
> Carl
>
> On Wednesday, March 6, 2019 at 9:11:45 AM UTC-5, Hoger November wrote:
>>
>> Hi, 
>>
>> I haven’t see a module for JSX yet, but have a look into Codeless 
>> Language Modules, maybe this is a starting point and what you’d need? 
>>
>> https://www.barebones.com/support/bbedit/plugin_library.html
>>
>> Best, 
>> Holger
>>
>> On 6 Mar 2019, at 7:02 AM, Carl Bolduc  wrote:
>>
>> I would like to know if there is a way to support the JSX syntax in 
>> BBEdit. I know that there is no support out of the box but if there is a 
>> workaround, I would be happy to use it.
>>
>>
>> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "sup...@barebones.com " rather than posting 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 bbe...@googlegroups.com .
> To post to this group, send email to bbe...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/bbedit.
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <https://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/70943044-7aab-4ed9-ad7d-6773e7db6c7d%40googlegroups.com.


Re: React.js - Clippings and syntax highlighting?

2019-08-20 Thread Rick Yentzer
I have not seen one out in the wild. The one you linked to could be ported 
over.

I"m curious about JSX syntax highlighting as well. I haven't tried bbedit 
with angular or vue yet to see how those syntaxes are handled.

– Rick Yentzer

On Tuesday, April 2, 2019 at 9:53:27 AM UTC-4, Charlie Garrison wrote:
>
> Good morning,
>
> Does anyone have a Clipping set for React/Router/Redux? Or does anyone 
> know a script for converting VisualStudio(??) snippets to BBE Clippings:
>
>- https://github.com/walteribeiro/full-react-snippets 
>
> Or the even bigger question, has anyone got a language module for JSX 
> (HTML inside JavaScript)?
>
> BareBones, is support for JSX syntax highlighting on the roadmap?
>
> -cng
>
> -- 
>
> Charlie Garrison   >
> Garrison Computer Services  <http://www.garrison.com.au>
> PO Box 380
> Tumbarumba NSW 2653  Australia
>
>

-- 
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/2aaa80f5-5717-49ec-be01-979b1d71765f%40googlegroups.com.


Re: visual "not found" indicator when searching?

2019-05-31 Thread Rick Gordon

Check this thread:

https://groups.google.com/forum/#!topic/bbedit/r25z6QLjJXU 
<https://groups.google.com/forum/#%21topic/bbedit/r25z6QLjJXU>



On May 31, 2019 at 1:44:27 PM [-0700], Joey Connick wrote in an email 
entitled "visual "not found" indicator when searching?":
On one of my machines, when I do a search in BBEdit and nothing is 
found, "Not Found" flashes on the screen in an overlay and a sound plays.


On my other, the sound is the only indication.

How do I get the visual "Not Found" overlay to show on my one machine 
on a search fail? If I have the machine muted, I'm not getting the 
feedback I need. :(


Argh... now the one with the sound only has nothing: no sound, no 
visual overlay! Help!

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

--
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email

"supp...@barebones.com" rather than posting 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/5CF19245.1050507%40rickgordon.com.


Re: BBEdit 12.6 Sandboxed?

2019-02-26 Thread Rick Gordon
What effect will application sandboxing have on the end user in terms of 
file locations, remote editing, or anything else? And what effect does 
the OS level have on whatever restrictions might be incurred?


Perhaps there are really no apparent restrictions in terms of 
functionality, but I've got this idea that there is a 
security/functionality tradeoff with sandboxing.


Rick Gordon


On February 26, 2019 at 4:33:02 PM [-0800],
Patrick Woolsey wrote in an email entitled
"Re: BBEdit 12.6 Sandboxed?":

On 2/26/19 at 4:51 PM, krem...@kreme.com (@lbutlr) wrote:

When I launched BBEDit 12.6 for the first time I noticed that it 
needed sandbox versions for my hard drive, does this mean that 12.6 
is App Store ready?




Cribbing from Rich's announcement post :-)



We are pleased to announce the release and immediate availability of 
BBEdit 12.6. [...]


This update builds on the changes in BBEdit 12.5, and *** adds 
application sandboxing (for future compatibility with the Mac App 
Store) *** as well as a variety of quality-of-life improvements.




Regards,

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


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

--
This is the BBEdit Talk public discussion group. If you have a 
feature request or 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: Osascript/tcsh Question

2018-12-16 Thread Rick Gordon

You're right. It works without the quotes. Thanks for straightening me out.


On December 16, 2018 at 11:50:24 PM [-0800],
Steve Derosier wrote in an email entitled
"Re: Osascript/tcsh Question":

If I use your alias and just type

 quit Microsoft Word

it works fine.  Only if I include the quotes like you have it does it
fail with your error message. Perhaps you're over thinking it?

- Steve

On Sat, Dec 15, 2018 at 2:17 PM Rick Gordon  wrote:

Not specifically a BBEdit question, but I know that there are people on
the list here that can clarify this for me; please excuse the post if
it's not acceptable.

Running a tcsh shell, I'm trying to set up an alias that will send an
orderly Quit command to the application that is the argument of the command.

I want it to work like this:

quit "Microsoft Word"

I've tried this:

alias quit 'osascript -e '\''tell application "System Events" to quit
application "\!*"'\'

…and this:

alias quit 'osascript -e '\''tell application "System Events" to quit
application process "\!*"'\'

But I get the error: syntax error: A identifier can’t go after this “"”.
(-2740)

Can someone please clarify. Thank you.

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

--
This is the BBEdit Talk public discussion group. If you have a
feature request or need technical support, please email
"supp...@barebones.com" rather than posting 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.



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

--
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email

"supp...@barebones.com" rather than posting 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.


Osascript/tcsh Question

2018-12-15 Thread Rick Gordon
Not specifically a BBEdit question, but I know that there are people on 
the list here that can clarify this for me; please excuse the post if 
it's not acceptable.


Running a tcsh shell, I'm trying to set up an alias that will send an 
orderly Quit command to the application that is the argument of the command.


I want it to work like this:

quit "Microsoft Word"

I've tried this:

alias quit 'osascript -e '\''tell application "System Events" to quit 
application "\!*"'\'


…and this:

alias quit 'osascript -e '\''tell application "System Events" to quit 
application process "\!*"'\'


But I get the error: syntax error: A identifier can’t go after this “"”. 
(-2740)


Can someone please clarify. Thank you.

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

--
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email

"supp...@barebones.com" rather than posting 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: Display instances of selected text - color highlight

2018-09-26 Thread Rick Gordon
I agree wth the others that that would be good to be configurable — and 
that the selected item should be separately configurable (at least in 
terms of luminosity value) from the highlighted matched items — 
particularly since the default tends to partially obscure the underlying 
text.


Feature request, please.

Thanks,
Rick Gordon


On September 26, 2018 at 6:10:52 PM [-0700],
Rich Siegel wrote in an email entitled
"Re: Display instances of selected text - color highlight":

On 9/26/18 at 3:10 AM, mrc...@gmail.com (mrcmrc) wrote:

yes, I tried in Preferences > Text Colors, I also tried checking and 
unchecking the "Use custom highlight color" and choosing another 
color but the text remain the same dark gray... strange...


The color for indicating matches for the selected text (whether 
underlined or highlighted) is derived from the "Plain Text" color; 
it's not otherwise configurable.


R.

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

--
This is the BBEdit Talk public discussion group. If you have a 
feature request or 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.


Edit Source Code with jQuery ??

2018-08-15 Thread Rick Gordon
I suspect that this is beyond the scope of BBEdit, but has much to do 
with the difficulty in making regex changes to nested and interwoven 
elements in a linear text editor.


How can you do jQuery/JavaScript changes -- regex or other -- working 
within the DOM, and returning source code of the same page? Is there a 
tool that is built for that kind of use, where I don't have to manually 
get the source code of a page after it has been operated on by a JQ/JS 
script.


Sometimes it's so easy to target elements for regex changes so easily 
when working within the DOM, where it can be pretty tricky in linear text.


Thanks.

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Possibility of bbedit Terminal Command on SSH Connections

2018-07-11 Thread Rick Gordon

Figured it out. I forgot that I needed to supply an alternate port number.

Thanks. That's awesome!

Rick Gordon


On July 11, 2018 at 6:14:44 PM [-0700],
Rick Gordon wrote in an email entitled
"Re: Possibility of bbedit Terminal Command on SSH Connections":

Steve, that's great!

Not quite working for me though. I successfully get logged into my 
Mac, but get an error:


error opening 
sftp://REDACTED_USER@REDACTED_IP//REDACTED_PATH/SOME_FILE.txt:
This server operation couldn’t be completed because the connection was 
unexpectedly lost (application error code: 22807).

bbedit: error: 22807

This seems to relate to errors being discussed on this page:

http://blog.kenweiner.com/2011/02/edit-remote-ec2-text-files-with.html

…where a similar workflow for TextWrangler is being discussed.

Running BBEdit 12.x on OS 10.11.6.

Thanks in advance for any suggestions.

Rick Gordon


On July 11, 2018 at 5:54:03 PM [-0700],
Steve Derosier wrote in an email entitled
"Re: Possibility of bbedit Terminal Command on SSH Connections":


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

function bbedit {

# bbedit won't open a remote file via sftp if it doesn't exist.
So, if it's a new file
# create it, call bbedit to open, and then kill it.
FCREATED=0
if [ ! -e "$PWD/$1" ]
then
touch "$PWD/$1"
FCREATED=1
fi
ssh derosier@$REMOTEHOST /usr/local/bin/bbedit -c -u
--front-window "sftp://$USER@$HOSTIP/$PWD/$1;
# The above call will background and return immediately. The file
will open in bbedit
# but since we've created it, and we don't want to leave it
around, we kill it right away.
# If the user saves it, it gets recreated and content is saved. If
not, there's no file,
# so we're cool too. It's a bit odd, but it works.
if [ "$FCREATED" -eq "1" ]
then
rm "$PWD/$1"
fi
}



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


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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Possibility of bbedit Terminal Command on SSH Connections

2018-07-11 Thread Rick Gordon

Steve, that's great!

Not quite working for me though. I successfully get logged into my Mac, 
but get an error:


error opening 
sftp://REDACTED_USER@REDACTED_IP//REDACTED_PATH/SOME_FILE.txt:
This server operation couldn’t be completed because the connection was 
unexpectedly lost (application error code: 22807).

bbedit: error: 22807

This seems to relate to errors being discussed on this page:

http://blog.kenweiner.com/2011/02/edit-remote-ec2-text-files-with.html

…where a similar workflow for TextWrangler is being discussed.

Running BBEdit 12.x on OS 10.11.6.

Thanks in advance for any suggestions.

Rick Gordon


On July 11, 2018 at 5:54:03 PM [-0700],
Steve Derosier wrote in an email entitled
"Re: Possibility of bbedit Terminal Command on SSH Connections":


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

function bbedit {

# bbedit won't open a remote file via sftp if it doesn't exist.
So, if it's a new file
# create it, call bbedit to open, and then kill it.
FCREATED=0
if [ ! -e "$PWD/$1" ]
then
touch "$PWD/$1"
FCREATED=1
fi
ssh derosier@$REMOTEHOST /usr/local/bin/bbedit -c -u
--front-window "sftp://$USER@$HOSTIP/$PWD/$1;
# The above call will background and return immediately. The file
will open in bbedit
# but since we've created it, and we don't want to leave it
around, we kill it right away.
# If the user saves it, it gets recreated and content is saved. If
not, there's no file,
# so we're cool too. It's a bit odd, but it works.
if [ "$FCREATED" -eq "1" ]
then
rm "$PWD/$1"
fi
}



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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Possibility of bbedit Terminal Command on SSH Connections

2018-07-11 Thread Rick Gordon
Is there any way that a bbedit command could be built to run in Terminal 
on a remote system? I realize that it would have to be a different 
creature, since that system would have no knowledge of BBEdit.


But I wondered about something like a command which might cause a file 
to be delivered to the Mac via scp in to a watch folder on the Mac that 
BBEdit could monitor, open, edit, and return the edited file to the host 
system, with a result similar to opening a remote file via SSH on the Mac.


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?

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Another Newbie GREP help request...

2018-05-18 Thread Rick Gordon

Change the .* in your string to [^.]*

(And you don't need the square brackets around \. )

So:
from [A-Z][a-zA-Z][^.]*\.

…which really means:

from followed by a space

a single capital letter, not including diacriticals/accents

a single letter of any case, not including diacriticals/accents

any number (including zero) of non-period characters (which may 
include other punctuation, spaces, line breaks, etc.)


a period

Does that work, or do you need to be more specific?

Rick Gordon


On May 18, 2018 at 1:33:08 AM [-0700],
Matthew London wrote in an email entitled
"Re: Another Newbie GREP help request...":
I managed to figure out that the following would give me everything 
that had "from" followed by a capital letter, with a period followed 
by a space at the end:


from [A-Z][a-zA-Z].*[\. ]

But that also gives me all the sentences in the line which 
preceded the one I need!


How would I strip out all the sentences that precede the one I need?

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Where Are Backup/Temp Files for SFTP Files

2018-04-09 Thread Rick Gordon
I thought that I used to find them in 
~/Library/Caches/com.barebones.bbedit/FTPTemp, but now I just find empty 
folders there.


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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Newbie Question on Text Wrap

2018-03-28 Thread Rick Gordon
Actually, checking further, the discretionary line break character in 
InDesign is encoded as a zero width space [ UTF-8 (hex): 0xE2 0x80 0x8B 
(e2808b) ].


Rick Gordon


On March 28, 2018 at 9:35:27 PM [-0700],
Rick Gordon wrote in an email entitled
"Re: Newbie Question on Text Wrap":
The discretionary line break encoding appears to be non-standard. My 
hex editor flags them (3 bytes) as "Bytes are not valid UTF-8".

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Newbie Question on Text Wrap

2018-03-28 Thread Rick Gordon
The first line break is encoded as 0A (line feed) and the paragraph 
return is encoded as OD (CR). The discretionary line break encoding 
appears to be non-standard. My hex editor flags them (3 bytes) as "Bytes 
are not valid UTF-8".

This may be problematic if you /need/ your mixture of line breaks.
Yes, that's why I was proposing that some other "non-blessed" character 
like U+0085 might be able to function as a visible line break that does 
not increment the line count.


Rick Gordon


On March 28, 2018 at 9:18:02 PM [-0700],
Christopher Stone wrote in an email entitled
"Re: Newbie Question on Text Wrap":

Hey Rick,

This funkiness is “normal” for BBEdit, although the behavior is 
reversed from the point where BBEdit started using linefeeds 
internally instead of carriage returns.


If you unzip the attached AppleScript text file and drop it onto a 
blank BBEdit window set for UTF8 and Unix (LF), you'll see the 
behavior in action.


This happens because the first line break is a newline character 
instead of a carriage return.


The behavior will be different if the first line break is a carriage 
return and subsequent text contains one or more linefeeds.


The quick fix is to run “Normalize Line Endings” in the Text menu.

This may be problematic if you /need/ your mixture of line breaks.

I /think/ your success with BBEdit 9.x is /coincidental/ to the first 
line break in the text, and I'm curious to know whether it's a LF or a CR.


--
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>
---
You received this message because you are subscribed to the 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.


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

Visit this group at https://groups.google.com/group/bbedit.

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Newbie Question on Text Wrap

2018-03-28 Thread Rick Gordon
Since the linked images are based on a different font setting for the 
two version of BBEdit, I just set the font in v9.3.1 to the same one as 
in 12.1.2 -- Luxo Mono Bold 13.


But the breaks remain different between the two versions: with the 
InDesign paragraph return processed as a line break in v9.3.1 and as an 
upside-down question mark with no line break in 12 ,1,2.


Rick Gordon


On March 28, 2018 at 7:55:41 PM [-0700],
Rick Gordon wrote in an email entitled
"Re: Newbie Question on Text Wrap":

There is a difference, though it's different from what I expected:

In InDesign CS6, I set up a text frame filled with the following:

Line break: (followed by space and line break character)
Discretionary line break: (followed by space and discretionary line 
break character)​

Paragraph return: (followed by space and paragraph return character)
Line after return

I then copied the text frame content, and pasted it into both BBEdit 
9.3.1 and BBEdit 12.1.2 (in both cases showing invisibles).


In BBEdit 12.1.2, it looked like this:
https://www.dropbox.com/s/wccf316hdb5bfmg/Screen%20Shot%20from%20v9.3.1.png?dl=0 



In BBEdit 9.3.1, it looked like this:
https://www.dropbox.com/s/48d8h4kdx56sd8j/Screen%20Shot%20from%20v12.1.2.png?dl=0 



Version 9.3.1 processes the line break and the paragraph return 
identically, in both cases creating a line break.


Version 12.1.2 processes the line break and the paragraph return 
differently, with the InDesign line break creating a line break in 
BBEdit. But the paragraph return was processed as an upside-down 
question mark, not followed by a line break.


Both versions appear to have processed the discretionary return as a 
space, but it could be some other horizontal space character that 
looks like a space.

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Newbie Question on Text Wrap

2018-03-28 Thread Rick Gordon

There is a difference, though it's different from what I expected:

In InDesign CS6, I set up a text frame filled with the following:

Line break: (followed by space and line break character)
Discretionary line break: (followed by space and discretionary line 
break character)​

Paragraph return: (followed by space and paragraph return character)
Line after return

I then copied the text frame content, and pasted it into both BBEdit 
9.3.1 and BBEdit 12.1.2 (in both cases showing invisibles).


In BBEdit 12.1.2, it looked like this:
https://www.dropbox.com/s/wccf316hdb5bfmg/Screen%20Shot%20from%20v9.3.1.png?dl=0

In BBEdit 9.3.1, it looked like this:
https://www.dropbox.com/s/48d8h4kdx56sd8j/Screen%20Shot%20from%20v12.1.2.png?dl=0

Version 9.3.1 processes the line break and the paragraph return 
identically, in both cases creating a line break.


Version 12.1.2 processes the line break and the paragraph return 
differently, with the InDesign line break creating a line break in 
BBEdit. But the paragraph return was processed as an upside-down 
question mark, not followed by a line break.


Both versions appear to have processed the discretionary return as a 
space, but it could be some other horizontal space character that looks 
like a space.


Rick Gordon


On March 28, 2018 at 7:39:57 PM [-0700],
Patrick Woolsey wrote in an email entitled
"Re: Newbie Question on Text Wrap":

On 3/28/18 at 3:11 PM, li...@rickgordon.com (Rick Gordon) wrote:


I wonder if this is, in fact, related to my question on vertical space
characters. I believe that InDesign uses \n as a line break character
and \r as a paragraph return, so I wonder if the changes introduced in
BBEdit 10.5 concerning the parsing of those characters might be an issue.



Most likely not, since BBEdit supports only hard line breaks.


Regards,

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


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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Newbie Question on Text Wrap

2018-03-28 Thread Rick Gordon
I wonder if this is, in fact, related to my question on vertical space 
characters. I believe that InDesign uses \n as a line break character 
and \r as a paragraph return, so I wonder if the changes introduced in 
BBEdit 10.5 concerning the parsing of those characters might be an issue.


Rick Gordon


On March 28, 2018 at 12:09:13 PM [-0700],
Patrick Woolsey wrote in an email entitled
"Re: Newbie Question on Text Wrap":
Since how copying & pasting works does not change by app version, this 
sounds like a matter for tech support. :-)


On 3/28/18 at 6:13 AM, bbedit@googlegroups.com ('Stephen Luscombe' via 
BBEdit Talk) wrote:


I upgraded yesterday to 12 and all my workflow has gone to pot. Not 
sure why I'm looking at my old Bbedit settings to see what has 
changed (couldn't they have kept my old settings when I upgraded). 
But basically, I do a lot of importing of text from documents. I used 
to be able to just copy and paste text from say adobe into Bbedit and 
it would keep its formatting, line breaks, etc as it was in the 
original. Now everything is going hither and thither. How do I change 
the settings so that it just copies and pastes without changing 
anything?

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Character That Shows As Vertical Space But Is Within Paragraph Boundaries

2018-03-28 Thread Rick Gordon
It's already set to soft wrap at window width, and "Use hard lines in 
soft-wrapped views" is enabled.


U+0085 shows as an upside-down question mark with no line break. If 
there were a preference available to show it with a line break, that 
would solve it.


Or a preference that would modify the behavior of the internal 
equalization of \n and \r.


I can't set up an example now, but could later.

Rick Gordon


On March 28, 2018 at 11:53:37 AM [-0700],
Patrick Woolsey wrote in an email entitled
"Re: Character That Shows As Vertical Space But Is Within Paragraph 
Boundaries":
In general, there is no way to 'simulate' a line break except to 
enable soft wrapping, though an example or two might be helpful in 
case there may be some other approach to what you want to accomplish. :-)

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Character That Shows As Vertical Space But Is Within Paragraph Boundaries

2018-03-28 Thread Rick Gordon
I ask this because there are times when it is more convenient to deal 
with regular expressions where all the target content falls within one 
paragraph, but can be viewed in a more natural manner than by converting 
to compact formatting.



On March 28, 2018 at 2:44:48 AM [-0700],
Rick Gordon wrote in an email entitled
"Character That Shows As Vertical Space But Is Within Paragraph Boundaries":
Does BBEdit support a character which would show as vertical space, 
but will be parsed as an inter-paragraph character? Something like a 
soft return (or more accurately, a line break, so that it would be 
part of the same line number), but it seems that \n and \r are dealt 
with interchangeably.


Wikipedia <https://en.wikipedia.org/wiki/Newline> also lists:

 * NEL (Next Line: U+0085)
 * LS (Line Separator: U+2028)
 * PS (Paragraph Separator: U+2029)

… but none of these produce a new line effect.

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: HTML authoring - specifying a font

2018-03-16 Thread Rick Gordon
I just saw a mistake in my initial post, so this is just to acknowledge 
the correction.


Where I said "using font-face or font-family," I should have said "using 
font or font-family." (The font attribute is just a composite attribute 
by which you can define font-family along with other attributes such as 
font-size, etc..)


Rick Gordon


On March 16, 2018 at 2:46:35 PM [-0700],
Rick Gordon wrote in an email entitled
"Re: HTML authoring - specifying a font":
The one possible consideration where it might be considered acceptable 
is in HTML email, but even there, you should assign it as CSS (using 
font-face or font-family).

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: HTML authoring - specifying a font

2018-03-16 Thread Rick Gordon
The essential strategy, which has been the key factor in the improvement 
of our web experience in recent years (along with more 
standards-compliant browsers) is this:


You should not clutter up your HTML with any code affecting the way it 
looks, except to add classes or id's to the HTML elements which are 
defined in your CSS document(s) — ideally, not even to use inline CSS.


Rick Gordon


On March 16, 2018 at 2:29:55 PM [-0700],
Rick Gordon wrote in an email entitled
"Re: HTML authoring - specifying a font":
Technically, you could, but it's considered very bad practice in any 
to use any font tags in HTML. And font tags have been deprecated for 
years.  You should always assign fonts (and, as much as possible, any 
code affecting presentation) in CSS, and you can assign them to the 
body element there.


The one possible consideration where it might be considered acceptable 
is in HTML email, but even there, you should assign it as CSS (using 
font-face or font-family).


Don't do it!

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: HTML authoring - specifying a font

2018-03-16 Thread Rick Gordon
Global style definitions go more commonly in the , though 
styles can be added in the body section.


It's most common though to have the style sheet (or sometimes multiple 
style sheets) as separate documents which are linked with a line such as:



(Other attributes, such as id and media can also be included.)

Rick Gordon


On March 16, 2018 at 2:22:52 PM [-0700],
Nori Muster wrote in an email entitled
"Re: HTML authoring - specifying a font":
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.

Oh computers - why do you challenge me all the time?
Thank you for the code, Ill try it. Does 

Re: HTML authoring - specifying a font

2018-03-15 Thread Rick Gordon
Technically, you could, but it's considered very bad practice in any to 
use any font tags in HTML. And font tags have been deprecated for 
years.  You should always assign fonts (and, as much as possible, any 
code affecting presentation) in CSS, and you can assign them to the body 
element there.


The one possible consideration where it might be considered acceptable 
is in HTML email, but even there, you should assign it as CSS (using 
font-face or font-family).


Don't do it!

Rick Gordon


On March 15, 2018 at 6:25:38 PM [-0700],
Nori Muster wrote in an email entitled
"HTML authoring - specifying a font":

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?

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Regex to Escape Regex Characters in Any String

2018-03-09 Thread Rick Gordon

Why, yes. I wasn't aware that that handled escaping. Perfect!

Thanks,
Rick Gordon


On March 9, 2018 at 3:16:24 PM [-0800],
Roland Küffner wrote in an email entitled
"Re: Regex to Escape Regex Characters in Any String":
Apologies if I'm totally wrong on what you are trying to achieve, but 
ist „Using Selection for Find“ from the Search menu (cmd+E by default) 
what you are looking for? It puts your string into the Find section of 
the - well - Find dialog and translates all special characters (e.g. 
\t gets \\t). I use the key combo cmd+E and cmd+F all the time. You 
can even copy it from the Find dialog if you need the string someplace 
else.

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Regex to Escape Regex Characters in Any String

2018-03-08 Thread Rick Gordon

I meant "use the result IN a (longer) regex string" not "as a regex string."


On March 8, 2018 at 8:20:15 PM [-0800],
Rick Gordon wrote in an email entitled
"Re: Regex to Escape Regex Characters in Any String":
…so that I can use the result as a regex search string, meaning what 
it's supposed to.

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Regex to Escape Regex Characters in Any String

2018-03-08 Thread Rick Gordon
My intention is simply to have an operation that I can run on target 
strings (probably mostly code, maybe even a regex string that I want to 
interpret literally) so that I can use the result as a regex search 
string, meaning what it's supposed to.


I'm not sure that I actually need anything more than what I've already 
suggested, but maybe I'm missing something.


Rick Gordon


On March 8, 2018 at 8:12:17 PM [-0800],
Tom Robinson wrote in an email entitled
"Re: Regex to Escape Regex Characters in Any String":

I suspect you’re opening a can of worms.  Can you not just turn of Grep search?

See 
https://stackoverflow.com/questions/399078/what-special-characters-must-be-escaped-in-regular-expressions

Escaping everything might be safe but hard to read — 
https://en.wikipedia.org/wiki/Perl_Compatible_Regular_Expressions:


Like Perl, PCRE has consistent escaping rules: any non-alpha-numeric character 
may be escaped to mean its literal value by prefixing a backslash

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Regex to Escape Regex Characters in Any String

2018-03-08 Thread Rick Gordon
The purpose of this, in case I've been unclear, is to prepare a target 
string to be able to be used as the Find string fro a regex search.

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Regex to Escape Regex Characters in Any String

2018-03-08 Thread Rick Gordon

I see that I also need other searches to escape tabs and returns:

FIND:
\t

CHANGE TO:
\\t

and

FIND:
\r

CHANGE TO:
\\r


On March 8, 2018 at 5:48:15 PM [-0800],
Rick Gordon wrote in an email entitled
"Regex to Escape Regex Characters in Any String":
I'm trying to formulate a grep string that will cause any potential 
regex metacharacters in the target to be escaped with a backslash. 
Does this look as though it covers it, or do you see omissions or 
unnecessary entries?


FIND:
([\\^$()\[\]{}*?+.])

CHANGE TO:
\\\1

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Regex to Escape Regex Characters in Any String

2018-03-08 Thread Rick Gordon
I'm trying to formulate a grep string that will cause any potential 
regex metacharacters in the target to be escaped with a backslash. Does 
this look as though it covers it, or do you see omissions or unnecessary 
entries?


FIND:
([\\^$()\[\]{}*?+.])

CHANGE TO:
\\\1

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Linux Hard Links

2018-02-25 Thread Rick Gordon
A quick test using an SFTP connection seems to confirm that they do 
work, but I wondered if there might be conditions that I should be wary 
of where it could break.



On February 25, 2018 at 3:53:28 AM [-0800],
Rick Gordon wrote in an email entitled
"Linux Hard Links":
If I make a hard link to a file on a Linux server and edit the the 
hard link with BBEdit 12.x, will the hard link be maintained, or will 
it become an independent file?

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Linux Hard Links

2018-02-25 Thread Rick Gordon
If I make a hard link to a file on a Linux server and edit the the hard 
link with BBEdit 12.x, will the hard link be maintained, or will it 
become an independent file?


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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: HTML5 support

2018-01-23 Thread Rick Gordon

FROM
https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Introduction_to_HTML5#Declaring_that_the_document_contains_HTML5_mark-up_with_the_HTML5_doctype

*Declaring that the document contains HTML5 mark-up with the HTML5 doctype
*
The doctype for HTML5 is very simple. To indicate that your HTML content 
uses HTML5, simply use:




Doing so will cause even browsers that don't presently support HTML5 to 
enter into standards mode, which means that they'll interpret the 
long-established parts of HTML in an HTML5-compliant way while ignoring 
the new features of HTML5 they don't support.


This is much simpler than the former doctypes, and shorter, making it 
easier to remember and reducing the amount of bytes that must be downloaded.


Rick Gordon


On January 23, 2018 at 4:20:08 PM [-0800],
Sam Hathaway wrote in an email entitled
"Re: HTML5 support":
Re-reading Robert’s original post, it looks like he was indeed asking 
about the “HTML Tools” palette specifically, not BBEdit as a whole. He 
wrote:


On 18 Jan 2018, at 0:23, Robert wrote:
the "HTML Tools" palette doesn't seem to have HTML5 support. Is that 
planned?


But in any case I agree with Greg; this is one for supp...@barebones.com.
-sam

On 23 Jan 2018, at 19:13, Greg Raven wrote:

May be worth contacting support about this, but as I wrote earlier in 
this
thread, not every option is available in the palette, which is not 
the same

as BBEdit not supporting HTML5.

On Tuesday, January 23, 2018 at 4:10:54 PM UTC-8, Sam Hathaway wrote:


Just checked in 12.0.2 and indeed “HTML5” is missing from the “Doc 
Type”

popup menu of the “HTML Tools” palette. It is, however, present in the
“Document Type” submenu of the “Markup” menu. Go figure!
-sam




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



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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: HTML5 support

2018-01-23 Thread Rick Gordon
Doctype is not used in HTML5, which is not SGML-based, and is built to 
be forgiving of older styles of coding.


https://www.w3schools.com/tags/tag_doctype.asp


   Differences Between HTML 4.01 and HTML5

There are three different  declarations in HTML 4.01. In HTML5 
there is only one:




Rick Gordon


On January 23, 2018 at 4:15:03 PM [-0800],
Greg Raven wrote in an email entitled
"Re: HTML5 support":
May be worth contacting support about this, but as I wrote earlier in 
this thread, not every option is available in the palette, which is 
not the same as BBEdit not supporting HTML5.


On Tuesday, January 23, 2018 at 4:10:54 PM UTC-8, Sam Hathaway wrote:

Just checked in 12.0.2 and indeed “HTML5” is missing from the “Doc
Type” popup menu of the “HTML Tools” palette. It is, however,
present in the “Document Type” submenu of the “Markup” menu. Go
figure!
-sam

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

Visit this group at https://groups.google.com/group/bbedit.

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Change File Size Calculation in FTP Browser

2018-01-16 Thread Rick Gordon

Or actually, the reverse: Kilobytes as 1024 bytes rather than 1000.


On January 16, 2018 at 12:52:05 AM [-0800],
Rick Gordon wrote in an email entitled
"Change File Size Calculation in FTP Browser":
The difference is that the Finder number in MB is 1.048576 
(1.024*1.024) higher, so I'm assuming that BBEdit is calculating 
kilobytes as 1000 bytes rather than 1024. Is there a preference to 
change this behavior?

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Change File Size Calculation in FTP Browser

2018-01-16 Thread Rick Gordon
I was noting that the file sizes listed in remote directories in the 
FTP/SFTP browser show as a smaller number of MB than in the Finder, but 
if you click the Info button, that the number of bytes match.


The difference is that the Finder number in MB is 1.048576 (1.024*1.024) 
higher, so I'm assuming that BBEdit is calculating kilobytes as 1000 
bytes rather than 1024. Is there a preference to change this behavior?


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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Where are unsaved files held?

2018-01-04 Thread Rick Gordon

I was about to say that I think you mean:
~/Library/*Application Support*/BBEdit/Auto-Save Recovery/Data

But then I checked and saw that it appears be saved now in the path that 
you said (a BBEdit forder in ~/Library).


I was actually wondering if this was an intended change or not, as I can 
find no other non-Apple applications putting their own folder directly 
into ~/Library, and I thought that Application Support was the 
Apple-recommended folder for application data.


Rick Gordon


On January 4, 2018 at 2:16:24 PM [-0800],
Mark Mcleod wrote in an email entitled
"Re: Where are unsaved files held?":

Look under

/Users//Library/BBEdit/Auto-Save Recovery/Data

The filenames are cryptic but you should find the data that you need 
in the files.




On Jan 4, 2018, at 8:05 AM, David Branner <d...@brannerchinese.com 
<mailto:d...@brannerchinese.com>> wrote:


Files that the user has not actively saved are nonetheless retained 
by BBEdit (when certain settings are in place), and reopened when the 
program is restarted. Where are those unsaved files actually stored?


I ask because I want to retrieve some unsaved files after a crash. 
The machine that crashed was running OS 10.9.5.


--
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>
---
You received this message because you are subscribed to the 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.


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

Visit this group at https://groups.google.com/group/bbedit.

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


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

2017-12-19 Thread Rick Gordon

Thanks. I will double-check for that. I appreciate your input.

Rick


On December 19, 2017 at 2:39:45 AM [-0800],
@lbutlr wrote in an email entitled
"Re: Max Character Length of Search String / Trimming Unsubscribed
Addresses from List":

On 18 Dec 2017, at 22:38, Rick Gordon<li...@rickgordon.com>  wrote:

Just FYI — though I'm sure that I could bump into limits — a grep string 
containing 182 addresses, configured as:

us...@itote.com\r|us...@amherst.edu\r|us...@yahoo.com\r| (… etc., replacing 
with nothing)

…worked with no problem.


That's great, but read my email from a  few minutes ago and carefully check 
your data for the ajsmith issue I described before you check it off your list 
as done.


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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


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

2017-12-18 Thread Rick Gordon
Just FYI — though I'm sure that I could bump into limits — a grep string 
containing 182 addresses, configured as:


us...@itote.com\r|us...@amherst.edu\r|us...@yahoo.com\r| (… etc., 
replacing with nothing)


…worked with no problem.

Rick Gordon


On December 18, 2017 at 9:34:00 PM [-0800],
Christopher Stone wrote in an email entitled
"Re: Max Character Length of Search String / Trimming Unsubscribed
Addresses from List":
On 12/18/2017, at 01:34, Rick Gordon <li...@rickgordon.com 
<mailto:li...@rickgordon.com>> wrote:

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


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



Hey Rick,

Don't mess with find/replace — use a text-filter.

Here are several options (although I'd probably go with the Perl).

(Make sure you have backups before testing any given solution.)



*NOTE* - in the sed filters you need to escape any special characters 
in the email address, and the easiest way to do that is to use Cmd-E 
to enter it into BBEdit's Find dialog, open the dialog, and copy it 
out again.




This will leave a hole everywhere a deletion is made, so you can see them.

#!/usr/bin/env bash

sed -E '
s!smitj1234@students\.uwc\.edu!!g
s!jane\.smith@uwc\.edu!!g
'



If you have a one per line listing of email addresses then this will 
delete the given line.



#!/usr/bin/env bash

sed -E '
/smitj1234@students\.uwc\.edu/d
/jane\.smith@uwc\.edu/d
'



Simplest — No escaping needed:



If you want to delete a list of literal email address strings sourced 
from a “delete file” in the currently open BBEdit window:


#!/usr/bin/env bash

emailsToRemoveFilePath=~/'Downloads/Email Address to Remove.txt'
grep-Fvxf "$emailsToRemoveFilePath"

** You can use this same command with a file instead of a window, but 
you have to run the filter as a script rather than as a text-filter.




Best?  Certainly the fastest for big files.

NOTE - the single quotes in the path strings.  If you path has any 
spaces in it you either have to quote it or escape the spaces.  I find 
quoted paths much easier to read.




#!/usr/bin/env perl -sw

my $validEmails = glob("~/'Downloads/Valid Email Addresses.txt'");
my $invalidEmails = glob("~/'Downloads/Invalid Email Addresses.txt'");


# Open the files.
openF1 , "$validEmails"or die "Cant open : $! \n";
openF2 , "$invalidEmails"or die "Cant open : $! \n";

# Create the hash key with each line of the invalid items file.
while ( ) {
chomp;
$file{$_}='';
}

# Print the line from the valid emails file — IF key does not exist in 
the hash.

while ( )  {
chomp ;
print $_ , "\n"   unless(exists ( $file{$_} ) ) ;
}



You can run the above Perl script via Cmd-R and get non-destructive 
output.


OR — you can run it as a text filter ON the valid email address file 
(in the front BBEdit window).




Here's one way to do it with AppleScript and the Satimage.osax 
<http://www.satimage.fr/software/en/downloads/downloads_companion_osaxen.html>.


---
# *REQUIRES* the Satimage.osax --> http://tinyurl.com/satimage-osaxen
---

# Establish the file aliases.
*set* invalidFile *to* /alias/ ((*path to* /downloads folder/ as 
/text/) & "Invalid Email Addresses.txt")
*set* validFile *to* /alias/ ((*path to* /downloads folder/ as /text/) 
& "Valid Email Addresses.txt")


# Scoop up the valid and invalid email addresses.
*set*invalidEmails*to**find 
text*"^\\S+@\\S+"ininvalidFile*with*regexp, all occurrences*and*string 
result
*set*validEmails*to**find text*"^\\S+@\\S+"invalidFile*with*regexp, 
all occurrences*and*string result


# Remove invalid addresses from the valid list.
*set*newList*to**change*invalidEmailsinto""invalidEmails*with*regexp*without*case 
sensitive


# O

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

2017-12-18 Thread Rick Gordon

Wow, thanks, Christopher and @lbutlr! Plenty of great ideas here.

Rick Gordon


On December 18, 2017 at 2:59:00 PM [-0800],
Christopher Stone wrote in an email entitled
"Re: Max Character Length of Search String / Trimming Unsubscribed
Addresses from List":
On 12/18/2017, at 01:34, Rick Gordon <li...@rickgordon.com 
<mailto:li...@rickgordon.com>> wrote:

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


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



Hey Rick,

Don't mess with find/replace — use a text-filter.

Here are several options (although I'd probably go with the Perl).

(Make sure you have backups before testing any given solution.)



*NOTE* - in the sed filters you need to escape any special characters 
in the email address, and the easiest way to do that is to use Cmd-E 
to enter it into BBEdit's Find dialog, open the dialog, and copy it 
out again.




This will leave a hole everywhere a deletion is made, so you can see them.

#!/usr/bin/env bash

sed -E '
s!smitj1234@students\.uwc\.edu!!g
s!jane\.smith@uwc\.edu!!g
'



If you have a one per line listing of email addresses then this will 
delete the given line.



#!/usr/bin/env bash

sed -E '
/smitj1234@students\.uwc\.edu/d
/jane\.smith@uwc\.edu/d
'



Simplest — No escaping needed:



If you want to delete a list of literal email address strings sourced 
from a “delete file” in the currently open BBEdit window:


#!/usr/bin/env bash

emailsToRemoveFilePath=~/'Downloads/Email Address to Remove.txt'
grep-Fvxf "$emailsToRemoveFilePath"

** You can use this same command with a file instead of a window, but 
you have to run the filter as a script rather than as a text-filter.




Best?  Certainly the fastest for big files.

NOTE - the single quotes in the path strings.  If you path has any 
spaces in it you either have to quote it or escape the spaces.  I find 
quoted paths much easier to read.




#!/usr/bin/env perl -sw

my $validEmails = glob("~/'Downloads/Valid Email Addresses.txt'");
my $invalidEmails = glob("~/'Downloads/Invalid Email Addresses.txt'");


# Open the files.
openF1 , "$validEmails"or die "Cant open : $! \n";
openF2 , "$invalidEmails"or die "Cant open : $! \n";

# Create the hash key with each line of the invalid items file.
while ( ) {
chomp;
$file{$_}='';
}

# Print the line from the valid emails file — IF key does not exist in 
the hash.

while ( )  {
chomp ;
print $_ , "\n"   unless(exists ( $file{$_} ) ) ;
}



You can run the above Perl script via Cmd-R and get non-destructive 
output.


OR — you can run it as a text filter ON the valid email address file 
(in the front BBEdit window).




Here's one way to do it with AppleScript and the Satimage.osax 
<http://www.satimage.fr/software/en/downloads/downloads_companion_osaxen.html>.


---
# *REQUIRES* the Satimage.osax --> http://tinyurl.com/satimage-osaxen
---

# Establish the file aliases.
*set* invalidFile *to* /alias/ ((*path to* /downloads folder/ as 
/text/) & "Invalid Email Addresses.txt")
*set* validFile *to* /alias/ ((*path to* /downloads folder/ as /text/) 
& "Valid Email Addresses.txt")


# Scoop up the valid and invalid email addresses.
*set*invalidEmails*to**find 
text*"^\\S+@\\S+"ininvalidFile*with*regexp, all occurrences*and*string 
result
*set*validEmails*to**find text*"^\\S+@\\S+"invalidFile*with*regexp, 
all occurrences*and*string result


# Remove invalid addresses from the valid list.
*set*newList*to**change*invalidEmailsinto""invalidEmails*with*regexp*without*case 
sensitive


# Output the new valid addresses to the console
*set*AppleScript'stext item delimiters*to*linefeed
*set*newList*to*newList*as*/text/
*set* newList *to* *change* &qu

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

2017-12-17 Thread Rick Gordon

I was considering do a large search string like this:

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

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


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


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


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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Preference to Reopen Files on Remote Severs Automatically?

2017-05-18 Thread Rick Gordon

Thanks, Rich.

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

Rick Gordon


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

On Thursday, May 18, 2017, Rick Gordon<li...@rickgordon.com>  wrote:


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


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

R.

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Preference to Reopen Files on Remote Severs Automatically?

2017-05-18 Thread Rick Gordon

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

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


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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Keeping window width when toggling sidebar

2017-04-11 Thread Rick Yentzer
I would like for the toggling of the sidebar to not affect the width of the 
window. I'd prefer the sidebar and content area to use the same window 
width. I typically use an app to set my window sizes for BBEdit, iTerm, and 
Chrome. I have them close together so I can easily see each while I'm 
working. But this layout of windows and apps always gets messed up when 
showing or hiding the sidebar of BBEdit because it then obscures one of the 
other app's windows.

Is there a preference for this behavior?

Thanks,
Ric

-- 
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: Customer post: How to quickly create html form-fields via grep search & replace

2017-02-25 Thread Rick Yentzer
That was really helpful. If also gives ideas for other ways to use grep and 
replace together in html and the like.


On Thursday, February 23, 2017 at 2:53:14 PM UTC-5, Patrick Woolsey wrote:
>
> Good afternoon folks, 
>
> We just heard from a customer who's written a handy tutorial 
> about creating HTML form fields using BBEdit, so I'm posting a 
> link here for anyone who may find this helpful: 
>
> How to quickly create html form-fields using BBEdit’s GREP 
> search and replace function -- by Ole Kristian Ek Hornnes: 
>
> <
> https://tech.humlesite.eu/2017/02/21/how-to-quickly-create-html-form-fields-using-bbedits-grep-search-and-replace-function/>
>  
>
>
>
> Regards, 
>
>   Patrick Woolsey 
> == 
> Bare Bones Software, Inc.  
>
>

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


Re: BBEdit and Kite

2017-02-16 Thread Rick Yentzer
I saw Kite a while back and it looked interesting. But, I'm content with my 
current setup of using Dash as my "Find in Reference". It's there when I 
need it and out of the way when I don't.

On Saturday, February 11, 2017 at 11:24:29 PM UTC-5, Jim Scheller wrote:
>
> As somebody who basically lives with StackOverflow running in a browser 
> right next to BBEdit while I'm coding all day, I was super excited when I 
> heard about Kite and watched the teaser video.
>
> When I requested my Kite invitation, I was disappointed that my favorite 
> text editor didn't show up in their registration survey. But then I saw the 
> announcement that Kite support was integrated directly into BBEdit 11, and 
> my enthusiasm was instantly renewed...
>
> Had a few questions...
>
> First, are there any impressions from folks already using Kite and BBEdit? 
> Is it useful? Do you find it lives up to the hype?
>
> Second, any suggestions on trying to get an your invitation moving? Is 
> there someone on either team looking for more BBEdit users to shake the 
> integration out?
>
> Regards,
>
> Jim
>

-- 
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: Grep RegEx help

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


(?s).*?

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

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

Rick Gordon


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

I have some XML that looks like  as follows.

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


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




Albany - Hudson Market
/*Temp Test
true


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



Albany - Hudson-



false


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


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



Financial Ctr Mgr

Market
Albany / Hudson




false


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


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




mail code
NY6-100-01-01




false



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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Selectively Clearing Recents

2017-01-27 Thread Rick Gordon

Perfect. Thanks, Michael.

Rick Gordon


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

Hello.

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

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

- Relaunch BBEdit

Le Jeudi 26 janvier 2017 2h26, Rick Gordon <li...@rickgordon.com> a 
écrit :



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


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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Selectively Clearing Recents

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


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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: minify css

2016-12-13 Thread Rick Yentzer
Christopher,
I'm envious of your AppleScript and shell knowledge. You always have a 
solution for those on this board. Kudos!

Rick

On Monday, December 12, 2016 at 5:25:44 PM UTC-5, Christopher Stone wrote:
>
> On Nov 25, 2016, at 16:48, Venmore <ven...@gmail.com> wrote:
>
> What is the best way to do this within BBEdit please?
>
> Can it be done on save/export whilst keeping original format for easy 
> editing?
>
> --
>
> Hey Carl,
>
> It looks like the yuicompressor java module is one of the more highly 
> regarded compressors.  (Of course you must have Java installed for it to 
> work.)
>
> See the downloads area on this page: 
> https://github.com/yui/yuicompressor/releases
>
> Using it in a BBEdit text filter is simple enough:
>
>
> ---
>
> #!/usr/bin/env bash
>
> java -jar ~/Downloads/yuicompressor-2.4.8.jar --type css --charset utf8
>
>
> ---
>
> Give it a keyboard shortcut and go-to-town.
>
>
> ---
> # An AppleScript version:
>
> ---
>
> *set* bbeditText *to* bbeditFrontWinText()
> *set* shCMD *to* "java -jar ~/Downloads/yuicompressor-2.4.8.jar --type 
> css --charset utf8 <<< " & quoted form *of* bbeditText
> *set* minifiedCSS *to* *do shell script* shCMD
>
> # Do whatever you want with the minifed css.
>
>
> ---
> --» HANDLERS
>
> ---
> *on* bbeditFrontWinText()
>*tell* *application* "BBEdit"
>   *tell* *front* *document* *to* *its* *text*
>*end* *tell*
> *end* bbeditFrontWinText
>
> ---
>
> * Note that you should pick a more permanent path for the yuicompressor 
> module.
>
> --
> Best Regards,
> Chris
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google 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: minify css

2016-12-12 Thread Rick Yentzer
This is bad advice.

Javascript is also just text, but the developer should always look for ways 
to improve site loading speed and performance. Minification of CSS and JS 
and even HTML is standard within the web development industry. 



On Friday, December 2, 2016 at 1:47:16 AM UTC-5, Lewis Butler wrote:
>
> On 11/25/16 3:48 PM, Venmore wrote: 
>
> > What is the best way to do this within BBEdit please? 
>
> Coming back to this, Why? 
>
> CSS is taxt, and text is small. A single small graphic on a page is 
> probably more data than all the CSS, so you're not saving anything by 
> squishing it down to remove a few EOLs and maybe some spaces. Add to 
> that that nearly all webservers compress the data and you're saving 
> practically nothing, if anything at all. 
>
>
>

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


Open .JAR File as Project

2016-11-10 Thread Rick Gordon

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

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Dropbox sync when using Dropbox for Business

2016-10-10 Thread Rick Gordon

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

-
On 10/8/16, 7:59 AM, Rich Siegel wrote:
On Friday, October 7, 2016, Christopher Stone 
<listmeis...@suddenlink.net> wrote:


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


cat ~/.dropbox/info.json


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


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


R.



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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Sort email addresses by domain name...

2016-07-06 Thread Rick Gordon

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

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


@.*

Hope this helps,

[fletcher]


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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

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

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


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

2016-07-06 Thread Rick Gordon

Try something like this:

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

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

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

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

   ---

   Then sort the lines.

   ---

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

   FIND:
   %%.+?%%%

   CHANGE TO:

   [an empty string]


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

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


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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

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

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


Re: [ANN] BBEdit 11.6 (3939) pre-release

2016-06-21 Thread Rick Yentzer
After updating to this version, when I click on an html file in the 
Document Drawer, it now opens the file in my default browser instead of 
BBEdit. I now have to right-click the document and select "Open as 
Selection". I did not have this behavior in the previous version.

Thanks,
Rick


On Monday, June 20, 2016 at 4:52:56 PM UTC-4, Rich Siegel wrote:
>
> Good afternoon folks, 
>
> We're working on an update to BBEdit 11 which will add some new 
> features and address a few recently reported issues. 
>
> Note that this is a _pre-release_ version. The intent is to fix 
> bugs and address areas of improvement based on what our 
> customers have reported. However, since the software is at this 
> point not fully tested, there _may_ be bugs and regressions. If 
> this prospect makes you nervous, then sticking with the public 
> release versions is your best course of action. Nobody will be 
> offended if you choose to do so; you're under no obligation to 
> install and use anything but a public release. :-) 
>
> Following is a summary of changes since the most recent 
> pre-release build. Complete change notes for all of the 
> pre-release builds in this cycle are available here: <
> http://pine.barebones.com/rowboat/11.6_Notes.txt>. 
>
> The change notes are organized into additions, changes, and 
> fixes, and are annotated where appropriate with case numbers. So 
> if you recognize a number corresponding to a support case that 
> was opened for you, you can now verify that it's been fixed 
> correctly. Please take the time to review the changes before 
> using the new build -- it'll be worth your time. 
>
> One final note: If you run into a bug in a pre-release version, 
> PLEASE DO NOT REPORT THE BUG TO THE LIST. This includes asking 
> about whether others have seen the same problem. Instead, please 
> send a bug report to <sup...@barebones.com > and we will 
> deal 
> with it there. This will help us keep the list discussion on 
> topic and productive for all list members. 
>
>  
>
>
> version 11.6 (3939) (2016-06-20) 
>
> Additions 
> - 
>
> o   (none in this build) 
>
> Changes 
> --- 
>
> o   (none in this build) 
>
> Fixes 
> - 
>
> -   [NFR] [323383, 323384] Fixed problem in Markdown docs with 
>  github-style fenced codeblocks losing their coloring when 
> an edit 
>  was made immediately after the fenced block. 
>
> *   [NFR] [323250] Fixed crash which would occur when opening 
>  documents which were modified in Xcode; this was 
> symptomatic of 
>  an underlying internal condition. 
>
> *   [323349] If the page guide contrast (which also affects the 
>  contrast of tab stop lines) is set to zero, don't spend time 
>  drawing invisible tab stop lines. 
>
> *   The Guide Contrast setting is now range-limited, so that using 
>  the minimum setting no longer renders tab stops and the page 
>  guide invisible when those display options are enabled. 
>
> *   [323115] Fixed bug in which certain malformations in a language 
>  module's plist would cause the application to crash; and other 
>  errors in construction would cause the language module to fail 
>  silently. Validation has been extended to log these conditions 
>  and prevent the module from loading. 
>
> ==end== 
>
> The package can be downloaded from our web server: 
>
>  <https://s3.amazonaws.com/BBSW-download/BBEdit-11.6_3939.dmg> 
>
> Enjoy, 
>
> Rich Siegel 
> == 
> 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.


Re: Emmet support

2016-03-19 Thread Rick Yentzer
Hey Maarten, 

I was wondering if you had any luck with this? I've used BBEdit for years 
and at my current job I use and IDE with Emmet. Emmet is so ingrained in my 
workflow that it's hard to work around without a mental reset, and I want 
to go back to just BBEdit.

I've thought about porting some of Emmet's features to TextExpander but I 
would lose some of it features, but I could live with that.

I'll be reading up on the article Rich posted.

Thanks,
Rick


On Tuesday, October 28, 2014 at 1:24:23 PM UTC-4, Maarten Sneep wrote:
>
>
> > On 28 Oct 2014, at 15:51, Rich Siegel <sie...@barebones.com 
> > wrote: 
> > 
> > On Tuesday, October 28, 2014, Maarten Sneep <maarte...@xs4all.nl 
> > wrote: 
> > 
> >> The user interface in Xcode 6 is shuffled around enough so that I 
> >> can’t seem to find how to add a referencing outlet to the window. I’m 
> >> struggling at the step “The window should have its delegate and window 
> >> properties both bound to the File's Owner”, as it seems I can’t add a 
> >> referencing outlet for ‘window’. 
> > 
> > If you make the file's owner an NSWindowController, you should then be 
> able to add a binding to the "window" property in the Outlets section. 
>
> Thanks, that sentence is a helpful addition on the instruction page. 
>
> >> The argument behaviour handling is nice, however, I wonder what 
> >> “String values (including file name paths) are not escaped or quoted 
> >> in any way” means in practice. How do you call the script internally? 
> >> Do string arguments with spaces end up in separate arguments from the 
> >> point of view of the script? 
> > 
> > No; each argument is an element of $ARGV, so the absence of quoting 
> means simply that spaces and other such are unescaped. 
>
> OK, this is probably what I would expect, but I’ll check. 
>
> >> Adding the quoting would be nice as a future addition. (I was trying 
> >> to answer these questions, but alas). 
> > 
> > If it proves to be necessary for working functionality, I'll certainly 
> consider it; but I'm trying not to add complexity in advance of 
> demonstrated need. :-) 
>
> With this information I can try it myself and see what happens. That’ll 
> make my needs more clear. 
>
> One argument form that may be missing is a command mode, like the update 
> in ‘hg update’. The argument form for this would be just ‘value’. This 
> would be useful in combination with a popup menu. 
>
> It would be nice to have an example to play with. 
>
> Best, 
>
> Maarten

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

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


Reopen Docs that Were Open at Last Quit Without Confirmation Dialog

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


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

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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

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

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


Re: Email Address From BBEdit List Crashes Mail App

2015-10-17 Thread Rick Gordon

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

Rick Gordon

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

Dear BBEdit list friends,

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


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


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

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


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


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


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


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


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


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

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



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

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

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

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

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


  1   2   3   >