Re: SoftWrap in worksheets

2013-03-22 Thread Bruce Van Allen
On 2013-03-22 at 11:27 AM, krem...@kreme.com (LuKreme) wrote: I have soft text wrap enabled for my text files, but I would like to have it DISABLED in worksheets where I find it extremely annoying. However, as far as I can tell, soft-wrap is a global on/off that applies to every document of

Re: Python syntax highlighting

2013-04-12 Thread Bruce Van Allen
On 2013-04-12 at 4:01 PM, andrew.dinat...@gmail.com (Andrew DiNatale) wrote: I just downloaded BBedit and i was trying to write some python, i noticed the lack of syntax highlighting right out of the box. For instance, in the line buffer = infile.read(buffersize) and outfile = open('new.txt',

Re: 10.5.3 removing extension on Save As and Save a Copy

2013-05-14 Thread Bruce Van Allen
On 2013-05-14 at 2:54 PM, n48w...@gmail.com (Karen Dozier) wrote: This is the case for me as well -- I have to type the extension every time. Which is always .html Does anyone know a way to set .html as a default extension? Have you specified the language for your files? If it's HTML, you

Re: Feature suggestion: filter for diffs

2013-06-26 Thread Bruce Van Allen
On 2013-06-24 at 10:35 AM, rubinstein@gmail.com (Ben Rubinstein) wrote: Does anyone else think this would be useful? Does BB think it would be feasible? Find out by submitting a feature request to supp...@barebones.com :-) Best Regards, - Bruce _bruce__van_allen__santa_cruz_ca_

Re: Key board short cut for multiline comment - what is is it?

2013-07-04 Thread Bruce Van Allen
On 2013-07-04 at 7:36 PM, sam.p.i...@gmail.com (Sam P) wrote: Select a range of text and comment each line. For BASH, Perl etc. Could not find shortcut here - http://mac.keyboard-shortcuts.eu/en/bbedit/. How about the BBEdit manual :-) ? Anyway, for me it's under the Text Menu: Un/Comment...

Re: Searching for files of a particular line break type

2013-07-29 Thread Bruce Van Allen
On 2013-07-29 at 5:00 PM, li...@rickgordon.com (Rick Gordon) wrote: Wouldn't that change multiple returns to a single return, as well, though? It would. Just in case anyone's interested, ss long as we're using Perl, here's the canonical way to convert from any* line-ending to the one you

Re: Find dialog Find field changes

2013-08-05 Thread Bruce Van Allen
On 2013-08-05 at 9:19 AM, dur...@vt.edu wrote: While conducting searches in BBEdit I switch to ... When I switch back to BBEdit, the Netscape search has replaced the BBEdit search in the dialog box. ... Any way to turn off this helpful feature? Yes. An expert preference to set via Terminal or

Re: how to strip HTLM from word doc on mac?

2013-08-09 Thread Bruce Van Allen
On 2013-08-09 at 10:19 AM, davie...@gmail.com (SBD) wrote: I'm looking for a way to strip all codes (I want plain text) from things I have copy/pasted into a word doc on my Mac. I understand this can be done by using Notepad on PCs, but I'm not able to figure this out via my new Mac. Any

Re: repalcement patterns

2013-09-14 Thread Bruce Van Allen
On 2013-09-14 at 3:19 PM, k...@simplelives.com (Ken Lanxner) wrote: Hi. I am wondering how to write a replacement pattern that requires a numbered backreference immediately followed by a digit. How do I correctly write something like \113 to indicate I want the replaced value to be the 1st

Re: should + match across line breaks?

2013-09-27 Thread Bruce Van Allen
On 2013-09-27 at 12:48 PM, krem...@kreme.com (LuKreme) wrote: searching: ^[^/]+\/ this matches across lines file1 file2 file3 path/to/file since when does + match across line breaks? Or am I misremembering? Always has. You might be thinking of the dot '.', which in regexes matches any

Re: How to prevent search term osmosis?

2013-11-29 Thread Bruce Van Allen
On 2013-11-29 at 8:55 AM, j...@bd8.com (John Delacour) wrote: ➔ defaults read com.barebones.bbedit FindDialog_UsesFindScrap 2013-11-29 16:50:36.993 defaults[23781:507] The domain/default pair of (/Users/jd/Library/Preferences/com.barebones.bbedit, FindDialog_UsesFindScrap) does not exist

