Trimming lines with a filter

2024-04-10 Thread Christopher Finazzo
A number of my projects standardize on 80 characters per line. I have tried to use Process Lines to simplify this process: 1) Text > Process Lines Containing... 2) Check the Grep checkbox 3) Use the following pattern to target all lines with 80 or more characters: .{{0,79}} I've done it enough

Re: BBEdit Preview is unresponsive to changes

2024-02-05 Thread Christopher Finazzo
This still appears to be broken in 15.0.1 on macOS 13.6.4. On the surface, this feels so simple it's stupid, but I'm still not seeing any changes. Not exactly sure what to think... On Monday, January 22, 2024 at 10:01:24 AM UTC-5 Christopher Finazzo wrote: > I have an HTML file with an @me

BBEdit Preview is unresponsive to changes

2024-01-22 Thread Christopher Finazzo
I have an HTML file with an @media type of print. Typically, I might do the following to preview changes in the file: 1. Open a preview window from the menu - or pass the `--preview` argument from the command line 2. Select the included stylesheet - located at `css/style.css` 3. Change the

Re: Piping to bbresults

2023-12-21 Thread Christopher Finazzo
e: Hi Christopher, You could aggregate your patterns into a single regular expression and use it directly from BBEdit with the benefit of result sets, multi-file searches, matches highlighting, etc. Here is an unrolled example pattern: (?xx) (?i)(?

Piping to bbresults

2023-12-19 Thread Christopher Finazzo
I am consolidating a set of proofreading scripts into a Makefile that includes a "proof" rule. This rule calls each of the underlying scripts - and Aspell - in sequence. At the

Removing a page break

2023-10-30 Thread Christopher Finazzo
How should I write a rule that will apply the correct page dimensions but *not* insert a break? I’ve been converting a few old documents, trying to get the last vestiges of Word out from wherever they’ve been hiding on my machine. As written, I'm getting a break in the middle of a table

Use the Number of Matches as Part of Replace Pattern

2023-08-21 Thread Christopher Werby
I'm trying to bring Word documents with footnote reference markers into BBEdit in plain text for further editing. I can surround the special footnote reference markers in Word with strings. I used to have a macro in Word which could grab that reference marker and turn it into text so that it

@media types in BBEdit's HTML Preview

2023-07-09 Thread Christopher Finazzo
Is it possible to set a specific media type in BBEdit's HTML Preview? I have a document that gets converted from HTML to PDF using Weasyprint . For any number of uninteresting reasons, this file will *only* get printed and how it looks on screens isn't really a concern.

Re: Text Factory Equivalent for BBEdit: Text: Remove Line Breaks?

2023-05-24 Thread Christopher Stone
aestro :). -Chris ---- # Auth: Christopher Stone # dCre: 2023/05/24 18:30 # dMod: 2023/05/24 18:30 # Appl: BBEdit, System Events # Task: Run a Specific Text Factory and ‘remove line breaks’ on the Front Document. # Libs: None # Osax: None #

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

2023-05-14 Thread Christopher Stone
> On May 14, 2023, at 11:29, 'Andy Nickless' via BBEdit Talk > mailto:bbedit@googlegroups.com>> wrote: > > 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

Re: Include file name in grep/extract results?

2023-05-10 Thread Christopher Stone
> On May 07, 2023, at 14:17, severdia wrote: > > I have a lot of XML files and I'd like to grep a string and use Extract to > copy that string from each file to a single CSV file. Is there a pattern for > including the filename the strong was extracted from in the results? My goal > is a

Re: How to show number of corrections in bbedit?

2023-04-24 Thread Christopher Stone
> On Apr 24, 2023, at 13:04, Omar KN wrote: > > This was already asked some years ago, now after migrating to a new computer > - - > > when doing any FIND & "replace" action, where is the setting which allows the > users to see the number of corrections/replacements? Hey Omar, Save this

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

2023-04-03 Thread Christopher Waterman
I do something similar to Steve most of the time, as I dislike -hate really- vim, and emacs. I do have an found an editor that I like and I think it might be good for you. It has mouse support, sane defaults, it isn’t modal so it’s a lot more like using a GUI editor like BBEdit.

Re: Capturing multiple variables in regular expression

2023-03-22 Thread Christopher Stone
Here's a Perl filter that will do the job. -Chris #!/usr/bin/env perl -0777 -nsw # ---- # Auth: Christopher Stone # dCre: 2023/03/22 16:51 # dMod: 2023/03/22 16:51 # Task: Reformat Data for Use in a Database. # Tags: @ccstone, @Shell, @Sc

