Re: Any instructions to downgrade?

2024-05-20 Thread Darren Duncan

Downgrading or upgrading is very easy.

On BareBone's website front page in the menu on the right side is a prominent 
link "Older BBEdit versions" which goes here:


https://www.barebones.com/support/bbedit/updates.html

Then you can download the version you want.

-- Darren Duncan

On 2024-05-20 10:19 a.m., Ken Corey wrote:
I bought BBEdit back in 13, and upgraded to 14.  when I rebooted my computer 
this time, I'm now in evaluation mode with 15.1.


I don't consciously remember upgrading, but I must have.

Between jobs right now, so I'd like to continue on 14 instead of upgrading to 15 
just this minute.


Can anyone point me to instructions to downgrade to 14.latest again?


--
This is the BBEdit Talk public discussion group. If you have a feature request or believe that 
the application isn't working correctly, please email "supp...@barebones.com" rather 
than posting here. Follow @bbedit on Mastodon: <https://mastodon.social/@bbedit>
--- 
You received this message because you are subscribed to the Google 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/89104c19-04f3-42f4-808b-1cca1985c1bf%40darrenduncan.net.


Re: New windows when starting BBEdit

2024-03-21 Thread Darren Duncan

Another relevant setting that other replies didn't mention...

In "Settings" -> "Application" we have the "When BBEdit becomes active" setting, 
and if it is set to "Do nothing" rather than "New text document" then BBEdit 
shouldn't open a new empty document without you explicitly asking it to.


-- Darren Duncan

On 2024-03-21 5:34 a.m., mkowsl wrote:
Since a few weeks, whenever I open BBEdit, I am confronted with two 'untitled 
text 4 + 5' documents and an 'untitled shell worksheet 4'. I have no clue why 
this happens and would prefer to not having them opening...

Thanks for help
Regards
Martin


--
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/36d984e3-a813-4a77-a3a6-c18ba0052a1f%40darrenduncan.net.


Re: Displaying Code Page 437

2024-03-18 Thread Darren Duncan
I expect what is happening here is that what you copied and pasted from 
Wikipedia is not Code Page 437 but rather is Unicode for the same glyphs.  The 
Unicode glyphs would display properly.  What you're copying that's not working 
is probably not carrying the metadata saying what code page it is, so the bytes 
are interpreted wrong. -- Darren Duncan


On 2024-03-17 5:07 p.m., 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,


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: <https://twitter.com/bbedit 
<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/C08A46D1-E18E-4CF1-BE51-822BFED15B4A%40gmail.com <https://groups.google.com/d/msgid/bbedit/C08A46D1-E18E-4CF1-BE51-822BFED15B4A%40gmail.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/106a9ce3-f5d6-48db-95c5-c9de4b88d30b%40darrenduncan.net.


Re: How to visualise/ preview a PHP homepage in BBEdit?

2024-03-11 Thread Darren Duncan
A key issue here is you haven't even explained what you mean by "BBEdit preview" 
in your context, or I haven't understood it.


Normally a "BBEdit preview" is when you are editing a file with what is intended 
to be human-readable documentation in some kind of markup language, such as 
Markdown or POD or HTML, and you use BBEdit's "Preview" function to see how that 
renders.


Whereas, if you want to run a program such as PHP which happens to output a web 
page, and you want to see that web page in a browser, then that is not what 
"Preview" is for, and instead that is what "Run" is for.


Can you clarify, what kind of thing are you making and what do you expect the 
result to be.  Please give a simple example file.


Are you making a PHP program and want to display its result.  Or is the thing 
you want to "Preview" actually not a PHP program but you were thinking to use 
PHP to solve your problem to "Preview" some other kind of thing.


Please give an example file.

-- Darren Duncan

On 2024-03-11 1:15 a.m., Omar KN wrote:
The sole purpose for having php is to be able to view the BBEdit preview in the 
browser.



--
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/e298f326-90a5-4b9e-9740-8616618d9eaa%40darrenduncan.net.


Re: How to visualise/ preview a PHP homepage in BBEdit?

2024-03-10 Thread Darren Duncan
PHP 8.3 is the latest version and has a lot more features and a longer support 
window of 3 years, versus less than 1 year remaining for 8.1; why use 8.1?


Also, if you desire to have a web page, do you want vanilla PHP or do you want 
an actual application framework?  If you use Laravel for example, it takes care 
of a lot of stuff for you.


-- Darren Duncan

On 2024-03-10 10:04 a.m., Omar KN wrote:
Today I installed and “Successfully started `php@8.1` (label: 
homebrew.mxcl.php@8.1)”


What is the next step to preview a PHP page in Safari?

On Sunday 10 March 2024 at 15:35:41 UTC+1 Omar KN wrote:

This topic has been mentioned before, but I was looking for a not too
difficult solution.

Has the come any news about this issue?

/
with best regards,
Omar KN, Stockholm, Sweden


--
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/670ba9ac-2ced-42b1-8260-21165e7ef6a5%40darrenduncan.net.


Re: Updates for v14?

2024-01-22 Thread Darren Duncan

On 2024-01-20 5:13 p.m., Rich Siegel wrote:

On 20 Jan 2024, at 20:10, Tom Mai wrote:

Will there be further bugfix-updates for BBEdit 14 – now that v15 is out?


14.6.9 is the final version in the 14 series; all further updates (bug fixes or 
otherwise) will be in the 15 series (until it is superseded by a hypothetical 
16).


And in my experience that is how BBEdit has always been.  There are no parallel 
production release streams, just a single stream whose version number sometimes 
increases by a minor number and sometimes by a major number. -- Darren Duncan


--
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/70ca6f1b-d396-4362-acb5-529e0c5fb956%40darrenduncan.net.


Re: Language codes

2024-01-20 Thread Darren Duncan
Do language codes have to be 4 letters?  I assume its often a safe bet to just 
use something that matches the typical filename extension.  Yours is still a 
good question though, but in absense of that, what I said. -- Darren Duncan


