Re: BBEdit 15 preview with BBEdit

2024-04-17 Thread Bruce Van Allen
doesn't have > validation feature which in essence does same thing as W3C. > > > On Wednesday, April 17, 2024 at 1:16:34 AM UTC-4 Bruce Van Allen wrote: > I think before going to Preview (in BBEdit or Safari) it would be good to use > BBEdit’s syntax checker - Menu: Mark

Re: BBEdit 15 preview with BBEdit

2024-04-16 Thread Bruce Van Allen
I think before going to Preview (in BBEdit or Safari) it would be good to use BBEdit’s syntax checker - Menu: Markup -> Check -> Document Syntax. Could be copy-paste issues, but in your HTML as shown: - the div with class=“content” needs a closing div tag, after the closing p tag (not

Re: BBEdit 15 preview with BBEdit

2024-04-16 Thread Bruce Van Allen
et: font-size: smaller; as 9px or ?em (can't > remember but about = to 9px) didn't work either. > On Tuesday, April 16, 2024 at 10:12:22 PM UTC-4 Bruce Van Allen wrote: > Can you post a minimal example HTML page or fragment that we can look at both > ways? I don’t recall seei

Re: BBEdit 15 preview with BBEdit

2024-04-16 Thread Bruce Van Allen
Can you post a minimal example HTML page or fragment that we can look at both ways? I don’t recall seeing major text size or other formatting differences between BBEdit preview and Safari. Quite a few settings might be impinging (BBEdit, Safari, System) ... — Bruce

Re: ChatGPT worksheet contexts

2024-01-16 Thread Bruce Van Allen
BB folk could describe this better than I can, but a given worksheet’s queries and answers become a cumulative record that the AI continues to be “aware” of. So I can refer back to an earlier answer on the sheet. I now have several sheets going on different topics. Coders note: I often have

Re: ChatGPT worksheet contexts

2024-01-15 Thread Bruce Van Allen
As one kind of context, I describe something or write out a code excerpt a la StackOverflow, and then ask a question about it. Example: select this and press Enter/Control-Return: The programming language Raku has a Supply construct, which provides the means to iterate over a variety of

Re: Can't get CharGPT to work on v15

2024-01-15 Thread Bruce Van Allen
NOT a ChatGPT Plus account. Excerpt: How do I access the GPT-4 API? If you're a Pay-As-You-Go customer and you've made a successful payment of $1 or more, you'll be able to access the GPT-4 API (8k). ChatGPT Plus ChatGPT

Re: Can't get CharGPT to work on v15

2024-01-14 Thread Bruce Van Allen
Did you see this? Excerpt: How do I access the GPT-4 API? If you're a Pay-As-You-Go customer and you've made a successful payment of $1 or more, you'll be able to access the GPT-4 API (8k). ChatGPT Plus ChatGPT Plus

Re: Right-click file in Finder and open it in a new BBEdit window

2024-01-13 Thread Bruce Van Allen
a lot and it > happens often enough that I feel motivated to ask the question here! > On Saturday, January 13, 2024 at 7:24:35 PM UTC Bruce Van Allen wrote: > What’s your BBEdit setting for Application -> Open Documents into the front > window if possible ? > > If it’s no

Re: Right-click file in Finder and open it in a new BBEdit window

2024-01-13 Thread Bruce Van Allen
What’s your BBEdit setting for Application -> Open Documents into the front window if possible ? If it’s not checked, simply double clicking a file in the finder will open it in a new window. Is that what you're after, or have I misunderstood your objective? — Bruce

Re: Can't get CharGPT to work on v15

2024-01-12 Thread Bruce Van Allen
Hey Steve, Did you see my reply with OpenAI’s explanation why ChatGPT Plus only works via the web? I didn’t see it show up on the list, but my ISP’s email service has been squirrelly all day. It’s on that OpenAI site linked to earlier — Bruce _bruce__van_allen__santa_cruz_ca_ > On

Re: Can't get CharGPT to work on v15

2024-01-12 Thread Bruce Van Allen
I see this on that openai linked page: How do I access the GPT-4 API? If you're a Pay-As-You-Go customer and you've made a successful payment of $1 or more, you'll be able to access the GPT-4 API (8k). ChatGPT Plus ChatGPT Plus subscribers will get GPT-4 access on chat.openai.com with a usage

Re: Can't get CharGPT to work on v15

2024-01-12 Thread Bruce Van Allen
Yes, you have to pay, but it is very inexpensive. As Kerri’s earlier post mentions, OpenAI subscribers only need to have paid $1 USD. Here’s that link again: I’m currently doing code review and test development using

Re: BBEdit 15 ChatGPT Worksheets custom url

2024-01-10 Thread Bruce Van Allen
hed through the manual, of course, and I can’t see > what I might be missing. It should be very obvious, but right now it’s > driving me positively insane. > > Corentin > > > >> On Jan 10, 2024, at 14:10, Bruce Van Allen wrote: >> >> So far over here it

Re: BBEdit 15 ChatGPT Worksheets custom url

2024-01-10 Thread Bruce Van Allen
So far over here it works with every OpenAI version I get credentials for. What have you tried? — Bruce _bruce__van_allen__santa_cruz_ca_ > On Jan 10, 2024, at 11:04 AM, James Reynolds > wrote: > > It would be great if ChatGPT worksheets worked with any OpenAI compatible > API.

Re: BBEdit 15.0 and Sonoma

2024-01-09 Thread Bruce Van Allen
None over here — Bruce _bruce__van_allen__santa_cruz_ca_ > On Jan 9, 2024, at 6:27 PM, 'Steve Nicholson' via BBEdit Talk > 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 >

Re: Backing up the currently open files list

2023-12-12 Thread Bruce Van Allen
That’s one of the uses of Projects. I have several sets of specific files that go together for my different development and data analysis projects. Each set of files (worksheets, scripts, data files, configs, etc) is listed in a Project. Some files are in more than one project. The files are

Re: short-cut 'Notes' window

2023-11-23 Thread Bruce Van Allen
Look again at setting up services. > Thank you GP for answering. The shortcut for "New Note in BBEdit" with > selected text is certainly useful, but it is not what I am looking for. I’m re-stating GP’s suggestion to make sure you get that this wasn’t about assigning a keyboard shortcut in

Re: Book capitalization, not “initial caps:” “the” not “The”

2023-11-15 Thread Bruce Van Allen
Isn’t that “Title Case” in BBEdit’s Text -> Change Case options? — Bruce _bruce__van_allen__santa_cruz_ca_ > On Nov 15, 2023, at 11:57 AM, Doug Parker wrote: > > In MacOS, how can BBE be programmed to do book caps, not initial caps? For > example, small words get omitted, like > > •

Re: Change First Name SPACE Last Name to First Initial Last Name

2023-10-10 Thread Bruce Van Allen
, matches the dot to the last character before the space, matches the space, and moves on. — Bruce _bruce__van_allen__santa_cruz_ca_ > On Oct 10, 2023, at 4:25 PM, Bruce Van Allen wrote: > > That ‘.’ doesn’t match the space character between first and last because > that spa

Re: Change First Name SPACE Last Name to First Initial Last Name

2023-10-10 Thread Bruce Van Allen
.. So why does then successfully match the space character as demanded by the regular expression? Hasn't it been "used up" by the period? On Tuesday, October 10, 2023 at 2:41:42 PM UTC-7 Bruce Van Allen wrote: The ‘+’ is quantifying a character class '[a-z]’. ‘[a-z]+’ (without the qu

Re: Change First Name SPACE Last Name to First Initial Last Name

2023-10-10 Thread Bruce Van Allen
The ‘+’ is quantifying a character class '[a-z]’. ‘[a-z]+’ (without the quotes) means one or more characters in the range ‘a’ to ‘z’. The ‘.’ just adds one more character, and isn’t needed. And Tim is correct that there’s no fourth capture, so the ‘\4' is meaningless. — Bruce

Re: add # comment to python code

2023-09-21 Thread Bruce Van Allen
\s* stands for zero or more whitespace characters, including \n and \r (newlines). Two ways (at least) to get what you want: 1. Instead of \s, use a character class. [ \t] defines a character class with a spacebar space and a tab. * All of these start at beginning of line due to ‘^’ anchor.

Re: Formatting Multiple Choice Questions Using Regex

2023-09-13 Thread Bruce Van Allen
r 13, 2023 at 1:06:21 PM UTC-4 Bruce Van Allen wrote: > Here’s what I think what Kevin is getting at: if you want a generalized > method that works for every/any question, not just the three in your example, > then that method has to know which answer to designate as correct. > > E.g

Re: Formatting Multiple Choice Questions Using Regex

2023-09-13 Thread Bruce Van Allen
Here’s what I think what Kevin is getting at: if you want a generalized method that works for every/any question, not just the three in your example, then that method has to know which answer to designate as correct. E.g., you’ve said there can be as many as 99 questions; which answer for

Re: How to divide subtitles (srt) in two lines

2023-06-05 Thread Bruce Van Allen
Still not clear to me what you’re trying to do. Do you mean that you want to break the lines into 50 characters each, regardless of word length? > I can then repeat this several times with different number of characters, > from many to fewer. Where are those different numbers coming from?

Re: How to divide subtitles (srt) in two lines

2023-06-05 Thread Bruce Van Allen
Surrounding a portion of your match expression with parentheses “captures” the part of the original text matched by that part of the match expression. Captured bits of text may then be used in the replacement expression, denoted by \1, \2, etc, for each successive set of parens, counting from

Re: Formatting srt files

2023-05-30 Thread Bruce Van Allen
How are the errors created? E.g., manual input, database query, computer transcription from audio, etc.? I’m not familiar with srt files, so I don’t have a picture of your workflow. In general it’s best to catch errors when they’re created, rather than passing them on to the next user. If

Re: Add space between paragraphs

2023-05-29 Thread Bruce Van Allen
s 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> >>> --- >

Re: Add space between paragraphs

2023-05-29 Thread Bruce Van Allen
And do you mean that with soft-wrapping off, a paragraph is still broken into multiple lines with “\n”s? If I were to import that to a page layout app, I would first remove all of those interior “\n”s in BBEdit; otherwise they’ll mess up the page layout’s formatting. — Bruce

Re: Add space between paragraphs

2023-05-29 Thread Bruce Van Allen
>> if newlines were paragraph separators. It’s easy to find each “\n” and replace it with with “\n\n", to provide space between lines, but I have a feeling that’s not what you’re thinking of. Keep in mind that BBEdit is a text editor, not a word processor or page layout app. In text, “\n”

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

2023-05-15 Thread Bruce Van Allen
> On May 15, 2023, at 3:13 AM, 'Andy Nickless' via BBEdit Talk > wrote: > > Thank you once again, Kaveh - that works perfectly! > Best wishes, Yay! For future reference, the best way to get help is NOT to try diagnosing the problem into abstractions, but rather to provide a few before and

Re: General question: File not found

2023-05-06 Thread Bruce Van Allen
I have the same experience. If I immediately repeat the “Open” command or double-click, the files open normally. Also doesn’t seem unique to BBEdit, and I still haven’t spotted a pattern, such as with the file hierarchy, behind the inconsistent behavior. Pretty weird to see a file in the

Re: Digest for bbedit@googlegroups.com - 2 updates in 1 topic

2023-05-03 Thread Bruce Van Allen
Just checking - have you tried dragging items up or down in the project sidebar to change the order? Works over here, even with "_Add docs in alpha order" checked. — Bruce _bruce__van_allen__santa_cruz_ca_ > On May 3, 2023, at 6:00 AM, David Weinberger wrote: > > Holger, > > Thanks

Re: Need help simplifying apple script with grep

2023-03-18 Thread Bruce Van Allen
> On Mar 17, 2023, at 09:29, you wrote: >> Yes, double escapes are needed. As handy as Applescript is, quoting is a >> major pain point. > > > Not if you use Script Debugger. Thanks for the reminder! I use Script Debugger, but hadn’t been using that capability. — Bruce

Re: Displaying TSV files

2023-03-17 Thread Bruce Van Allen
In addition to Rich’s suggestion, you could set tab width to a larger-than-normal size, to put more space between columns. I have a little utility written in Applescript, saved in BBEdit’s Scripts folder, that adds 12 spacebar spaces to the tab width. Successive calls to the script keep

Re: Need help simplifying apple script with grep

2023-03-17 Thread Bruce Van Allen
in AppleScript: \\* > • becomes \* in BBEdit > • to find "*" > > > On Fri, 17 Mar 2023 at 13:36, Bruce Van Allen wrote: > Oops - I mis-typed one bit: the inner part of the find pattern should be > “[^*]” - asterisk instead of plus sign. > > tell applicati

Re: Need help simplifying apple script with grep

2023-03-17 Thread Bruce Van Allen
true} end tell end tell — Bruce _bruce__van_allen__santa_cruz_ca_ > On Mar 17, 2023, at 6:08 AM, Bruce Van Allen wrote: > > Here’s a slightly amended version of your script: > > tell application “BBEdit” > tell front text window >replace "/\\*([^+]*?

Re: Need help simplifying apple script with grep

2023-03-17 Thread Bruce Van Allen
Here’s a slightly amended version of your script: tell application “BBEdit” tell front text window replace "/\\*([^+]*?)\\*/" using "" options ¬ {search mode:grep, case sensitive:false, starting at top:true} end tell end tell The differences are: - no parentheses () surrounding the

Re: Starting new chapters on a new page - added

2023-03-15 Thread Bruce Van Allen
I haven’t used Quark for at least a decade, so I haven’t faced this question in that context. But with css in general: 1. Your css is using the deprecated page-break-inside property. It might still work, so try 'page-break-before: initial;' in the first paragraph of a chapter. ADDED: Maybe not

Re: Starting new chapters on a new page

2023-03-15 Thread Bruce Van Allen
I haven’t used Quark for at least a decade, so I haven’t faced this question in that context. But with css in general: 1. Your css is using the deprecated page-break-inside property. It might still work, so try 'page-break-before: initial;' in the first paragraph of a chapter. 2. Otherwise the

Re: Attempting to diagnose a corrupt XML file and possibly discovered BBEdit reads gz-compressed XML files fluently?

2023-02-20 Thread Bruce Van Allen
For a little insight, from the BBEdit manual: ## Manual ## * Opening bz2, gzip, and tar Files and Binary plists BBEdit transparently opens and displays the contents of any bz2 or gzip-compressed files (“.bz2”, “.gz” and “.gzip” files), as well as tarballs (“.tar” files) and binary plists

Re: Live Preview On BBedit =SOLVED_!

2023-02-17 Thread Bruce Van Allen
eed to “set the ’ServerName’ directive globally” (how?) then > that’s ok. > > Now php pages can be previewed, thanks a lot! > > / > with best regards, Omar KN, Stockholm, Sweden > >> On 17 Feb 2023, at 03:44, Bruce Van Allen wrote: >> >> Or go Roger one st

Re: Scripting a Find, then doing a second Find, searching in the first Find's results

2023-02-17 Thread Bruce Van Allen
> On Feb 17, 2023, at 10:35 AM, Christopher Stone > wrote: > Thanks for catching my mistake. :-) Only happened because I always study your great scripts to learn from them! — Bruce _bruce__van_allen__santa_cruz_ca_ -- This is the BBEdit Talk public discussion group. If you have a

Re: Scripting a Find, then doing a second Find, searching in the first Find's results

2023-02-17 Thread Bruce Van Allen
Chris, did you mean: $newSubject =~ s!\h!\%20!g; rather than $newSubject =~ s!\h!\$20!g; — Bruce _bruce__van_allen__santa_cruz_ca_ > On Feb 16, 2023, at 8:15 PM, ChristianBoyce wrote: > > Hi there. I have a big bunch of text, marked up with codes that get replaced > with fancy

Re: Live Preview On BBedit

2023-02-16 Thread Bruce Van Allen
0.0.1 could not be reached. >> >> / >> with best regards, Omar KN, Stockholm, Sweden >> >> On Sunday, 12 February 2023 at 22:54:17 UTC+1 Bruce Van Allen wrote: >> To be clear, macOS still comes ready to serve static and dynamic web >> pages/apps using

Re: Live Preview On BBedit

2023-02-12 Thread Bruce Van Allen
To be clear, macOS still comes ready to serve static and dynamic web pages/apps using Apache. The Mac Server app, now discontinued, isn’t needed. The last few macOS system updates have removed PHP, but it’s easy to install using Homebrew. Many on this list could give you the basic simple

Re: BBEdit 13.5.7 - VERBOSE feedback on Find

2023-01-06 Thread Bruce Van Allen
Check the Expert Preferences. In your version of BBEdit accessing info about them might be different, but the Barebones online expert prefs are explained here: For example: ### quote from barebones.com ### • When

Re: Print Dyna Labels from list

2022-12-18 Thread Bruce Van Allen
Are you asking how to automate this? I’m not familiar with Dynalabel, so not clear on the task. But for page breaks, a place to start could be BBEdit’s command to insert a page break (“\f” form feed in regex speak): Menu command: Edit -> Insert -> Page Break This can be automated with a

Re: Grep: Delete everything that doesn't match.

2022-11-12 Thread Bruce Van Allen
It sure looks to me like Text -> Process Lines Containing… could do what you want. 1. Choose Find lines that do not contain: 2. Put the pattern you mention in the box. 3. Choose Delete matched lines 4. Make sure Copy to clipboard and Copy to new document are NOT checked. 5. Click Process

Re: Sort via GREP involving tabs and invisibles

2022-10-08 Thread Bruce Van Allen
It’s not clear to me how you want the lower list (ego to equality) to fit into the upper list. Are the lower list items all at the same hierarchical level as email and embryo in the upper list? Did any hierarchy of the lower list get lost in the email translation? Could you show the result you

Re: Need help changing one column of data into two

2022-06-01 Thread Bruce Van Allen
Looks like the capture for \4 isn't happening, because the opening and closing parentheses are escaped, so they just stand for the characters - i.e., they don’t capture what they surround. Try: ^\s*19(\d\d)-(\d\d)-(\d\d)\s+(\d+)\s*$ Same replacement pattern. > Search for this grep pattern:

Re: [ANN] BBEdit 14.2 (14C179) pre-release

2022-05-25 Thread Bruce Van Allen
Was there a reason 14.2 doesn’t show up if I use Check for Updates... (I’m pre-release user)? > On May 23, 2022, at 12:53 PM, Rich Siegel wrote: > > We're currently working on a update to BBEdit 14 which adds some new features > and refinements, and addresses a few recently reported issues. >

Re: File links/URLs within BBEdit documents

2022-01-11 Thread Bruce Van Allen
Nice. Wasn't my question, but this is the type of thing I was thinking might work for Craig. Christopher Waterman wrote on 2022-01-11 5:52 PM: Hey Bruce, Here is script to encode the paths with '< >’ brackets. * * *--* * * tell application "BBEdit" tell window 1 if

Re: File links/URLs within BBEdit documents

2022-01-10 Thread Bruce Van Allen
Craig Heilman wrote on 2022-01-10 7:44 PM: > Hmm, on my system (BBEdit 14.0.4 under Monterey 12.1) the little > document icon is in the upper *right* Sorry, my bad - mine's on the right, too. For non-BBEdit files, what would be your preferred steps? E.g., select the file in the Finder, and

Re: File links/URLs within BBEdit documents

2022-01-10 Thread Bruce Van Allen
Hi Craig, If you click the little document icon upper left in the BBEdit window, you'll see that it provides a "Location" link, with a button to copy it to the clipboard. That handles the encoding. Only works on a file saved to disk, obvs :) I haven't looked, but that might also be

Re: [ OFFLIST ] Need to increment a counter for chapter count

2022-01-07 Thread Bruce Van Allen
David G Wagner wrote on 2022-01-07 3:52 PM: Correct. That does work. But what if it could be either start or Start. In what you have, what would you have to change for either of those cases? That end-of-line separator has to be a string, not a regular expression, so it's fixed. But this

Re: [ OFFLIST ] Need to increment a counter for chapter count

2022-01-07 Thread Bruce Van Allen
Hey David, David G Wagner wrote on 2022-01-07 1:10 PM: > Here is the data that I am working with. > > All data below this line > #start# Note that the very first "#start#" starts with a lower-case 's', while the rest start with upper-case 'S'; Fixing that, try this as a BBEdit text filter

Re: TextEdit acts like default text editor at times

2021-11-29 Thread Bruce Van Allen
This reminds me of a problem I had a few years ago with opening files. I fixed it with a Terminal command that clears and re-sets the LaunchServices database. Try this (all one line):

Re: Find and Replace multiple queries at once

2021-11-05 Thread Bruce Van Allen
Pu Koh wrote on 2021-11-05 4:00 AM: Is there a function to run multiple find and replace patterns instead of doing it one at a time? Look into BBEdit's Text Factories. For more advice from this group, post an example of what you want to do, with before and after samples. --     - Bruce

Re: Need way of counting number of occurrences of names

2021-09-11 Thread Bruce Van Allen
Howard wrote on 2021-09-11 9:29 AM: When I run Kerri's method, I am getting these results, which differ from hers: Peter Fros t -- 25:3 4 -- yes Elle Clau s -- 30:0 5 -- Third line Elle Clau s -- 30:2 5 -- Third lin e -- Fourth line Cary Clar k -- 31:2 1 -- done Anyone know why I am getting

Re: Need way of counting number of occurrences of names

2021-09-09 Thread Bruce Van Allen
ht why it does work? On Sep 9, 2021, at 6:29 PM, Bruce Van Allen >> Does it work? Not over here, I was wrong. Here's what happens: Find: ([^\r])\r([^\r]) Replace: \1 ** \2 Using Replace All, it goes through steps Starting: Peter Frost 25:34 yes Here it finds the last 't' in Frost

Re: How run Julia script from BBEdit?

2021-08-01 Thread Bruce Van Allen
Hey Murray, I'm new to Julia as of today, but this might help. 1. Besides installing Julia and the BBEdit language module as you did, here is my script: #!/usr/bin/env julia print("Hello, World!\n") 2. With the script open in BBEdit: * check in the lower left, that the language widget is

Re: AppleScript to make window wide enough to not scroll?

2021-05-30 Thread Bruce Van Allen
On 30 May 2021, at 15:14, TJ Luoma wrote: But then I often find that I want to adjust the width of the window so that it is _just_ wide enough to not need a horizontal scroll bar. I don’t recall a scriptable way to relate line length to window width. Different font sizes and non-monospaced

Re: Moving endnotes to inline

2021-05-14 Thread Bruce Van Allen
On 14 May 2021, at 12:04, Cooper Cavalier wrote: I have a text/html file which has thousands of endnotes. The file has the inline endnote reference as [1], [2], [3], etc. which correspond to the appropriate endnote. For the app publisher I am working for, the endnotes must be placed in

Re: Stop adding ^M characters

2021-04-06 Thread Bruce Van Allen
On 6 Apr 2021, at 16:31, Arthur Goldberg wrote: > I don't "see "Windows (CRLF)" at the bottom of the window 'chrome'." I'm > editing Python & see this: Preferences -> Appearance -> Text status bar items: _√_ Text Encoding Thanks, - Bruce _bruce__van_allen__santa_cruz__ca -- This is the

Re: Generating worksheets programmatically

2021-04-05 Thread Bruce Van Allen
Hey Charlie, I just posted my other solution before I saw yours. I hadn’t thought of using Perl’s `open` - too focused on the bbedit commandline tool! I’ll see how —-append works when used this way… Thanks! On 5 Apr 2021, at 16:40, Charlie Garrison wrote: On 6 Apr 2021, at 3:42, Bruce Van

Re: Generating worksheets programmatically

2021-04-05 Thread Bruce Van Allen
Hi Jean, Thanks! You led me to a solution. I couldn’t use yours directly, because the worksheet filename, and the values of the arguments in the template are dynamic, created within the surrounding Perl code. I couldn’t figure out how to feed those to the shell script as args to Perl’s

Re: GREP pattern to replace the first element with a tab

2021-03-21 Thread Bruce Van Allen
On 21 Mar 2021, at 19:37, Christopher Stone wrote: On 03/21/2021, at 03:39, samar > wrote: The reason you cannot reproduce the error with your file may be that the second column is limited to three different texts (B1, B2, and B3) whereas in mine there are more

Re: Where Are Prefs for Open Windows in "Windows" Palette Saved?

2021-03-17 Thread Bruce Van Allen
Hi Bill, On 17 Mar 2021, at 16:12, Bill Kochman wrote: … So my preferred approach would be to make a backup copy of that file, and then to replace the current file with it, whenever I face this problem of windows disappearing from the “Windows” palette due to an unanticipated system reboot.

Re: Where are the replaced files & names?

2021-02-23 Thread Bruce Van Allen
On 23 Feb 2021, at 6:20, Dick Ayers wrote: Hi Greg. Okay so how do I open the photo file in BBEdit? This seems to be part of the problem: BBEdit is a text editor, used for writing computer code, among lots of other uses. But it doesn’t do anything directly with photos or other image files.

Re: Multi-File Extract: source file names in results list?

2021-01-20 Thread Bruce Van Allen
On 20 Jan 2021, at 6:45, Martin Post wrote: I need to build an (editable / exportable) list of terms from a Multi-File Search including the names of the files where the searched string / pattern is found. So my question is: Is there a Replacement Pattern / token for the file name in a

Fwd: (Case 417198) Need to remove blank lines

2021-01-14 Thread Bruce Van Allen
Hi All, Here’s Rich’s explanation of BBEdit’s behavior. I’m still not clear why Christopher seems to get different results. HTH Forwarded message: From: Bare Bones Software Technical Support To: Bruce Van Allen Subject: Re: (Case 417198) Need to remove blank lines Date: Thu, 14 Jan 2021

Re: Need to remove blank lines

2021-01-13 Thread Bruce Van Allen
On 01/13/2021, at 19:22, Bruce Van Allen <mailto:b...@cruzio.com>> wrote: I think people might be getting differing behavior because trying with different versions of BBEdit. I’m running the latest beta (version 13.5.5 build 415089), and my “Process Lines Containing…” dialogue looks

Re: Global Preference for window width?

2021-01-10 Thread Bruce Van Allen
in the force, like a system crash. But mostly does what you’re asking for. Best Regards, - Bruce Bruce Van Allen PO Box 839 Santa Cruz CA 95061 Desk: 831-429-1688 Cell: 831-332-3649 b...@cruzio.com -- This is the BBEdit Talk public discussion group. If you have a feature request or need

Re: Counting occurrences of names

2020-10-06 Thread Bruce Van Allen
Hi Howard, Try a Text Filter. Here's one in Perl. ## Save in a file #!/usr/bin/perl use strict; use warnings; my %names; while (<>) { my $name; ($name) = /From ([^:]+?)\s+:/; $names{$name}++; } for my $n (sort keys %names) { printf qq{%s\t%d\n} => $n, $names{$n}; } #

Re: BBEdit Parsing Help

2020-09-26 Thread Bruce Van Allen
On 9/26/20 at 6:30 PM, pkauf...@gmail.com (Peter Kaufman) wrote: I’m finding that only the LAST of the Access Codes is saved though. None of those before the last one. Even though your last capture is allowed to repeat because of the (...)+, it only becomes one \# capture variable. The

Re: Saving multiple open files

2020-08-08 Thread Bruce Van Allen
On 8/8/20 at 3:02 PM, fschietteca...@gmail.com (François Schiettecatte) wrote: Option-Command-S will do it. In a slightly different situation - lots of open files but only some of them unsaved - I go straight to Option-Command-w (Close All), and BBEdit will prompt for saving any unsaved

Re: Space after line numvers

2020-07-30 Thread Bruce Van Allen
On 7/30/20 at 1:00 PM, garrettay...@gmail.com (Garrett Taylor) wrote: It worked after I replaced the \s using the space bar to create the spaces. Yeah - \s matches a single whitespace character - spacebar space, tab, carriage return, form feed, etc., in the search pattern. But it doesn't

Re: Protein text to csv?

2020-07-24 Thread Bruce Van Allen
On 7/24/20 at 9:36 AM, stephenatay...@gmail.com (Stephen Taylor) wrote: Is there a way to do this in BBEdit? I hacked together a simple javascript to do it, but then I have to run that as a local webpage; MADEEKLP -> M,A,D,E,E,K,L,P, ... Looks like a fairly simple thing to do with

Re: [ANN] BBEdit 13.1.2

2020-07-21 Thread Bruce Van Allen
On 7/22/20 at 4:27 PM, marookke...@gmail.com (Jakob Peterhänsel) wrote: my BBEdit version 13.1.2 (414058, 64-bit, sandboxed), still reports “You are running the latest available version.” when checking. That's what it says over here, too. I think that IS the latest. I was running the

Re: Removing unneeded data from rows

2020-07-16 Thread Bruce Van Allen
On 7/16/20 at 5:01 AM, bbedit@googlegroups.com ('anotherhoward' via BBEdit Talk) wrote: how can I remove everything after 'NYM,' which ends with a carriage return? Note: Rows 1-3 below have the problem. Rows 4-5 do not. 1,Tom Seaver\seaveto01,60,Ind.

Re: How to actually set an expert preference?

2020-06-15 Thread Bruce Van Allen
On 6/15/20 at 7:50 AM, sie...@barebones.com (Rich Siegel) wrote: Try it. :-) If `sudo` requires your password during a worksheet interaction, BBEdit will prompt you. I forgot that! Thanks, -- - Bruce _bruce__van_allen__santa_cruz__ca_ -- This is the BBEdit Talk public discussion group.