Re: Need help simplifying apple script with grep

2023-03-20 Thread Christopher Stone
On Mar 19, 2023, at 15:17, Mathias wrote: > OK folks, I feel like I'm nearly there, but I have a small outstanding issue > that perhaps you can find it in your heart to help me with. Hey Mathias, What about something like this? ("[^"]+?") = "(.+?)"; -Chris -- This is the BBEdit Talk

Re: Need help simplifying apple script with grep

2023-03-18 Thread Christopher Stone
On Mar 17, 2023, at 09:29, Bruce Van Allen wrote: > Yes, double escapes are needed. As handy as Applescript is, quoting is a > major pain point. Not if you use Script Debugger . SD has a “Paste as String Literal” command that automates the double-quoting as

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

2023-02-17 Thread Christopher Stone
v perl -sw # -- # Auth: Christopher Stone # dCre: 2012/11/27 08:12 # dMod: 2023/02/17 12:43 # Task: Encode Spaces in Text Selection for a Given Pattern. # Tags: @ccstone, @Shell, @Script, @Encode, @Spaces, @RegEx # Vers

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

2023-02-17 Thread Christopher Stone
On Feb 16, 2023, at 23:48, Bruce Van Allen wrote: > Chris, did you mean: > $newSubject =~ s!\h!\%20!g; > rather than > $newSubject =~ s!\h!\$20!g; Hey Bruce, Yes indeed. Thanks for catching my mistake. :-) -- Take Care, Chris -- This is the BBEdit Talk public discussion group. If you have

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

2023-02-16 Thread Christopher Stone
g like this should suffice, and compared to AppleScript it will be lightning quick. #!/usr/bin/env perl -sw # ------ # Auth: Christopher Stone # dCre: 2012/11/27 08:12 # dMod: 2023/02/16 23:18 # Task: Encode Spaces in Text Selection for a Given Pa

Re: How to run N times a Text Factory?

2022-12-03 Thread Christopher Stone
> On Dec 02, 2022, at 07:42, Francisco Hirsch wrote: > > I have a Text Factory that I have to run N times on the same text. > ... > Is there a way that can run it N times or, even better, UNTIL there are no > changes? Hey Francisco, Text Factories have no method of looping, so you'll

Re: Get the result of a replace in AppleScript

2022-10-14 Thread Christopher Stone
> On Sep 26, 2022, at 08:22, Lionel wrote: > > AppleScript is not really a friend of regex ;-) You have to test the text to > transform with BBEdit and then translate it into AppleScript string to > incorporate it into the script. > > And sometimes it doesn't work, for example with \x20{6}

Re: Get the result of a replace in AppleScript

2022-09-21 Thread Christopher Stone
----- # Auth: Christopher Stone # dCre: 2022/09/21 10:00 # dMod: 2022/09/21 10:00 # Appl: BBEdit # Task: Return the Number of Processed Lines. # Libs: None # Osax: None # Tags: @Applescript, @Script, @BBEdit, @Processed, @Lines, @Processed_Lines --

Re: Help with a GREP task

2022-06-29 Thread Christopher Waterman
off wrote: > > On Jun 29, 2022, at 7:58 PM, Christopher Waterman > wrote: >> >> It is pretty easy to do this with two finds with extract. >> Extract opens the matches in a new document. >> >> Find: ^\d{3} >> Then hit extract >> >&

Re: Help with a GREP task

2022-06-29 Thread Christopher Waterman
It breaks down like this: awk = The command; it takes two parameters. Param 1: The script. Param 2: A Path to the source file. ‘{ print $1 >> “col-1.txt” print $2 >> “col-2.txt” }’ = The Script, everything between the single quotes. This script is printing or saving column 1 ($1) to a file

Re: File links/URLs within BBEdit documents

2022-01-15 Thread Christopher Stone
> On Jan 12, 2022, at 11:50, jj wrote: > An easy way to get the URI of a document from the finder on macOS Monterey: This is easy enough to automate... -Chris # Auth: Christopher Stone # dCre: 2022/01/15 18:42 # dMod: 2022/01/15

Re: File links/URLs within BBEdit documents

2022-01-11 Thread Christopher Waterman
Craig, I remembered I have a script I use for checking if the cursor is in a string, and realized it would be easy to change it for your needs. At least as I understand them. Here is a script that will follow a path that is in between back-ticks. It will open the file or folder according to

Re: File links/URLs within BBEdit documents

2022-01-11 Thread Christopher Waterman
*Sigh* I’m not smart. That was meant for Craig. > > Nice. Wasn't my question, but this is the type of thing I was thinking might > work for Craig. — Chris(topher)? -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email