Re: Small bug (or feature?) in Find / Replace

2013-12-28 Thread Bruce Van Allen
On 2013-12-28 at 8:29 AM, george.gardi...@commonmode.co.uk wrote: Find Replace bug.. Tried to replace the string \\^circ with deg; but BBEdit fails to match anything even though present in document. Think its something to do with the escaping type characters. More info needed: 1. When you

Re: rectangular selection and UNIX text filters

2014-01-02 Thread Bruce Van Allen
On 2014-01-02 at 6:47 AM, denis.baur...@ulg.ac.be wrote: Is there any reason for not passing the contents of the rectangular selection when invoking a UNIX Text Filter? Instead, the whole document is passed. It seems quite easy to do and would be handy for some exotic applications. Did you

Re: BBedit hanging for no apparent reason

2014-02-28 Thread Bruce Van Allen
On 2014-02-28 at 2:27 PM, jakehawke...@gmail.com (Jake Hawkes) wrote: I just got back from running errands, and I had shut down the editor before leaving, and now when I get back, the FTP browser component which was still running, has hung again. There is definitely something wrong with the

Re: Documents on Right PLEASE

2014-03-21 Thread Bruce Van Allen
On 2014-03-21 at 1:02 AM, ntsme...@gmail.com (JohnH) wrote: I often have some other file on top of a BBEdit file and the files list pushes everything over more than needed because I have to accommodate the list of files which is not relevant to what I am doing, whereas the left portion of the

Re: bbedit set a screen for new compare windows

2014-03-31 Thread Bruce Van Allen
On 2014-03-31 at 1:31 AM, bun...@gmail.com (bunam) wrote: i have 2 monitors setup on a MacBook Pro and my primary screen is the connected one. i would like when i invoke compare of 2 files, that BBEdit show me on my primary. Anyone know how to do ? I am set up that way. It's been a

Re: ftp?

2014-04-04 Thread Bruce Van Allen
I, too, use Fetch, for all the reasons Greg mentioned. I have used Transmit and Interarchy (all the way back to when it was named Anarchie), especially when Fetch lay fallow. But I returned to Fetch when its development was revived several years ago. For many purposes, though, BBEdit's

Re: Global search nuisance?

2014-04-10 Thread Bruce Van Allen
On 4/10/14 at 12:40 AM, gr...@goldweb.com.au (Alex Satrapa) wrote: I’m turning find scrap off since for me the Find Replace window (“Find dialog”) exists for an entirely different purpose to Spotlight search or Quick Find. I pretty much exclusively use FR for regex munging. Agreed - I

Javascript for OS X automation

2014-06-14 Thread Bruce Van Allen
Hi All, Check this out: This article describes JavaScript for Automation, a new feature in OS X 10.10. https://developer.apple.com/library/prerelease/mac/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/index.html Many possibilities here. Best Regards, - Bruce

Re: Keeping BBEdit settings of several Macs in sync

2014-08-24 Thread Bruce Van Allen
On 8/24/14 at 12:02 AM, li...@viaduct-productions.com (Rich F) wrote: Less complexity, more beer, less feminists. Say what? I suppose there was something useful in your suggestions, but please leave the trolling other spaces. Thanks. -- - Bruce _bruce__van_allen__santa_cruz__ca_ --

Re: How to open a file (already present in a project window) in an additional window?

2015-02-03 Thread Bruce Van Allen
On 2/3/15 at 11:31 PM, v...@ghitulescu.de (Vlad Ghitulescu) wrote: Once in a while I would like to open a file - already listed in a project window - in a separate, additional window. How to do this? I can find this option for files that are **NOT** in a project: My workaround is to

Re: How to open a file (already present in a project window) in an additional window?

2015-02-03 Thread Bruce Van Allen
On 2/3/15 at 11:24 AM, v...@ghitulescu.de (Vlad Ghitulescu) wrote: Hi Bruce! That works too, thanks! Chris’ solution is a little faster though, take a look. Yes, I hadn't noticed that menu command - thanks Chris! -- - Bruce _bruce__van_allen__santa_cruz__ca_ -- This is the