Re: How to actually set an expert preference?

2020-06-15 Thread Bruce Van Allen
Hey David, As Sam just mentioned, special preference commands are usually executed on the command line (i.e., in the Terminal for most Mac users). A few more tips: 1. As I've learned useful expert prefs, I collect them together in a set of shell worksheets, one sheet each for BBEdit, other

Re: RegEx pattern find something but replace on following - ADDED

2020-04-12 Thread Bruce Van Allen
On 4/12/20 at 10:17 AM, b...@cruzio.com (Bruce Van Allen) wrote: Try this: ADDED: I meant to say you can do it all in one "Replace All" step. Find: U(?=[^a-z])|(U(?=[ACGT]+?)) Replace: \1T The first part U(?=[^a-z0-9]) is to eliminate the 'U' in the '>' line. NOTE: this assum

Re: RegEx pattern find something but replace on following

2020-04-12 Thread Bruce Van Allen
Sorry for my previous misapprehension of your sample. Try this: Find: U(?=[^a-z])|(U(?=[ACGT]+?)) Replace: \1T The first part U(?=[^a-z0-9]) is to eliminate the 'U' in the '>' line. NOTE: this assumes that those 'U's are always followed by a lower-case letter or a number. The second part

Re: RegEx pattern find something but replace on following - ADDED