On 2024-01-20 12:50 p.m., Ken wrote:
I feel like I must be missing something obvious, but where in BBEdit or the 
documentation would I find a list of the four-letter language codes (eg, MRKD)? 
Either to avoid conflict when creating a new one, or to use in the LanguageCode 
or BBLMLanguageCode properties in plists or JSON configs.



--
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/94fd9317-4ba0-408a-b393-9aa840fb52a4%40darrenduncan.net.


Re: The Mysterious ~/Documents/BBEdit

2024-01-18 Thread Darren Duncan
A partial answer to your question is that the MacOS does some weirdness with 
regards to "Containers", where the Finder or certain apps would fake various 
home folders like ~/Documents containing things that are actually in 
~/Library/Containers... and so on, though I've seen even the Finder sometimes 
shows the same folder as being empty or non-empty depending how I get to it.  I 
encountered this due to strange behavior I observed when migrating from one Mac 
to another.


As to your question about moving this BBEdit folder to the trash, well you can, 
but you would probably lose some BBEdit settings in the process, and the folder 
would then get recreated for fresh settings.


I feel your best bet is to just take it that this folder is a standard part of 
how the MacOS works, leave it alone, and organize your own files around it.  For 
example, if you used to organize your files within various folders directly 
under ~/Documents, then instead make a new "top level" folder like 
~/Documents/Foo and put your organization under there instead.  Treat 
~/Documents as if it were your root home folder ~ where the MacOS organizes it, 
and have your own organizing scheme under the Foo, where you can expect nothing 
else would mess with it.


-- Darren Duncan

On 2024-01-18 11:36 a.m., Well, Therefore wrote:
Using BBEdit's menu BBEdit > Folders > Document Backups opens 
~Library/Containers/BBEdit/Data/Documents/BBEdit Backups. In Finder, folder 
~/Documents contains what appears to be a folder named "BBEdit", within which is 
what appears to be another folder named "BBEdit Backups."


I have two questions. First, can ~/Documents/BBEdit be removed, or at least 
hidden. The reason I don't simply move it to the Trash leads to the second 
question, which is...


... just what is this mysterious entity that looks like ~/Documents/BBEdit? When 
I use ls -lA ~/Documents, no such item appears. A file entitled .localized 
exists, but I do not believe this is related. Finder's Get Info on 
~/Documents/BBEdit reports that it is a zero byte file and its location is 
~/Library/Containers/BBEdit/Data/Documents.
I am very curious. It appears to be something akin to a hard link or symbolic 
link, but not exactly.


The User Guide cautions against messing with this mysterious entity (humor 
intended.)


I appreciate in advance anyone who can answer the first question and shed some 
light on the second.


David Brown
Mac Studio M2 Ultra
macOS 14.2.1
BBEdit 15.0


--
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/15378c5b-2888-479c-ad42-6928aa57e275%40darrenduncan.net.


Re: BBEdit 15.0 and Sonoma

2024-01-11 Thread Darren Duncan
How has BBEdit 14 been problematic with Sonoma that it was holding you back? -- 
Darren Duncan


On 2024-01-09 6:27 p.m., '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 significant 
problems using BBEdit 15 with Sonoma?



--
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/4599531e-3930-429d-ab93-763da9de9293%40darrenduncan.net.


Re: Language Module for Logs

2023-11-17 Thread Darren Duncan

You may also find useful this codeless language module I made, for reference.

https://github.com/muldis/Muldis_Object_Notation/blob/master/tooling/BBEdit/BBEdit_LM_Muldis_Object_Notation_Plain_Text.plist

-- Darren Duncan

On 2023-11-16 12:29 p.m., BeeRich33 wrote:

Hi Ben.  Thanks for the file.

I’ve been looking at the other CLMs and that’s pretty much what I’ve come up 
with as well.  Not active yet.



Cheers
beer...@gmail.com




On Nov 16, 2023, at 8:12 AM, Benjamin Irwin  wrote:

BeeRich33

I have attached a very simple Language Module that you may be able to modify 
for your needs.


It is in ~/Library/Application Support/BEdit/Language Modules

Modifying the command list in the BBLMKeywordList and BBLMPredefinedNameList 
would cause those words to be colored to "pop out" when viewing the logs.


Hope this helps,
Ben


--
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/0e5675e2-a061-414b-9fc8-a60aeb5d8bd1%40darrenduncan.net.


Re: [IMPORTANT] macOS Sonoma Compatibility

2023-09-21 Thread Darren Duncan
Would you be able to provide more information on what it is about BBEdit prior 
to 14.6 that macOS Sonoma would refuse to run it?  And is this something likely 
to affect other applications as well?  Thank you. -- Darren Duncan


On 2023-09-21 2:28 p.m., Rich Siegel wrote:

Good { morning, afternoon, evening },

Since Apple will be shipping macOS Sonoma this coming Tuesday (9/26), here is 
some important compatibility information for all BBEdit customers:

*   macOS Sonoma *will not run* versions of BBEdit older than 14.6. If you 
attempt to run a version of BBEdit older than 14.6 on macOS Sonoma, the OS will 
advise you of this with an alert; confirming the alert will forcibly exit the 
application.

*   If you are currently using a version of BBEdit older than 14.6, and are 
planning to update to macOS Sonoma, we strongly recommend that you update or 
upgrade (as appropriate) to BBEdit 14.6.7 (the current public release, at this 
writing) before installing the new OS version.

BBEdit 14.6.7 is a free update for all BBEdit 14.x customers, and you can obtain it by choosing 
"Check for Updates" from the BBEdit application menu, or by downloading and 
installing it from the BBEdit updates page on our web site: 
<https://www.barebones.com/support/bbedit/updates.html> .

If you are using an older version of BBEdit and are planning to upgrade to 
macOS Sonoma, you will need to update or upgrade your installed version, as 
appropriate:

*   If your 30-day evaluation has previously expired, you will get a new 30-day 
evaluation period after installing BBEdit 14.6.7 from our web site: 
<https://www.barebones.com/support/bbedit/updates.html> . This is a fine 
opportunity to try out all of the new features that we introduced since the version 
you've been using.

*   If you have a license for an older version of BBEdit (13.x or older), you can 
download and start using BBEdit 14.6.7 immediately. You'll have 30 days of fully 
functional operation, and can obtain significantly discounted upgrade pricing from 
our web store: <https://www.barebones.com/store/bbedit_upgrades.html> .

We have also updated the macOS compatibility page on our web site with this 
information: <https://www.barebones.com/support/new-os.html>.

Full compatibility information will be forthcoming as soon as we complete 
testing with the final release version of the OS.

Thanks for reading,

R.



--
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/27811742-38dd-2f70-cca3-c3448b2cb8c3%40darrenduncan.net.


Re: Fix filenames with blank spaces...

2023-07-09 Thread Darren Duncan
In my experience, by far the easiest and simplest solution for this arises when 
you just try to find and replace a single instance of a space in urls at a time.


Something like this search/replace pair (I didn't test it):

  (\bhref="[^" ]*) ([^"]*\.png")

  \1_\2

That example is just for spaces, not accents, and replaces the first occurrence 
of a literal space in the url with an underscore.


You can run that with a replace-all op for the first space in each url, and then 
hit replace-all again for each additional space, until it says there aren't any, 
so eg if urls have no more than 3 spaces each then its 3 replace-all.


This works as long as your search/replace is idempotent, you are replacing with 
something different than what you're replacing.


As for accents, you can deal with those with a similar process.

-- Darren

On 2023-07-09 1:52 p.m., Roland Küffner wrote:
You might have a hard time figuring out a pattern for this (as I guess that the 
amount of white space in the file names might differ and the file names may not 
follow a strict structure). You could write a script for the task. Or – if it 
was a one-shot-task – I would do the following steps:


1. Search for: href="(.+?)" replace with   \1    (using Grep): choose 
"Extract" – this gives you a new file with all href-Strings in it

2. In the new file: Copy all text
3. Replace all whitespace with _ (an underscore)
3. (for Accents and other stuff add additionals search-replace steps here)
4. Add a tab to each line (you could use the "Prefix/Suffix" command in the 
"Text" menu for that
5. Mark the column left of the tab ("column zeor") with a rectangular selection 
(check the manual if you don't know how to do this)

6. Paste the copied text

Now you have a file with the structure

Save this file and use it as a ad-hoc batch-search-replace source on your 
orignal file: To do this, choose "Text" > "Canonize …". with your generated file 
as a source.


That might just take a few minutes and may be an alternative for getting a 
script right – if you have a lot of different files to process, a script 
solution may be the wiser choice.


Roland



On Sat, Jul 8, 2023 at 4:03 PM David Puente wrote:

Hi folks,
I need to find some trick to rename the text:

     

I need find all the .png names removing spaces and accents... Is there any
pattern to make it possible? Thanks


--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google 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/67c4128c-a894-f276-b65b-04096f4bb649%40darrenduncan.net.


Re: BBEdit 13.5.7 - VERBOSE feedback on Find

2023-01-06 Thread Darren Duncan
Also, when migrating to a new Mac, if you clone over the settings for your 
programs, for example BBEdit has several settings and support files under 
~Library, then it should have all the behaviors you're used to, notwithstanding 
changes to the operating system itself or updates to the BBEdit version. -- Darren


On 2023-01-06 10:19 a.m., Bruce Van Allen wrote:

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 performing a single-file "Replace All" operation, BBEdit can 
show a confirmation sheet showing the number of replacements performed. If you would like 
to see this confirmation:

defaults write com.barebones.bbedit ReportReplaceAllResults -bool YES


#


On Jan 6, 2023, at 8:32 AM, Peter Kaufman  wrote:

Folks,

I've just started using a new Macbook Pro and BBEdit 13.5.7 on it and notice that 
I'm not shown how many changes BBEdit Find affected after a given 
action.  I'm used to seeing that on my old Macbook Pro.  I would even like to see 
it for a few more seconds than I used to previously if possible.

I cannot find where in the preferences that setting would be.  Help?

Thanks!!!

Peter


--
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/edf2234d-95d2-9b05-e058-87455139ad9b%40darrenduncan.net.


Re: BBEdit and Grep

2022-10-01 Thread Darren Duncan

On 2022-09-30 2:57 a.m., Lionel wrote:
I discovered Grep about ten days ago. Grep combined with BBEdit gives fantastic 
results! And I'm just starting to learn this new language.
Congratulations to the team of developers who have successfully integrated Grep 
into BBEdit.


I for one consider its Grep support, which is essentially identical to Perl 
regexes with all their advanced features, to be one of the main killer features 
of BBEdit, a reason to use BBEdit just because it has that, and even more so 
when combined with its multi-file search and replace abilities. -- Darren Duncan


--
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/fba7c1b3-06eb-c236-e321-d37f6547cef2%40darrenduncan.net.


Re: Self-closing tag syntax - who is right? (should I care?)

2022-09-30 Thread Darren Duncan
Modern HTML must follow all the XML rules, which is that tags in pairs look like 
"" and standalone tags look like "".  Whether or not there is 
whitespace before a "/" is a stylistic choice, but the "/" MUST be present in 
standalone tags.  Having "" by itself is wrong, full stop. -- Darren Duncan


On 2022-09-29 11:23 a.m., Omar KN wrote:

Hi and good day,

So now BREAK should be only  in HTML5.

Until a week ago the w3 corrector marked  as the only correct way.

w3:
"Self-closing tag syntax in text/html documents is widely discouraged." Some for

BBEdit ( CTRL - CMD - Y) marks the  as necessary.

(And then there are flavours of HTML ), I'm using .

So a little confused, which way to take?

/

with best regards, Omar KN, Stockholm, Sweden


Related:

link1

html - Are (non-void) self-closing tags valid in HTML5? - Stack Overflow 
<https://stackoverflow.com/questions/3558119/are-non-void-self-closing-tags-valid-in-html5>


link2

HTML 5: Is it , , or ? - Stack Overflow 
<https://stackoverflow.com/questions/1946426/html-5-is-it-br-br-or-br>


--
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/533ad74c-8cb2-75af-42b3-84d347ecad0e%40darrenduncan.net.


Re: Need help changing one column of data into two

2022-06-01 Thread Darren Duncan

Howard,

Sorry, I had a typo, I forgot to include capturing parenthesis in my example.

I didn't actually take the time to execute what I told you to prove fitness, 
since I considered it simple enough, but this was a typo and I understood how it 
should have been done.


It should be this, with the extra 2 added, as Bruce and Rod pointed out:

^\s*19(\d\d)-(\d\d)-(\d\d)\s+\((\d+)\)\s*$

-- Darren Duncan

On 2022-06-01 7:40 a.m., Howard wrote:

Darren,

When I run your solution in BBEdit, in the output the numbers that should be in 
Column 2 are not appearing.


Howard

On Tuesday, 31 May 2022 at 5:24:37 pm UTC-4 Darren Duncan wrote:

Howard,

This should be easy to accomplish with search and replace regular 
expressions.

If both of the things you want to change always appear together such as the
longer format dates plus the counts, then you can change both in a single
expression and you can leave the other lines with the short dates and no
numbers
alone, as those would already import correctly, assuming the date column is
first.

Search for this grep pattern:

^\s*19(\d\d)-(\d\d)-(\d\d)\s+\(\d+\)\s*$

Replace with:

\2/\3/\1\t\4

This pattern is more strict and matches a whole line with optional
leading/trailing whitespace, and it leaves alone dates that don't start 
with 19
so if it skips any then you know those are a different century; otherwise
replace the 19 with \d\d if you don't care about that.

The result has a tab between the 2 columns which is how in copy/paste Excel
would know the boundaries.

-- Darren Duncan

On 2022-05-31 7:09 a.m., Howard wrote:
 > Correction to *Sample Output*.
 >
 > It should look like this:
 >
 > *Sample Output*
 > *
 > *
 > *Column 1       Column 2*
 > 9/4/57
 > 9/3/57
 > 9/2/57            2
 >
 > On Tuesday, 31 May 2022 at 9:54:59 am UTC-4 Howard wrote:
 >
 > I have a column in Excel with data like this:
 >
 > 9/4/57
 > 9/3/57
 > 1957-09-02 (2)
 > 8/23/57
 > 8/23/57
 > 8/17/57
 > 8/16/57
 > 1957-08-13 (2)
 > 1957-08-13 (2)
 > 1957-08-02 (1)
 > 1957-07-28 (2)
 >
 > In BBEdit, I would like to extract all the numbers in parentheses -- (1) 
and
 > (2) -- and
 > put them in a second column without the parentheses. Then, I would like 
to
 > convert all the dates in Column 1 that are in *-mm-dd* format to
 > *mm/dd/yy* format so that I can copy the BBEdit result and paste it into
 > Excel as two columns (See *Sample Output*).
 >
 > *Sample Output*
 > *
 > *
 > *Column 1       Column 2*
 > 9/4/57
 > 9/3/57
 > 1957-09-02     2*
 > *
 >
 > How can I do this in BBEdit?
 > Howard


--
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/c0601300-95a2-0c54-dc39-8b8d261cbf8c%40darrenduncan.net.


Re: Need help changing one column of data into two

2022-05-31 Thread Darren Duncan

Howard,

This should be easy to accomplish with search and replace regular expressions.

If both of the things you want to change always appear together such as the 
longer format dates plus the counts, then you can change both in a single 
expression and you can leave the other lines with the short dates and no numbers 
alone, as those would already import correctly, assuming the date column is first.


Search for this grep pattern:

^\s*19(\d\d)-(\d\d)-(\d\d)\s+\(\d+\)\s*$

Replace with:

\2/\3/\1\t\4

This pattern is more strict and matches a whole line with optional 
leading/trailing whitespace, and it leaves alone dates that don't start with 19 
so if it skips any then you know those are a different century; otherwise 
replace the 19 with \d\d if you don't care about that.


The result has a tab between the 2 columns which is how in copy/paste Excel 
would know the boundaries.


-- Darren Duncan

On 2022-05-31 7:09 a.m., Howard wrote:

Correction to *Sample Output*.

It should look like this:

*Sample Output*
*
*
*Column 1       Column 2*
9/4/57
9/3/57
9/2/57            2

On Tuesday, 31 May 2022 at 9:54:59 am UTC-4 Howard wrote:

I have a column in Excel with data like this:

9/4/57
9/3/57
1957-09-02 (2)
8/23/57
8/23/57
8/17/57
8/16/57
1957-08-13 (2)
1957-08-13 (2)
1957-08-02 (1)
1957-07-28 (2)

In BBEdit, I would like to extract all the numbers in parentheses -- (1) and
(2) -- and
put them in a second column without the parentheses. Then, I would like to
convert all the dates in Column 1 that are in *-mm-dd* format to
*mm/dd/yy* format so that I can copy the BBEdit result and paste it into
Excel as two columns (See *Sample Output*).

*Sample Output*
*
*
*Column 1       Column 2*
9/4/57
9/3/57
1957-09-02     2*
*

How can I do this in BBEdit?
Howard


--
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/5c07888c-c62b-daf3-3372-cd853de28f68%40darrenduncan.net.


Re: Cmd-Tabbing to BBEdit very slow

2022-05-29 Thread Darren Duncan
Weird that you mention this, because I experienced the same behavior a couple 
hours ago.  Or a slight variant where on switching to the app there was a few 
seconds delay in it registering to type or other actions.  At the time I thought 
it was just context switching because my machine had over-allocated its RAM and 
BBEdit probably had to be moved from compressed RAM.  Maybe that was still the 
case, but the fact someone else brings this up is interesting. -- Darren Duncan


On 2022-05-27 1:02 p.m., Nick J wrote:

When I Cmd-Tab to BBEdit, it takes a couple of seconds for it to show.
This isn't happening with any other apps on my M1 Macbook Air.
Switching stays fast for some time, but becomes slow again if I haven't used 
BBEdit in a while.

Activity Monitor shows only 330MB of swap used:
Physical memory: 8GB
Memory used: 6.9GB (app memory: 2.09GB, wired memory 1.59GB, compressed: 2.98GB)
Cached files: 1.04GB
Swap used: 337MB

What could be happening? I've used BBEdit for 10+ years and never seen anything 
like this.


--
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/f7ffed6d-1734-310c-cc3b-bb46d6f6e188%40darrenduncan.net.


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

2022-05-25 Thread Darren Duncan

On 2022-05-23 12:53 p.m., Rich Siegel wrote:

Here is the list of changes made since the 14.1 public release:


Thank you for that.  Looks like a lot of solid additions/changes/fixes in this 
one!  -- Darren Duncan


--
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/112f6cbf-3a72-465d-40b5-0c6e52dc5266%40darrenduncan.net.


Re: TextEdit acts like default text editor at times

2021-11-29 Thread Darren Duncan
I have found for years a generic thing with MacOS is that it sometimes forgets 
that particular applications exist and so ignores them when resolving what 
double-clicking a file does.  So when that happens, typically the only fix 
required is to just open the BBEdit application directly, which reminds the OS 
that it exists, and then files associated with it work again for 
double-clicking.  This assumes a scenario where double-clicking used to work 
right and then suddenly stopped. -- Darren Duncan


On 2021-11-29 7:22 a.m., Brian Gollands wrote:

rMBP 2012 / OS10.15 / BBEdit 14

Anybody else have a problem with TextEdit being invoked when double-clicking on 
a .txt file that is set to be opened with BBEdit? This has been an annoyance 
over several versions of the OS.


All .txt files are set to BB and their file icons reflect this. But 
double-clicking them or choosing Open opens them in TextEdit. Choosing my 
contextual command Open in BBEdit works OK. The latest straw was in using Hook's 
command to Make a New Note in BBEdit. It, too, makes the file in TextEdit.


Have tried making a zip of TE and deleting the original (so I didn't lose it 
completely), but can't seem to do this even in Terminal due to some magical 
protection conveyed by its living in /System/Applications/ I guess.


I have a lot of apps installed, but don't recall any other setting I've changed 
that would cause this. Is there a default text editor config I'm missing?


Thanks for any help,
Brian


--
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/d3d4fcbe-3e43-911d-a6ff-c6bcfb8f0c8f%40darrenduncan.net.


Re: How to add multiple Function Pattern?

2021-08-23 Thread Darren Duncan

On 2021-08-21 12:08 p.m., Daniel Paz wrote:
I have two Function Pattern that I made for Codeless Language Module, but I'm 
not sure how to combine between them


Why don't you share your 2 alternatives and then you can get specific feedback 
on combining them.  Also by "combine" I assume you want the pattern to build a 
list including examples that match either of them. -- Darren Duncan


--
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/da43f7a2-f3f8-656c-c135-d179740e7a46%40darrenduncan.net.


Re: Codeless Language Module design question.

2021-08-17 Thread Darren Duncan
Unless I'm confused, I had thought Language Server Protocol was the new big 
standard created recently and used by Visual Studio Code and other popular 
editors or IDEs and that it was intended to support all the usual features of a 
language that an editor would care about, including all the syntax coloring and 
function scanning and delimiter pair folding and so on. -- Darren Duncan


On 2021-08-16 9:28 p.m., Christopher Waterman wrote:

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 to the servers. Editor makers will want to do things not 
provided by LSP. I suspect that if they add more features to LSP different 
editors will support different sets and choose to roll their own feature in 
other cases. Its a competitive market with free options, there is a lot of 
pressure to stand out.

BBEdit doesn’t use it for syntax coloring now, and I wouldn’t be surprised if 
they have no plans too. I’m speculating but I think the situation with the 
coded vs codeless modules is a product of Bare Bones protecting BBEdits 
performance (I think syntax coloring like HTML rendering is surprisingly 
processor intensive). One is very limited but trivial to write, the other is 
difficult but extremely flexible. Both are fast. If Rich sees that speed as key 
to his customers no way he hands that over to a gallery of third parties.

Also what if no one writes a LS for say Fish (there might be one, I don’t 
know). I banged that CLM out in an hour, it was my first one, and I am not a 
good programmer.

I hadn’t really thought about the future of this. So thanks, now I’m kind of 
excited to see how this plays out.

—Chris


On Aug 14, 2021, at 11:07 PM, Darren Duncan  wrote:

Something I will say is that while I've found the codeless language module 
functionality very helpful, and I have written and maintain a few of my own, I 
have also, perhaps partly due to ignorance, ran into their limitations quite a 
bit.

I really appreciate BBEdit's new support for language servers, and when I'm 
able to, intend to re-implement some codeless language modules as servers for 
that protocol, helping them be much more capable in the process.

I could be wrong but I get the impression that older methods of language 
support are now deprecated in favor of the new language protocol, as it can 
benefit from economies of scale to get maintained support for a lot more 
languages.

-- Darren Duncan





--
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/e6d9da6e-6f59-85b8-c6d5-1ba33c13abd2%40darrenduncan.net.


Re: Codeless Language Module design question.

2021-08-15 Thread Darren Duncan
Something I will say is that while I've found the codeless language module 
functionality very helpful, and I have written and maintain a few of my own, I 
have also, perhaps partly due to ignorance, ran into their limitations quite a bit.


I really appreciate BBEdit's new support for language servers, and when I'm able 
to, intend to re-implement some codeless language modules as servers for that 
protocol, helping them be much more capable in the process.


I could be wrong but I get the impression that older methods of language support 
are now deprecated in favor of the new language protocol, as it can benefit from 
economies of scale to get maintained support for a lot more languages.


-- Darren Duncan

On 2021-08-14 7:56 p.m., Christopher Waterman wrote:

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 


Then pulled out the ones I think belong in the BBLMKeywordList.

BBLMKeywordList

function
end
if
else
for
while
switch
case
begin
command
continue
return
break
exit
true
false
and
or
not
in
|


Then I printed “ls /bin” to BBEdit to make a third list.
I removed duplicates and felt like I ended up with a pretty good list of the 
most general unix commands.


Something like this but longer:

BBLMPredefinedNameList



_
abbr
alias
argparse
bg
bind
block
breakpoint
builtin
cd
…
…the list continues



bash
cat
chmod
cp
csh
dash
date
…
…the list continues

Should I have left out the commands from /bin? Is there more utility in 
highlighting only the built-in commands?
I know this isn’t a very technical question, nor particularly important, but I’m 
curious what this crowd might think.


Thanks
—Chris







--
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 
<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/D75B10C1-AB11-467C-830D-39B3CB061D42%40rustydogink.com 
<https://groups.google.com/d/msgid/bbedit/D75B10C1-AB11-467C-830D-39B3CB061D42%40rustydogink.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/055dec07-0ed1-9c3f-1e71-4b0fda2b991d%40darrenduncan.net.


Re: [ANN] BBEdit 14.0

2021-07-21 Thread Darren Duncan
I found that bullet point very interesting also, as it described a very common 
workflow I had been doing with BBEdit for years.  Yet I thought it was unusual 
and it never occurred to me that supporting this could serve a lot of people and 
be a feature.  So thank you for that. -- Darren Duncan


On 2021-07-20 5:02 p.m., flip@flipmartin wrote:

I for one is very thankful! :D



On 21 Jul 2021, at 01:37, Gerald Davenport  wrote:

i knew they (barebones) was keeping tabs on my workflow, or lack of it. 

not sure to be thankful or worried. 樂


On Tue, Jul 20, 2021 at 4:28 PM Lorin Rivers  wrote:
I feel personally attacked


On Jul 19, 2021, at 1:39 PM, Rich Siegel  wrote:

*   *Notes* - We know that many of our customers create a lot of
untitled documents for quick note-taking, and rely on BBEdit's
legendary stability and robust crash recovery to protect their
work. We've added a new "Notes" feature in BBEdit 14, which
provides a large variety of ways to create notes that
automatically save themselves, and, perhaps more important,
automatically title themselves so that you don't end up wondering
which of your 305 "untitled text" documents is the one you're
looking for.


--
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/ccebb257-e528-0692-f340-a92a35cd4698%40darrenduncan.net.


Re: Using BBEdit for markdown presentation?

2021-04-20 Thread Darren Duncan

On 2021-04-19 9:00 a.m., Tibor Páli wrote:

Is it possible to have the BBEdit preview to open new .md files by clicking to 
links and REMAIN WITHIN THE BBEdit Preview, preferably in full screen mode (and 
opening the .md files in the background)?.


As someone who uses inter-linked collections of Markdown files as a primary 
documentation format now, I second the above request that it would be very 
helpful for clicking links to stay in the BBEdit preview window. -- Darren Duncan


--
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/d1eaf92c-f691-abde-1d4e-4bd72fdee1c5%40darrenduncan.net.


Re: BBEditExtras Website Update

2021-03-19 Thread Darren Duncan

On 2021-03-12 11:25 a.m., Clay Loveless wrote:
I don't know if you guys saw this, but https://www.bbeditextras.org/ has 
undergone a very nice makeover sometime in the past few weeks.


It looked like a standard MediaWiki website as recently as 2 weeks ago. I don't 
know when it changed (or even who maintains it) ... but just wanted to shout out 
"Well done!" into the void, in case the maintainer is listening on this group.


In case the maintainer doesn't see this message ... does anyone know who it is?

-Clay


I suggest it would be worth updating the page 
https://www.bbeditextras.org/codeless-language-modules/ to distinguish the 
user-contributed language modules that are redundant with built-in functionality 
present day versus those that provide unique features.  For example, Tcl is 
contributed but also built-in. -- Darren Duncan


--
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/dd28584c-164e-5e3e-09b1-b42f242a9244%40darrenduncan.net.


Re: Pinning finding differences in a large file, bad html highlighting?

2020-08-23 Thread Darren Duncan
As a frequent user of the difference engine, I understand and also request the 
pinning feature James mentions.  But I will follow-up and make a formal feature 
request via the appropriate channel, and James I suggest you do likewise.


Greg, to explain:  Pinning is a UI feature where you can explicitly tell BBEdit 
that Line N on one side corresponds directly to line M on the other side, thus 
overriding what BBEdit's algorithm determines what corresponds.  Effectively the 
user is partitioning the compared documents and explicitly saying, I want you to 
treat what is above this line on each side as if it was the whole document, and 
separately what is below this line.


James, lacking the explicit pinning feature, there are a number of tricks I have 
employed over time to work around the lack of a formal pinning feature.


Low hanging fruit for your specific scenario that's good anyway is to use block 
comments rather than line comments.  If Lua supports block comments then use 
them, as then the actual number of changed lines would be very minimized, just 
an insertion at the top and bottom of the large commented blocks.  If Lua 
doesn't support block comments I would consider that a language design flaw.


Something I've done repeatedly is temporarily insert large enough blocks of 
identical dummy text on both sides so that BBEdit's natural algorithm will treat 
them as the same and thus partition the comparison at that point.  This can be 
done in as many places as needed.  The dummy text would have to look very 
different from the normal file contents.


Another thing that can help work around the problem is to do updates in stages 
and do relatively few changes per stage.  If one is using version control there 
can be a commit between each stage.


A key thing I do is have separate stages for reordering blocks and doing other 
kinds of edits.  Or if I change the indenting that's a separate stage.  This has 
a key benefit also in that in the project's commit history its much easier to 
see what changed, when stuff like reordering is separate commits from other 
edits, and so on.


-- Darren Duncan

On 2020-08-23 5:23 a.m., Greg Raven wrote:
I don't understand the first part of your question, but as to the second part I 
have a question of my own: How would BBEdit know that the last closing DIV (in 
your example) is incorrect? What if that last DIV is in fact correct, but you 
erroneously left a closing DIV elsewhere in the document? FWIW, I use code 
folding to find the incorrect tags in situations such as this. This works 
especially well if your closing DIVs have comments after them as to which 
opening DIV they are supposed to match.


On Saturday, August 22, 2020 at 4:50:33 AM UTC-7 james.bio...@gmail.com wrote:

I have 2 questions. I have a very large Lua file. I duplicated it and
commented most of it out. Then I made some changes. I am trying to find the
changes between the 2 documents but the difference engine keeps gobbling up
more on one side than the other and then the comparison is useless because
it's no longer in sync. This seems to happen most when one side has lines
with just new lines and the other side has a comment "--". Is it possible to
tell BBEdit to pin text in both documents at certain places so that no
matter what the text is on either side, it will restart it's comparison at
that point? Or is there some other way to manipulate how it's comparing 
things?


--
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/dda6d78b-2ce8-b08b-3f8e-02fdbe51f8f1%40darrenduncan.net.


Re: Space after line numvers

2020-07-31 Thread Darren Duncan

That solution is overly complicated, try this:

find:
^([0-9]+\.?)
replace:
\1

... where the replace has literal spaces after.

-- Darren Duncan

On 2020-07-30 12:14 p.m., Jim Witte wrote:

find:
^([0-9]+[\.]{0,1})(.*)
replace with:
\1\s\s\s\1

Would that do what you want?  I'm not sure whether the «\s» in the replace 
string gets converted to a space character though, or if you actually just need 
to type spaces there.  \1 is a leading number and optional period, and \2 is the 
rest of the line.


On Thu, Jul 30, 2020 at 3:09 PM Garrett Taylor <mailto:garrettay...@gmail.com>> wrote:


Howdy,
  I would like to add spaces after line numbers. Is it possible?

-- 
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+unsubscr...@googlegroups.com>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/bbedit/49f6174e-5054-49f4-9726-65163418c001o%40googlegroups.com

<https://groups.google.com/d/msgid/bbedit/49f6174e-5054-49f4-9726-65163418c001o%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 <mailto:bbedit+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CAEXAeDJo9LAc9%2BetLA%2B0Nq_-EwcNfEOnyorEidO9Cay%3DA44H%3Dw%40mail.gmail.com 
<https://groups.google.com/d/msgid/bbedit/CAEXAeDJo9LAc9%2BetLA%2B0Nq_-EwcNfEOnyorEidO9Cay%3DA44H%3Dw%40mail.gmail.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/81a025a9-e883-3f6a-1ab3-eba5347e75c6%40darrenduncan.net.


Re: How to open two files and see them at same time in Mac

2020-05-18 Thread Darren Duncan

Liheng Wang,

As I see it your fundamental problem is likely caused by an optional BBEdit 
feature where multiple documents open in one window rather than each of them 
opening in their own windows.


To fix this problem, go to main BBEdit Preferences ("BBEdit" menu item 
"Preferences") then choose the "Application" tab on the left, then make sure the 
checkbox at the top named "Open documents into the front window when possible" 
is NOT checked.


I always operate with documents in their own windows and find it works best.

With that setting correct, close and then re-open your documents, and upon 
re-opening each should be in its own window.


Then you can arrange the windows side-by-side as you wish.

-- Darren Duncan

On 2020-05-17 1:40 p.m., Liheng Wang wrote:

I have two files,
I need to compare them by myself.
but it hard to see them at same time.
My os is Mac
and I know a function is called "compare"
But, I Just want to see them at same time.
can I do that?


--
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/c184b0fb-d38c-4929-34e8-5dbaceed6971%40darrenduncan.net.


Re: Filetype for rc files?

2020-05-14 Thread Darren Duncan

If the filenames have distinct extensions then the solution is easy.

Go to the BBEdit main Preferences, into the Languages panel, and add an item to 
"Custom filename extension mappings" for each filename extension like ".vimrc" 
or whatever.


That should make BBEdit use the corresponding language module for it by default.

-- Darren

On 2020-05-14 6:30 a.m., @lbutlr wrote:

I’ve been using the “Unix Shell script” for rc files (like .vimrc, .slrnrc, 
.zshrc, etc) but I have to set it manually for each file. Can I make this 
automatic somehow?

Also, can I teach BBEdit that lines that start with % in my slrnrc are 
comments? (I know they’re comments in some other files as well, but I can’t 
remember which)

Or maybe someone already has a language module for "Unix Config Files”?

I did look on https://www.barebones.com/support/bbedit/plugin_library.html but 
nothing there jumped out as appropriate.

I’m sure this was discussed at some point in the last… erm, 15 years… but I 
can’t find it in my archives.

(“Unix Shell Script” Is… OK for many rc files, but not all, though it is not 
great for actual shell scripts.)


--
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/c37b2bb6-afbc-6dde-6764-38afb493cc4b%40darrenduncan.net.


Re: password redaction strategy

2020-04-10 Thread Darren Duncan

Eric,

The way it comes across is you have some system that fakes actual passwords 
being in documentation files without them actually being there, and this sounds 
incredibly complicated and error-prone.


What would be a LOT better is to never even pretend or fake having passwords 
where they shouldn't be, never put them in your documentation even temporarily.


Instead, have a system of named variables or entities where all your actual 
documents simply indicate the name of a password, an identifier that itself is 
not secret nor needs to be changed.


Then when someone is reading a document that talks about secrets, rather than 
seeing the secret/password itself, they see the non-secret name, and then they 
take that name and provide that to the secret server to get the actual password.


The secret names should be descriptive enough that people have an idea what they 
are and if the secret server has a list of name-value pairs one can maintain 
those easily enough independently.


So never put your passwords in your non-secret files to begin with.

-- Darren Duncan

On 2020-04-10 2:05 p.m., e2o wrote:

Hello!

So, I use BBEdit to write detailed client notes for my IT consulting clients. My 
company came up with a new format in which we have to keep notes, and in this 
"improved" standard, passwords cannot be stored in the documentation. (The idea 
is that rather than passwords, links to items in a secure SecretServer (Thycotic 
software) will be in the documentation.)


Anyway, I'll be forced to keep my notes in this central repository current, but 
there is no way I can efficiently work from a remote repository with passwords 
separate from other content. So I'll have to remove passwords from my text 
documents regularly, and copy the redacted notes to the central store. I know 
there is probably dozens of clever ways to tag the passwords and remove them in 
one simple multi-file replace, but if anyone has a nice workflow they have 
created to do something similar, I'd love to hear it before cobbling together 
some hack.


Thanks!

- eric


--
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/53cac715-7f65-27de-aa88-42949b162675%40darrenduncan.net.


Re: Any plan to port a Linux (debian/Ubuntu) version

2020-03-04 Thread Darren Duncan

On 2020-03-02 9:28 a.m., dke...@hiwaay.net wrote:

I use SVN for anything important. Checkout the files on Mac, edit, submit, then 
checkout on the target machine, repeat as necessary.


That's appropriate for deployment, but if you're following the common case of 
edit-save-run-remotely that's way too much overhead.


Better is to have a local on the Mac working folder with all your stuff and use 
rsync over ssh to update the remote server when you make local changes.


Also, I strongly recommend you consider using git instead of svn when using a 
version control system.  It is SO much better, not the least reason being that 
every checkout also has a complete backup of all the versions, being peer to 
peer, rather than the versions only being on a single remote host that is easy 
to lose.  It also has better protection against corruption, better merging, lots 
of other betters.


-- Darren Duncan

--
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/ddfad552-1ada-8c9d-0e6e-5dfa32020daa%40darrenduncan.net.


Re: Any plan to port a Linux (debian/Ubuntu) version

2020-03-04 Thread Darren Duncan

On 2020-03-01 6:36 p.m., Gauvins wrote:

I am in the process of building a Linux workstation but will most likely keep 
several macs as well. I like BBedit very much but will be vulnerable to a 
multi-platform equivalent.

Any plan to port BBedit?

I suspect that other users may follow a similar route. I use BBedit to code in 
Python (mostly) and web stack. Can't afford MacPro wheels so jumping ship.


The MacPro is a very niche product, intended for those doing video editing and 
such.  For web developers one of the other Mac models works perfectly well and 
is a lot less expensive. -- Darren Duncan


--
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/5466a092-4b4a-1b69-9395-5c4155ed0427%40darrenduncan.net.


Re: Extracting parts of names from full names

2020-02-28 Thread Darren Duncan
What is the business case for this separation?  For all practical purposes 
keeping the name as a single string is best.  A better solution to your problem 
may be changing anything that expects parts to expect a single combined name 
instead, which would then work for names of any nationality. -- Darren Duncan


On 2020-02-27 1:43 p.m., 'anotherhoward' via BBEdit Talk wrote:

I have a list of names in this format:

Luis Gonzalez\gonzalu01
Eddie Perez\perezed02
B.J. Surhoff\surhob.01
Bobby Bonilla\bonilbo01
Keith Lockhart\lockhke01

I want to extract the last names and separately extract what comes before each 
last name
(which could be just the first name or two initials as in "B.J.") so that I can 
later organize them this way:


*First       Last*
Luis        Gonzalez
Eddie      Eddie
B.J.         Surhoff
Bobby     Bobby
Keith       Lockhart

I do not need the data after the slash.

How can I use GREF (REGEX) to extract the last names and separately the 
first/middle values?


--
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/824baf58-2866-65dd-2e2c-46844671b516%40darrenduncan.net.


Re: Can I _find_ "gremlins" instead of "zap"ping them?

2020-02-23 Thread Darren Duncan

On 2020-02-22 2:25 p.m., TJ Luoma wrote:

I often use "zap gremlins" (one of my favorite features of BBEdit) but
sometimes I'd rather _locate_ them instead of zapping them so I can
manually change them.

Is that possible? If so, how?


The short and simple answer is use BBEdit's "compare" feature to compare a 
document with a copy that has "zap gremlins" applied to it.  One way is copying 
to a new document, another is comparing with the pre-zap version saved to disk, 
and so on. -- Darren Duncan


--
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/6792dcce-a1b3-57e5-bdd0-efd755a108e4%40darrenduncan.net.


Re: BBEdit Backups for v12

2020-02-14 Thread Darren Duncan
My standard solution for things like this is to just use a standard file 
system soft link, a kind of alias, to make a folder actually stored 
somewhere else look like its in the standard location.

In the terminal, while the current directory is ~/Documents, I can just do 
"ln -s path/to/actual/folder BBEdit\ Backups" and it just works.

-- Darren Duncan

On Friday, December 27, 2019 at 6:54:53 AM UTC-8, BeeRich33 wrote:
>
> Happy belated holiday greetings and all that jazz.  
>
> Just wondering if there is a way to move the ~/Documents/BBEdit Backups to 
> another location other than *iCloud Drive* or *~/Dropbox/*.  I couldn't 
> find any reference to choose a location.
>
> Cheers 
>
>
>

-- 
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/e871823f-3a30-44f2-b668-a6778b3aec42%40googlegroups.com.