Re: Quickly replace all instances of a word.

2015-02-03 Thread Bruce Van Allen
On 2/3/15 at 3:17 PM, justin.drisc...@gmail.com (Justin Driscoll) wrote: Wherever the cursor is placed in BBEdit it underlines the current word and all other instances of that word. Is there a way to quickly replace all those instances without copying it, opening find/replace, pasting,

Re: Regular expression interfering with BBEdit's Balance Tags

2015-01-18 Thread Bruce Van Allen
On 1/18/15 at 6:12 PM, lawrence...@gmail.com (San) wrote: On the broader question of whether I need to fix this at all... does the fact that a function doesn't balance in BBEdit imply that the function is brittle, i.e. might throw an error under some circumstances, even though I'm not seeing

Re: Regular expression interfering with BBEdit's Balance Tags

2015-01-18 Thread Bruce Van Allen
On 1/18/15 at 3:30 PM, lawrence...@gmail.com (Lawrence San) wrote: var noCol=/^transparent|rgba.*,\s?0\s?\)$/i;// Regexp for either the traditional or the CSS3 way of expressing transparency Can anybody see what in that code is causing BBEdit not to balance the overall function? Does it

Re: [ANN] BBEdit 11.1 (3711) pre-release

2015-03-26 Thread Bruce Van Allen
On 3/27/15 at 7:00 PM, garri...@zeta.org.au (Charlie Garrison) wrote: Good afternoon, On 26/3/15 at 9:49 PM -0400, Seth Dillingham seth.dilling...@gmail.com wrote: I'll echo it. Woo hoo! :-) The echo chamber is getting loud! I'll stay silent and enjoy the echoes for git support. I lie;

Re: Unix Worksheet Problem

2015-03-02 Thread Bruce Van Allen
On 3/2/15 at 7:23 AM, b...@cruzio.com (Bruce Van Allen) wrote: The most reliable thing I've found is pressing Command-Enter. Or Command-Return if your keyboard doesn't have an Enter key. HTH -- - Bruce _bruce__van_allen__santa_cruz__ca_ -- This is the BBEdit Talk public discussion group

Re: Unix Worksheet Problem

2015-03-02 Thread Bruce Van Allen
On 3/2/15 at 7:32 AM, mike.tartar...@gmail.com (Mike Warren) wrote: If you’re using a laptop, you may have changed your keyboard settings. If command-return doesn’t work, try fn-return or control-return after the unix command. Yes, Control-Return is probably now the default if one hasn't

Re: BBEdit 11.0.3 does not 'Ignore' or 'Learn' misspelled words

2015-04-26 Thread Bruce Van Allen
On 4/26/15 at 1:40 PM, essayt...@gmail.com (Michelle) wrote: When trying to correct spelling throughout a large document, the Ignore and Learn options are the most important because they are supposed to prevent the user from having to deal with the same misspelled words repeatedly. However,

Re: How to include parentheses when double-clicking?

2015-08-03 Thread Bruce Van Allen
On 8/3/15 at 4:52 AM, jon.klei...@usit.uio.no (Jon) wrote: When I was using BBEdit 9.6.3, I had somehow managed to configure BBEdit to include the parentheses when I double-clicked one, not just selecting the content between the parentheses. If I remember right, this configuration had to be

Re: Edit all selected (?)

2015-12-07 Thread Bruce Van Allen
What Fletcher describes is exactly what I do, too, and really, isn't it exactly what the OP is asking for? SEEING repeated instances of a bit of text is handy, but in my view, OPERATING on repeated instances rightly needs another couple steps. The assorted BBEdit commands Fletcher describes

Re: Hide Formatting?

2016-01-12 Thread Bruce Van Allen
On 1/12/16 at 10:48 AM, inforo...@gmail.com (Robert A. Ober) wrote: I searched and surprisingly did not find the answer. I have an rtf document that I have open in BBEdit 11.1.4 . I want to see the document like I do in TextEdit as a properly formatted document without the formatting

Re: Problem With Return Key in the Global Search Window

2017-01-17 Thread Bruce Van Allen
On 1/17/17 at 12:20 PM, barb...@signalfx.com (Barbara Snyder) wrote: does anyone know if there is a way to move over to the buttons on the right via the keyboard? So if Next is highlighted, I could instead click Find All, without using the mouse? You can use your usual BBEdit menu keys when