2020-04-12 Thread Bruce Van Allen
Hmm. Not seeing the '>.' anywhere. Or did you mean the '.' as a regex character? On 4/12/20 at 8:01 AM, achim.quai...@gmail.com (archaeal) wrote: > Hello, > I would like to detect the lines starting with >.+ and replace all U with T > in the following line, but not in the line starting with

Re: RegEx pattern find something but replace on following

2020-04-12 Thread Bruce Van Allen
Hmm. Not seeing the '>.' anywhere. On 4/12/20 at 8:01 AM, achim.quai...@gmail.com (archaeal) wrote: > Hello, > I would like to detect the lines starting with >.+ and replace all U with T > in the following line, but not in the line starting with > > Example: > > >NeiUe1661551 bp

Re: GREP cleanup

2019-12-08 Thread Bruce Van Allen
On 12/8/19 at 4:52 AM, joegillespie2...@gmail.com (jgill) wrote: I need to clean up some OCR documents to find characters that are NOT [A-Z|a-z|0-9|:] What is the BBEdit GREP syntax for an invered search (-v) ? [^A-Za-z0-9:] The above character class includes the characters you want, and

Re: Balance vs Balance Tags

2019-11-14 Thread Bruce Van Allen
A difference is that "Balance" checks things other than html tags - like parentheses & bracket pairing in text and code files. Another aspect of "Balance" can give you different behavior: From Expert Preferences: By default, the "Balance" command (or double-clicking on a delimiter to balance)