Re: File links/URLs within BBEdit documents

2022-01-11 Thread Christopher Waterman
Hey Bruce, Here is script to encode the paths with '< >’ brackets. -- tell application "BBEdit" tell window 1 if (length of selection) = 0 then return set _path to selection as text set _cmd to "ruby -rURI -e "

Re: File links/URLs within BBEdit documents

2022-01-10 Thread Christopher Waterman
Craig, If you drag and drop a text file on to an open bbedit doc it will insert the contents at the cursor. But if you hold the cmd key it will insert and select a path. You could then run a script to encode it. Here is an example that works for me but I haven’t tested much. Install it into

Re: File links/URLs within BBEdit documents

2022-01-10 Thread Christopher Waterman
Craig, So you are want to open urls to files and folders from an open document in bbedit? Assuming I got that right, there is an 'Open URL' contextual menu. Just right (ctrl) click on a url and have at it. There is also Edit > Copy Path > Copy URL to get an escaped version of the open file’s

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

2022-01-09 Thread Christopher Stone
lar expression to split the text records. The case of the split-string in insensitive and is also standardized in the file. -- Best Regards, Chris #!/usr/bin/env perl # - # Auth: Christopher Stone # dCre: 2022

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

2022-01-07 Thread Christopher Stone
> On Jan 06, 2022, at 15:32, David G Wagner wrote: > I made mods to your code. I was not as clear as I should have been on > explanation desired results. Hey David, Using your input data sample my script exactly replicates your sample of desired output data format... Your code does not work

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

2022-01-06 Thread Christopher Stone
the serpent was more crafty than any other beast of the field that the LORD God had made. Xxx #Start#EndOfGen#Start# It works if I use the current version of `gawk`. It looks like David has an older version of macOS as well. -- Take Care, Chris > On Jan 05, 2022, at 21:52, Christop

Re: Need to increment a counter for chapter count

2022-01-06 Thread Christopher Stone
ibrary/Application Support/BBEdit/Text Filters/ #!/usr/bin/env perl -sw # - # Auth: Christopher Stone # dCre: 2022/01/06 06:35 # dMod: 2022/01/06 06:35 # Task: Number Lines Based On A Condition. # Tags: @c

Re: Executing Multiple Saved Regular Expressions

2022-01-06 Thread Christopher Stone
On Jan 05, 2022, at 17:03, Peter Kaufman wrote: > I have stored over 2 dozen regular expressions stored under the "g" in > Find/Replace. > I'd like to run 6 of them sequentially against a file. Is there a way to do > this? Hey Peter, While Text Factories work well, I tend to use AppleScript

Re: Need to increment a counter for chapter count