Re: grep lower case upper case sequence manipulation

2016-11-23 Thread Bruce Van Allen
Hey Rob, Your Search/Replace patterns work over here - BUT, make sure in the Find dialog that you have "Case sensitive" checked. Also, here's a mod of your pattern that will also put the spaces before the years, by accepting a number (\d) as an alternative to the upper case letter: Find:

Re: Red "Evaluation Ended" text

2016-12-14 Thread Bruce Van Allen
On 12/14/16 at 1:19 PM, edi...@troynovant.com (Robert W. Franson) wrote: BBEdit is my favorite application. I certainly spend more time in it than in any other, and it’s the only one I leave open 24/7, always. I know we're not supposed to pile on with me-too's on this list, but... Ditto.

Re: trimming + grep + applescript

2017-04-15 Thread Bruce Van Allen
Hi, This works over here: tell application "BBEdit" activate set pathstring to "/Users/me/Desktop/testfile.txt" replace "(^\\s*|\\s*$)" using "" searching in text of pathstring options {search mode:grep, starting at top:true, wrap around:true} end tell That pattern matches zero

Re: trimming + grep + applescript

2017-04-15 Thread Bruce Van Allen
On 4/15/17 at 7:23 AM, b...@cruzio.com (Bruce Van Allen) wrote: That pattern matches zero or more spaces/tabs ADDED: It also removes blank lines. If you were concerned exclusively with spacebar spaces, change the pattern to "(^ *| *$)" Or, remove spaces and tabs using &quo

Re: trimming + grep + applescript

2017-04-17 Thread Bruce Van Allen
On 4/17/17 at 9:03 AM, t...@me.com (Tom) wrote: To match any whitespace except newlines you can use the Unicode class `\h` Yes. I think the OP was only concerned with spacebar spaces, and maybe tabs. Thanks -- - Bruce _bruce__van_allen__santa_cruz__ca_ -- This is the BBEdit Talk

Re: hide sidebar results in unwanted window resize

2017-04-19 Thread Bruce Van Allen
Hi Tyler, On 4/19/17 at 7:47 AM, tyler.g.ne...@gmail.com (Tyler Neill) wrote: I like being able to toggle the sidebar on and off, but whenever I hide it, the window resizes down, i.e., shrinks accordingly. Save this Applescript to your BBEdit Scripts folder, and remember that you can assign

Re: Shortcuts in dialog boxes

2017-03-01 Thread Bruce Van Allen
On 3/1/17 at 10:22 AM, barb...@signalfx.com (Barbara Snyder) wrote: I would guess that over time, BBEdit has implemented more and more Mac standards, and cmd-x means Cut. I think what Jan Erik meant by Cmd-X is "Command-something", not the traditional forever Mac Cmd-X (cut). I recall that

Re: compare docx files?

2017-07-27 Thread Bruce Van Allen
On 7/26/17 at 10:45 PM, kbr...@mac.com (Ken Brown) wrote: In my case I just wanted to know if the two files were exactly the same or not. It didn't seem at the time that Word's compare file function was telling me what I wanted to know and I needed a second, trusted opinion from BBEdit.

Re: Search pattern works but can't get replace correct

2017-07-02 Thread Bruce Van Allen
On 7/2/17 at 5:54 PM, 19timeswa...@gmail.com (esarbege) wrote: Trying to replace a return with a tab in a specific pattern. Searching for: return, any number of digits, period to replace with tab, originally found digits, period It sounds like your question is about *capturing* - i.e., how

Re: BBEdit 12 Changes Spacebar Mapping in Save Sheet Prompt

2017-10-14 Thread Bruce Van Allen
Looks like something to be addressed in the next point update. > This is the BBEdit Talk public discussion group. If you have a feature > request or would like to report a problem, please email > "supp...@barebones.com" rather than posting to the group. On 10/14/17 5:04 AM, Scott in Pollock

Re: BBEdit 12 columns