Re: Bash Syntax Highlighting

2019-10-21 Thread Bruce Van Allen
On 10/21/19 at 12:24 PM, smith.e...@gmail.com (Edward Smith) wrote: Why has Bash syntax highlighting stop working? Are you running Catalina? I noticed that a machine that I upgraded said it was now running Zsh instead of Bash. Didn't have time to look into it. Could that be the problem?

Re: Regex replacement item for entire line?

2019-10-03 Thread Bruce Van Allen
On 10/2/19 at 5:01 AM, droste...@gmail.com (David Rostenne) wrote: I was hoping for an alternative to the & in the replacement strung that means ‘entire source line’ but this works perfectly. Surround the whole pattern with parentheses. That will then be the capture contained in \1. You will

Re: [mac] How to get read aloud features to work?

2019-09-16 Thread Bruce Van Allen
On 9/15/19 at 6:46 PM, vecto...@gmail.com (clamwarmer) wrote: Is there anyway to activate that feature via a shortcut? As the manual describes, see Preferences -> Menus & Shortcuts -- - Bruce _bruce__van_allen__santa_cruz__ca_ -- This is the BBEdit Talk public discussion group. If you

Re: A Preferences Question

2019-08-31 Thread Bruce Van Allen
On 8/30/19 at 11:55 PM, g...@gildawson.com (Gil Dawson) wrote: When composing JavaScript and HTML, typing a single quotation mark (') often produces two single quotation marks (''). To get a single, single quotation mark, I have to type , , . What is this behavior called in Preferences, and

Re: strip trailing spaces

2019-08-01 Thread Bruce Van Allen
Hey Nestor & Chris, This might or might not be less convoluted than Chris’s suggestion: 1. Take a script like Chris’s that deletes end of line whitespace, and attach it to the Save menu command (see manual for how to attach). 2. In BBEdit prefs, un-check Text Files -> Strip Trailing

Re: Keyboard shortcut to reverse deletion direction

2019-06-17 Thread Bruce Van Allen
See BBEdit Preferences -> Keyboard -> Enable Shift-Delete for forward delete. Is this enabled? Perhaps you inadvertently typed this. HTH On 6/16/19 at 1:32 AM, boerm...@gmail.com (Oliver Boermans) wrote: > Every once in while I accidentally hit a unknown keyboard shortcut that > results in the

Re: Using external WYSIWYG editor for HTML

2019-05-12 Thread Bruce Van Allen
fon" do shell script theCommand It is slow, but it works. Thanks again! Lutz Am Samstag, 11. Mai 2019 22:12:24 UTC+2 schrieb Bruce Van Allen: Hi Lutz, Try a simple shell script or Perl script that opens the html file in BlueGriffin, saved to your BBEdit scripts folder, with an assigned k

Re: Using external WYSIWYG editor for HTML

2019-05-11 Thread Bruce Van Allen
Hi Lutz, Try a simple shell script or Perl script that opens the html file in BlueGriffin, saved to your BBEdit scripts folder, with an assigned key combination. Reply to this list if this would be foreign territory for you; some experienced guides inhabit this space (but I didn't want to

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

2019-04-29 Thread Bruce Van Allen
On 4/29/19 at 4:18 PM, doctorpitca...@gmail.com (Richard Pitcairn) wrote: Nestor, I can't see how to do that. I do have about 8 documents open right now. How do I select just two as the "top ones"? Click on one, then switch to the second. Those two will then be top-most. BTW, I use Moom,

Re: AS Help: Run Check Syntax on documentWillSave

2019-04-13 Thread Bruce Van Allen
On 4/13/19 at 11:26 AM, brandonschneide...@gmail.com (Brandon Schneider) wrote: The idea is I want to run the #! command Check Syntax *before* a file saves BBEdit needs to know what language the script is in before it can check the syntax. Try setting the language to Python (or whatever

  1   2   3   >