2022-01-05 Thread Christopher Waterman
Hello David, Here is a Text Filter that might work. Copy and paste the following into a file. ( Starting with the ‘#' and ending with the last ‘}’ ) #!/usr/bin/env awk -f BEGIN { RS = "#Start#" ORS = "" FS = "\n" OFS = "\n" } { sub( /[0-9]+/, NR , $2

Re: First Use - quick way to get a list of numbers for output

2021-12-30 Thread Christopher Waterman
Marc, Bruce is correct, I let a curly quote get in there somehow. Needing a sequence of numbers does come up. The seq command is a nice one to have on hand. The basic form is easy to remember: seq Have a great new year, Chris -- This is the BBEdit Talk public discussion group. If you

Re: First Use - quick way to get a list of numbers for output

2021-12-30 Thread Christopher Waterman
Hello, I recently discovered this solution for this kind of thing. I use the unix command: ‘seq' with the the -f flag and BBEdit’s Run Unix Command. Seq creates sequences of numbers, the -f flag allows you to use a formatted string as output. So to produce: word01 word02 word03 word04 I’d

Re: First Use - quick way to get a list of numbers for output

2021-12-30 Thread Christopher Stone
On Dec 30, 2021, at 13:49, Lorenz Groth wrote: > What I want to learn is how to produce a simple list of numbered word such as > word01 > word02 > word03 > word04 Hey Lorenz, The most direct method is probably to use a text filter like so: #!/usr/bin/env bash seq -w 200 | sed s'!^!Word!'

Re: How to have \D ignore newline character?

2021-12-13 Thread Christopher Stone
> On Dec 12, 2021, at 23:38, Tim A wrote: > Deepening the challenge, the phone numbers are actually in the second of > three columns separated by tabs. If I can get the phone numbers stripped I > can then impose a uniform format on them. Hey Tim, Find: [(]?(\d{3})\D*(\d{3})\D*(\d{4})

Re: Custom sequencing

2021-12-08 Thread Christopher Waterman
I've been trying to get better at awk recently and this seems like an awk kind of problem. Printing 3 digit numbers with leading zeros is definitely a problem printf is just sitting there waiting for. *Go Text • Run Unix Command *and paste in paste in this command into the dialog: seq 250 |

Re: Grep searching - how to ignore the first word of the sentence

2021-12-07 Thread Christopher Stone
> On Dec 07, 2021, at 17:50, Pavel wrote: > > Would anyone please know what must contain grep so that the first words of > the sentence do not appear in the search results? Hey Pavel, Tom's idea is simpler, but you can do this: Find: (?https://twitter.com/bbedit> --- You received this

Re: Counting Text Strings In a Directory

2021-12-07 Thread Christopher Stone
to script it then you need to do something like this: # Auth: Christopher Stone # dCre: 2021/12/07 22:17 # dMod: 2021/12/07 22:17 # Appl: BBEdit # Task: Count the Number of Files Containing a Search String – Recursive-File-Search # Libs: None # O

Re: Custom sequencing

2021-12-06 Thread Christopher Stone
On Dec 06, 2021, at 09:31, Maciek Schejbal wrote: > I have 250 images to be shown in the slide show. After I copy the paths, > would anybody have a way to automate BBEdit to continue numbering the > following sequence? Hey Maciek, Please provide an accurate sample of the before state of your

Reposition the Selection Toward the Top of the Editing Window

2021-11-24 Thread Christopher Stone
a little bit of overkill – I've since edited hundreds of thousands of lines of code and learned otherwise. -- Best Regards, Chris -------- # Auth: Christopher Stone { Building upon work by Jean Jourdain } # dCre: 2021/11/24 20:41 # dMod: 2021/11/

Re: Search & Replace

2021-11-15 Thread Christopher Stone
> On Nov 15, 2021, at 15:18, R B COHEN wrote: > > 1 _GCID 94D0C28F-7346-4AC7-96D1-147294BADAF1 Hey R B, Is this the start of the line? Are these always _GCID numbers? Is the hyphenated alphanumeric string always 36 characters? Something like this: Find:

Re: The incredible shrinking selections.

2021-11-08 Thread Christopher Waterman
Jean, Thanks for breakdown. I will send it on to support. — Chris(topher)? > On Nov 8, 2021, at 5:55 AM, jj wrote: > > Hi Christopher & Christopher, > > Seems there is an off by one somewhere. > > You should mail the issue to supp...@barebones.com. > &

Re: The incredible shrinking selections.

2021-11-08 Thread Christopher Waterman
Hey Chris, > I don't see how you're getting a list of selected items. > > If I use find with show matches it doesn't work. > > If I use LiveSearch it doesn't work. > > So how exactly are you doing your selection? I’m making the selections with Search > Find & Select or Edit > Select >

Re: The incredible shrinking selections.

2021-11-08 Thread Christopher Stone
> On Nov 08, 2021, at 00:14, Christopher Waterman wrote: > > If I select every occurrence of "whatsit" through which ever means. > > ... > > Then run this AppleScript. > > AppleScript: > tell window 1 of application "BBEdit" > set stu

The incredible shrinking selections.

2021-11-07 Thread Christopher Waterman
If I select every occurrence of "whatsit" through which ever means. Work file: def do_something( doohickeis ) doohickeis.each do | whatsit | whatsit.this! whatsit.that! print whatsit end end Then run this AppleScript. AppleScript:

Re: Find and Replace multiple queries at once

2021-11-06 Thread Christopher Stone
> On Nov 05, 2021, at 22:43, Pu Koh wrote: > Thanks all. I shall look into the suggestions. > Here's what I'm trying to do. > I'm creating HTML 5 banners, and need to inject code for the click tags. > The code looks like this: Hey There, Here's a super basic proof-of-concept. -- Best Regards,

Re: Find and Replace multiple queries at once

2021-11-05 Thread Christopher Stone
> On Nov 05, 2021, at 06:00, Pu Koh wrote: > > Is there a function to run multiple find and replace patterns instead of > doing it one at a time? Hey There, Personally I would most often use a Text Filter and a little Perl, although it depends upon the context. (See appended script. See

Re: Need easy way to make first letter of each line upper case

2021-10-28 Thread Christopher Stone
> On Oct 28, 2021, at 22:28, Nosadge > wrote: > > I'm defining lines as anything with a number infant of it. I'm new to this > editor, and use it to edit transcripts, so my jargon will probably be > incorrect. Hey Nosadge, Did you mean a number in front of the

Re: Need easy way to make first letter of each line upper case

2021-10-28 Thread Christopher Stone
> On Oct 28, 2021, at 17:10, Nosadge wrote: > > Does anyone know a command/script/grep to make sure the first letter of every > line is capitalized? Hey There, How are you defining lines? Line one. Line two. ... In that case Fletcher's regex works fine, although you might prefer to run it

Re: Easiest way to replace all matches

2021-10-21 Thread Christopher Stone
- Take Care, Chris ---- # Auth: Christopher Stone # dCre: 2021/10/21 10:33 # dMod: 2021/10/21 10:33 # Appl: BBEdit # Task: Enclose All Instances of the Selected Word with Curly Braces. # Libs: None # Osax: None # Tags: @Applescript, @Script,

Re: Make new HTML document from template in AppleScript: How?

2021-10-10 Thread Christopher Stone
> On Oct 07, 2021, at 23:11, Sonic Purity wrote: > Note: i write my stories in TE—that’s non-negotiable. Hey Sonic, Agh... At least take a look at Jedit Ω (1,840 Yen ~ $16.00 USD). http://www.artman21.com/en/jeditOmega/ It will do what TextEdit will do and a whole lot more. You have to

Re: Make new HTML document from template in AppleScript: How?

2021-10-04 Thread Christopher Stone
------ # Auth: Christopher Stone # dCre: 2021/10/04 20:07 # dMod: 2021/10/04 20:07 # Appl: BBEdit # Task: Create a New HTML Document Using a Template File. # Libs: None # Osax: None # Tags: @Applescript, @Script, @ASObjC, @BBEdit, @Create, @HTML,

Re: Split View possible?

2021-09-27 Thread Christopher Stone
use AppleScript. # Auth: Christopher Stone # dCre: 2021/09/27 18:24 # dMod: 2021/09/27 18:24 # Appl: BBEdit # Task: Set Bounds of Windows 1 and 2. # Libs: None # Osax: None # Tags: @Applescript, @Script, @BBEdit, @Window, @Bou

Re: GEDCOM manipulation for one text tag (database transfer related)

2021-09-18 Thread Christopher Stone
> On Sep 18, 2021, at 15:19, Roger Moffat wrote: > > Thanks for this - I recommended Ryan to the geniuses on this list. I figured > it would be possible, but didn’t know where to begin to think about it. > > Once the text of the NOTE tag has been moved to the 1 OCCU line, the entire > line >

Re: GEDCOM manipulation for one text tag (database transfer related)

2021-09-18 Thread Christopher Stone
> On Sep 18, 2021, at 14:19, Ryan Noyes wrote: > Seeking workflow advice for wrangling a genealogical GEDCOM file in such a > way that content normally appearing within the red box in this screenshot, > instead populates where the green box is. Hey Ryan, You did a good job explaining the

Re: Code Modules — A BBEdit-based Approach to Advanced Includes for Websites

2021-09-15 Thread Christopher Werby
gt; On 15 Sep 2021, at 06:29, Jan Erik Moström wrote: > > > > On 7 Sep 2021, at 23:56, Christopher Werby wrote: > > > >> Announcing the release of Code Modules > > > > I'm quite impressed with what you have done here. Just to make sure I've > understoo

Re: Code Modules — A BBEdit-based Approach to Advanced Includes for Websites

2021-09-15 Thread Christopher Werby
:06:34 AM UTC-7 Jan Erik Moström wrote: > On 15 Sep 2021, at 9:38, David Donachie wrote: > > >> On 15 Sep 2021, at 06:29, Jan Erik Moström wrote: > >> > >> On 7 Sep 2021, at 23:56, Christopher Werby wrote: > >> > >>> Announcing the release of Code

Re: Find followed by many lines of arbitrary HTML through next but exclude the second

2021-09-15 Thread Christopher Stone
> On Sep 15, 2021, at 00:51, ctfishman wrote: > > I tried doing this with just a regular expression but couldn't figure out how. Hey There, Yeah, you couldn't automate the whole process with regex alone. > I was however able to do it quite easily with a text filter... > >

Re: Find followed by many lines of arbitrary HTML through next but exclude the second

2021-09-15 Thread Christopher Stone
> On Sep 14, 2021, at 16:57, Sonic Purity wrote: > Re-reading the Grep help file with BBEdit, i thought lookahead might help. I > tried: > > ([\s\S]+?)(?) > Hey There, You miswrote your lookahead-assertion. This: > ([\s\S]+?)(?) > Should look like this: ([\s\S]+?)(?=) This is fine,

Re: Code Modules — A BBEdit-based Approach to Advanced Includes for Websites

2021-09-14 Thread Christopher Werby
clean. https://github.com/ChristopherWerby/code-modules/blob/master/public/index.html Thanks for looking at the project! On Tuesday, September 14, 2021 at 6:23:26 AM UTC-7 lwrn...@gmail.com wrote: > I have a really dumb question, Christopher. I like this and was viewing > your page

Re: Need way of counting number of occurrences of names

2021-09-09 Thread Christopher Stone
> On Sep 09, 2021, at 23:15, Bruce Van Allen wrote: > > Kerri's method was correct! Indeed. It's a great example of how useful a very simple regular expression can be. :-) -- Best Regards, Chris -- This is the BBEdit Talk public discussion group. If you have a feature request or need

Re: Need way of counting number of occurrences of names

2021-09-08 Thread Christopher Stone
is one or more lines of text: Hey Howard, This is a bit of a chore but not uber difficult using a Perl text filter. -- Best Regards, Chris #!/usr/bin/env perl -0777 -nsw # ----- # Auth: Christopher Stone # dCre: 2021/09/08 15:31 # dMod: 2

Re: Code Modules — A BBEdit-based Approach to Advanced Includes for Websites

2021-09-08 Thread Christopher Werby
se for hand coding BS3 > seems perfectly adequate. I meant, of course, that there's a later version > of BS4 than the one you're calling. > > I'm looking forward to digging into your code base more deeply. > > On Wednesday, September 8, 2021 at 9:20:01 AM UTC-7 Christopher Werby

Re: Code Modules — A BBEdit-based Approach to Advanced Includes for Websites

2021-09-08 Thread Christopher Werby
es ripple through your site, ALA Dreamweaver. > > > On Tuesday, September 7, 2021 at 2:56:30 PM UTC-7 Christopher Werby wrote: > >> Announcing the release of Code Modules — an open source project developed >> over years for creating and maintaining websites using BBEdit's

Code Modules — A BBEdit-based Approach to Advanced Includes for Websites

2021-09-07 Thread Christopher Werby
Announcing the release of Code Modules — an open source project developed over years for creating and maintaining websites using BBEdit's include and variable features. There’s documentation at https://codemodules.net/, a sample demo website at https://sample.codemodules.net/ and a GitHub repo

Re: Save find/replace match to new file

2021-09-01 Thread Christopher Stone
> On Sep 01, 2021, at 09:07, Matthew Montgomery wrote: > > Your trusty script worked perfectly and has for sure saved me a nice chunk of > time. I really appreciate you sharing this. Hey Matthew, Super! And you're welcome. -- Best Regards, Chris -- This is the BBEdit Talk public

Re: Save find/replace match to new file

2021-08-31 Thread Christopher Stone
------- # Auth: Christopher Stone # dCre: 2021/08/31 18:49 # dMod: 2021/08/31 18:49 # Appl: BBEdit # Task: Explode TSV Document into One YAML File Per Line. # Libs: None # Osax: None # Tags: @Applescript, @Script, @ASObjC, @BBE

Re: script/text filter advice

2021-08-30 Thread Christopher Stone
s more complicated to use that information in the shell than with AppleScript. Here's your basic AppleScript for the task: # Auth: Christopher Stone # dCre: 2021/08/30 04:02 # dMod: 2021/08/30 04:02 # Appl: BBEdit # Task: Working with the sel

Re: Bespoke preferences

2021-08-29 Thread Christopher Stone
a way of doing this that I have missed. Hey Michael, You can customize BBEdit a great deal with AppleScript. Run this from Apple's Script Editor.app to see how it works. ---- # Auth: Christopher Stone # dCre: 2021/08/29 16:32 # dMod: 2021/08/2

Re: Bespoke preferences

2021-08-29 Thread Christopher Waterman
I think this is what you are looking for. - Open the menu, BBEdit: Preferences. - There is a languages tab in the left column (the icon looks like hands on a typewriter). - The last section on the panel is "Language-specific settings:” - Add the language (file type) you want specific settings

Re: Questions about editorconfig

2021-08-29 Thread Christopher Waterman
It’s manual. There is builtin support for EditorConfig file type, which comes with a set of completions for the keys. Be sure to check out the entry in the manual as it goes over the BBEdit specific keys. — Chris(topher)? > On Aug 29, 2021, at 9:49 AM, Johnny Ragadoo wrote: > > Are

Re: Is BBLMRunColors only a coded language module feature.

2021-08-26 Thread Christopher Waterman
for coloring? Similar to the way Function Pattern works. Maybe there is a magic name or something.  Thanks, — Chris(topher)? > On Aug 24, 2021, at 1:43 AM, jj wrote: > > > Hi Christopher, > > Here is a minimal Codeless Language Module for an hypothetical "C

Re: How to format this text so it expands and fits page width?

2021-08-24 Thread Christopher Stone
> On Aug 24, 2021, at 10:39, David J wrote: > > Oh, one last thing. Is there a save all command available after doing this? Hey David, AppleScript can do many things... # Auth: Christopher Stone # dCre: 2021/08/22 16:43 # dMod

Re: Syntax Highlighting for Text Editing

2021-08-24 Thread Christopher Waterman
Hey Rory, > On Aug 24, 2021, at 5:49 AM, Rory Gillis wrote: > > Would it be possible to emulate IA writer's syntax control > feature in BBEdit? > > In other words, would it be possible to highlight different parts of a > sentence

Re: Is BBLMRunColors only a coded language module feature.

2021-08-24 Thread Christopher Waterman
Ya know what? I think that is my signature going forward. > Chris(topher)? -- 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:

Re: Is BBLMRunColors only a coded language module feature.

2021-08-24 Thread Christopher Waterman
Jean, Fantastic example. Thank you. — Chris(topher)? > Here is a minimal Codeless Language Module for an hypothetical "Christopher” > language ... -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please

Is BBLMRunColors only a coded language module feature.

2021-08-23 Thread Christopher Waterman
Hello, I’m curious about BBLMRunColors. I imagine it would be implemented something like this: BBLMRunColors com.run.kind.name But this crashes BBEdit. This is pulled from this technote: https://www.barebones.com/support/technotes/language-module-changes.html

Re: How to format this text so it expands and fits page width?

2021-08-23 Thread Christopher Stone
David, Sure. ---- # Auth: Christopher Stone # dCre: 2021/08/22 16:43 # dMod: 2021/08/23 12:27 # Appl: BBEdit # Task: Remove Line Breaks from Text Documents of Project Window 1. # : Then Hard Wrap to the Given Length. # Libs: None # Osax: None # Tags: @Applescript, @Scr

Re: How to format this text so it expands and fits page width?

2021-08-22 Thread Christopher Stone
something like this: ---- # Auth: Christopher Stone # dCre: 2021/08/22 16:43 # dMod: 2021/08/22 16:43 # Appl: BBEdit # Task: Remove Line Breaks from Text Documents of Project Window 1. # Libs: None # Osax: None # Tags: @Applescript, @Script, @BBEdit, @Remove,

Re: Is it possible to make a keyword / variable / predefined name with delimeter?

2021-08-21 Thread Christopher Waterman
Daniel, Did you add “-“ to Identifier and Keyword Character Class? Identifier and Keyword Character Class A-Za-z- —Chris > On Aug 21, 2021, at 1:00 PM, Daniel Paz wrote: > > So I want for example to keyword with the following regex: "keyword-keyword" > e.g. "Hello-World", but apparently, the

Re: How to move #tags up to line above and sort doc by tags?

2021-08-19 Thread Christopher Stone
On Aug 19, 2021, at 12:20, David J wrote: > I have a long text that I tagged, I'd like to move those tags up to the end > of the last line they are under: Hey David, I'm thinking something like this: Find: \s+((?:#\w+\h*)+) Replace: “ \1” ** Without the quotes. -- Best Regards, Chris

Re: Codeless Language Module design question.

2021-08-16 Thread Christopher Waterman
Darren, I bumped up against the limitation of the CLM’s as well. Language Server Protocol support is really a big deal. But I think built in support for languages will continue for a very long time. Outside the pedantic notion that you have to have some language support in order to connect

Re: Codeless Language Module design question.

2021-08-16 Thread Christopher Waterman
others are only > used by scripts bundled with the shell. I'm not sure the distinction is > terribly important.) > > Hope this helps. > -sam > > *From: *Christopher Waterman > *To: *bbedit@googlegroups.com > *Date: *Aug 14, 2021 10:56:59 PM > *Subject: *Codeless Language

Re: Copying grep match to clipboard

2021-08-15 Thread Christopher Stone
task is really just a simple find/replace. AppleScriptified: ------- # Auth: Christopher Stone # dCre: 2021/08/15 09:01 # dMod: 2021/08/15 09:01 # Appl: BBEdit # Task: Copy text from (the beginnging of a doc

Codeless Language Module design question.

2021-08-14 Thread Christopher Waterman
I couldn’t find a Language Module for Fish Shell so a put one together last night. It works, but I have a design question. In order to make the BBLMKeywordList & BBLMPredefinedNameList I made a list of the built-in commands from here: https://fishshell.com/docs/current/commands.html

Re: Set selection point to next line in AppleScript

2021-08-05 Thread Christopher Stone
> On Aug 05, 2021, at 05:15, Rainer Krug wrote: > > I have the following AppleScript to execute het selected text in R and return > the focus to BBEdit: > ... > Now I would like to set the cursor in BBEDit to the next line after the > selected text ore line it is in. Hey Rainer, You can do

Re: BBEdit 14.0.1 – Scroll Text Up Past Bottom of Window

2021-08-04 Thread Christopher Stone
> On Aug 02, 2021, at 04:39, Tom Robinson wrote: > > I think you missed the annotated screenshot Rich attached :] Hey Tom, Eh? Hmm... Sure enough. I see it in the group online. I was sure the image was missing from my copy of the message in Mail (Mojave), but I just checked – and it's

Re: BBEdit 14.0.1 – Scroll Text Up Past Bottom of Window

2021-08-02 Thread Christopher Stone
> On Aug 02, 2021, at 03:11, Jan Erik Moström wrote: > > On 2 Aug 2021, at 10:04, Christopher Stone wrote: > >> It's _not_ listed in the expert settings for BBEdit 14.x. > > Open preferences, select "Editing", about 2/3 down "Extra vertical space&qu

Re: BBEdit 14.0.1 – Scroll Text Up Past Bottom of Window

2021-08-02 Thread Christopher Stone
Hey Rich, Well, where? It's not listed in the expert settings for BBEdit 14.x. https://www.barebones.com/support/bbedit/ExpertPreferences.html -- Best Regards, Chris > On Aug 01, 2021, at 20:25, Rich Siegel wrote: > > On 1 Aug 2021, at 18:47, Christopher Stone wrote: >

Re: BBEdit 14.0.1 – Scroll Text Up Past Bottom of Window

2021-08-01 Thread Christopher Waterman
Oh sorry about that, and thanks. I knew this existed but had never tried it out. I think I like it. > On Aug 1, 2021, at 5:03 PM, Christopher Stone > wrote: > >> On Aug 01, 2021, at 18:42, Christopher Waterman > <mailto:ch...@rustydogink.com>> wrote: >> >&

Re: BBEdit 14.0.1 – Scroll Text Up Past Bottom of Window

2021-08-01 Thread Christopher Stone
> On Aug 01, 2021, at 18:42, Christopher Waterman wrote: > > I think it’s. > > defaults write com.barebones.bbedit ExtraSpaceInTextViews -bool YES Hey Christopher, That didn't work for me, but it helped me do some sleuthing. There is NO “ExtraSpaceInTextViews” pref in the c

Re: BBEdit 14.0.1 – Scroll Text Up Past Bottom of Window

2021-08-01 Thread Christopher Waterman
I think it’s. defaults write com.barebones.bbedit ExtraSpaceInTextViews -bool YES > On Aug 1, 2021, at 3:47 PM, Christopher Stone > wrote: > > Hey Folks, > > BBEdit 12.x allowed the user to scroll text up past the bottom of the window, > so you could conveniently positi

BBEdit 14.0.1 – Scroll Text Up Past Bottom of Window

2021-08-01 Thread Christopher Stone
Hey Folks, BBEdit 12.x allowed the user to scroll text up past the bottom of the window, so you could conveniently position the cursor in your comfort zone without having to add blank lines to the end of your text. I'm looking in the prefs and expert prefs and can't find the setting. Could

Re: Need to extract all digits from string

2021-07-29 Thread Christopher Stone
On Jul 29, 2021, at 00:19, Tim A wrote: > How to not include the brackets as Howard asked? I figure it involves > non-capture but it eludes me. Eh? Hmm. I must have been tired. Find: \[(\d+)\]|(\d) Replace: \1\2\n -- Best Regards, Chris -- This is the BBEdit Talk public discussion

Re: Conda environments

2021-07-28 Thread Christopher Finazzo
6 AM UTC-4 Christopher Finazzo wrote: > Ugh, false alarm. > > Restart BBEdit and there it is. As I get a new SE project going I will > continue to test. > > On Monday, July 26, 2021 at 10:52:23 AM UTC-4 Christopher Finazzo wrote: > >> Although I haven't used Python

  1   2   3   4   5   6   7   8   9   10   >