2017-10-15 Thread Bruce Van Allen
On 10/15/17 at 8:45 AM, joegillespie2...@gmail.com (jgill) wrote: 06/04/2010,DPC,"'CALL REF.NO. 0552 , TO A/C 0352",300.00,130117.86,"'G J M","'504237-1424", As I read that line, the separated columns are: 06/04/2010 DPC "'CALL REF.NO. 0552 , TO A/C 0352" "'G J M"

Re: Auto-select search selected when text is selected

2017-09-02 Thread Bruce Van Allen
On 9/2/17 at 8:40 AM, buckyjunior...@gmail.com (Bucky Junior) wrote: Contrariwise, if you do have a selection, the odds are pretty good that you want to search in the selection — so why should you have to toggle a check box? Search IN the selection? My most common use case is that some

Re: Auto-select search selected when text is selected

2017-09-02 Thread Bruce Van Allen
On 9/2/17 at 11:17 AM, vr...@sbcglobal.net wrote: So, I would like a way (an option, whatever) for the editor to do the *general* case automatically, without me having to remember to check/uncheck a box. The exceptions are what the box, and shortcut key, are for. But they're the exceptions,

Re: Erratic option-click and drag selection behaviour

2017-11-29 Thread Bruce Van Allen
On 11/29/17 at 5:04 AM, marc.her...@artefact.be (marcherm) wrote: I experience an erratic option-click and drag selection behaviour. At times it works as expected, i.e. the selection is duplicated to where it is dragged. At other times however the selection becomes undone and a cursor is

Re: How to sort a text regarding a specific column

2017-12-13 Thread Bruce Van Allen
On 12/13/17 at 12:53 AM, v...@ghitulescu.de (Vlad Ghitulescu) wrote: It kind of worked… with the exception of the very last line Make sure there is a return at the end of that line ("\n"), because that is part of the pattern. See if that works. -- - Bruce

Re: How to sort a text regarding a specific column

2017-12-12 Thread Bruce Van Allen
Hi Vlad, For some reason, I can't get BBEdit's Sort Lines... Using Search Pattern to work, but this worked: Step 1 - Reverse the sequence of each line's parts: -- Find: ^([\*-]) ([^-]+?) - ([^\n]+)\n Replace: \3 - \2 \1\n This yields: The Beatles - Blackbird - The Beatles - For No One -

Re: BBEdit iCloud LaTeX - How to compile the file?

2017-12-01 Thread Bruce Van Allen
On 12/1/17 at 1:33 AM, ms...@podiuminternational.org (Marek Stepanek) wrote: Control-D is not working. And the worksheet is waiting for an file path and does not accept no commands anymore. Should I switch to the Terminal? (Ah! I just see the same error in the Terminal. But the Control-D is

Re: Duplicate quotation marks

2018-02-03 Thread Bruce Van Allen
On 2/3/18 at 1:55 PM, dav...@earthlink.net (David Brostoff) wrote: > I guess that's the inevitable consequence of an unsophisticated user > using such a sophisticated tool. I appreciate BBedit's many features > but use only a small fraction of them. Just know that questions at any level are

Re: Dreamweaver CC won't connect to BBedit for local/remote file compare

2018-02-13 Thread Bruce Van Allen
On 2/13/18 at 9:36 AM, peterjwh...@gmail.com (Peter White) wrote: Dreamweaver expects to find a file, /usr/bin/bbdiff, but it isn't there. BBedit says the command line files are installed but in finder I see no bbdiff in usr/bin Any idea how I can get this to work? Try

Re: Cannot Post

2018-01-02 Thread Bruce Van Allen
On 1/1/18 at 7:19 PM, tedtoal2...@gmail.com (Ted Toal) wrote: My posts to BBEdit Talk forum are not posting. Your post about tab auto-expand posted twice. HTH -- - Bruce _bruce__van_allen__santa_cruz__ca_ -- This is the BBEdit Talk public discussion group. If you have a feature request

Re: Shell script to make BBEdit the default text editor for 'open -t' and LaunchServices

2018-07-25 Thread Bruce Van Allen
On 7/25/18 at 1:30 PM, krem...@kreme.com (@lbutlr) wrote: defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add \ '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.barebones.bbedit;}' It does not appear to work in beta 4. Just checking:

Re: How do I access an extension?

2018-08-07 Thread Bruce Van Allen
On 8/7/18 at 4:16 PM, barb...@signalfx.com (Barbara Snyder) wrote: I tried that, and it didn't seem to be working, but now it is, so I must have been doing something wrong. Note that if you have some text selected, the counts of characters / words / lines will be only for what's selected.

Re: Way to stop minimised windows appearing on app focus?

2018-10-17 Thread Bruce Van Allen
On 10/17/18 at 11:10 AM, timm...@gmail.com (Karl) wrote: Any update on this? This is almost a dealbreaker for me. Hoping for an expert preference, but I didn't see any in the docs. I think that might be an OS thing, not unique to BBEdit. I tried two other apps and they both did the same

Re: Command-K and Command-R as keyboard equivalents for "Check Syntax" and "Run"

2019-01-16 Thread Bruce Van Allen
On 1/16/19 at 6:27 AM, asheps...@gmail.com (Jeff Shepherd) wrote: Older versions of BBEdit had Command-K and Command-R as keyboard equivalents for "Check Syntax" and "Run", respectively. That functionality seems to have disappeared in BBEdit 12. How do I get those keyboard shortcuts back?

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

2019-01-18 Thread Bruce Van Allen
Here's a place to start, using our friend BBEdit's powers. I copied the sample you provided below into a new BBEdit doc, and then chose the Menu Command Markup -> Utilities -> Translate HTML to Text, with Remove Tags and Convert Paragraphs checked and Convert HTML Entities un-checked. That

Re: Two windows, one updating, one not?

2019-02-21 Thread Bruce Van Allen
On 2/20/19 at 4:06 PM, barb...@signalfx.com (Barbara Snyder) wrote: Is there a feature whereby I could have the same doc open in two windows, but my edits just show up in one of them? So one is reference and one is current state. This could be a case for a version control system such as Git.

Re: Setting default Text Magnification

2019-03-07 Thread Bruce Van Allen
Hi, Here's a simple Applescript that addresses your goal: I saved it as "Magnify.scpt" in my BBEdit Scripts folder: tell application "BBEdit" if (display magnification of text window 1 is 1) then set display magnification of text window 1 to 1.25 else set display

Re: Remove a specific number of characters at the start of each line?

2019-03-21 Thread Bruce Van Allen
Hey Jerry, Just making sure you get that the carat (‘^’) has the specific role of anchoring the search pattern at the start of a line - same way ‘$’ does so for the end of the line. (Of course there’s more to “lines” in regular expressions. But from your comment it seemed useful to clarify

Re: Image won't appear

2019-02-11 Thread Bruce Van Allen
On 2/11/19 at 6:19 AM, list.bbe...@munkynet.org (Sam Hathaway) wrote: On 10 Feb 2019, at 22:14, Bucky Junior wrote: In initializing a new system, one can set up the system to be case-sensitive. N.B.: It is not recommended to do this, at least for your system drive, as many macOS

Re: AS Help: Run Check Syntax on documentWillSave

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

Re: Keyboard shortcut to reverse deletion direction

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

Re: Using external WYSIWYG editor for HTML

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

Re: Using external WYSIWYG editor for HTML

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

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

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

Re: A Preferences Question

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

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

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

Re: strip trailing spaces

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

Re: Balance vs Balance Tags

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

Re: GREP cleanup

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

Re: Bash Syntax Highlighting

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

Re: Regex replacement item for entire line?

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

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

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

Re: RegEx pattern find something but replace on following

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

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

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

Re: RegEx pattern find something but replace on following

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

Re: Counting occurrences of names

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

Re: BBEdit Parsing Help

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

Re: [ANN] BBEdit 13.1.2

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

Re: Saving multiple open files

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

Re: How to actually set an expert preference?

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

Re: How to actually set an expert preference?

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

Re: Protein text to csv?

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

Re: Removing unneeded data from rows

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

Re: Space after line numvers

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

Re: Global Preference for window width?

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

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

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

Fwd: (Case 417198) Need to remove blank lines

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

Re: Need to remove blank lines

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

Re: Moving endnotes to inline

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

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

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

Re: Generating worksheets programmatically

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

Re: Generating worksheets programmatically

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

Re: Stop adding ^M characters

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

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

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

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

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

Re: Where are the replaced files & names?

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

Re: Need way of counting number of occurrences of names

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

<    1   2   3   >