Re: Can't format html when in background?

2019-02-24 Thread John Muccigrosso
On Sunday, February 10, 2019 at 3:03:21 PM UTC-8, Christopher Stone wrote:
>
> NOTE -- BBEdit-Talk is a *user-list.*  Bug-reports need to go to Bare 
> Bones Support.
>
> --
> Best Regards,
> Chris
>
>
Yes, I know. But sometimes a user is doing something wrong, so that things 
that don't seem to work aren't bugs, but user error.  User lists are 
helpful places to sort that out.

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


Can't format html when in background?

2019-02-10 Thread John Muccigrosso
I just discovered (I think) that BBEdit won't format an html doc via 
AppleScript when it's in the background. That means it's necessary to have 
it "activate" first.

Is that correct or am I missing something?

TIA.

PS I'd consider this a bug.

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


Re: Search, start at top and other things

2018-01-22 Thread John Muccigrosso
On Monday, January 22, 2018 at 9:34:40 AM UTC-5, Bernardo wrote:
>
> Thanks for your reply, John.
> Unfortunately, Applescript editor complains about an expected end of line 
> on the word "search" at the first line... I don't know why.
>
>>
>> *set* PREV_SEARCH_STRING *to* current search strings
>>
>>*set* PREV_SEARCH_STRING *to* search string *of* 
>> PREV_SEARCH_STRING
>>
>>
>>
Me either. It could be just a weird copy-paste thing. Try typing it in by 
hand, or maybe it's the more recent version of BBEdit? For that, use 
command-shift-O to open BBEdit's dictionary in the script editor and make 
sure those properties are still there. Meanwhile, this works for me:

*tell* *application* "BBEdit"

   *set* PREV_SEARCH_STRING *to* current search strings

   

   *set* PREV_SEARCH_STRING *to* search string *of* PREV_SEARCH_STRING

   

   *set* theChoice *to* *display dialog* "Search current document for:" 
default answer PREV_SEARCH_STRING

   

   *if* button returned *of* theChoice *is* "OK" *then*

   *set* searchOpt *to* {starting at top:*true*}

   *tell* *window* 1

   *set* findRes *to* *find* text returned *of* 
theChoice options searchOpt *with* selecting match

   *if* findRes's found *is* *false* *then* *beep*

   *set* search string *of* current search strings *to* 
findRes

   *end* *tell*

   *end* *if*

*end* *tell*


For some reason BBEdit doesn't remember the search string if you change it 
in the dialog.


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


Re: Search, start at top and other things

2018-01-21 Thread John Muccigrosso
On Saturday, January 20, 2018 at 8:52:51 AM UTC-5, Bernardo wrote:
>
> OK, I found this applescript that could do the job but, as I'm a total 
> applescript newbie, I don't know how to retreive the last search string 
> (the one which populate the built-in search dialog). This prev search 
> should replace in the following PREV_SEARCH_STRING script.
>
> Thanks for your help.
>
>
> (*
>> This Applescript lets you do a search starting at the top of the current 
>> document, NOT where the cursor is currently positioned
>> Author: Ryan Wilcox
>> Date: June 17, 2014
>> License: Public Domain
>> *)
>>
>> tell application "BBEdit"
>> set theChoice to display dialog "Search current document for:" 
>> default answer PREV_SEARCH_STRING
>> 
>> if button returned of theChoice is "OK" then
>> set searchOpt to {starting at top:true, wrap around:false}
>> set oldSearchString to text returned of res
>> tell window 1
>> set findRes to find (text returned of res) options searchOpt 
>> with selecting match
>> if findRes's found is false then beep
>> end tell
>> end if
>> end tell
>>
>
>
I'm working with a slightly earlier version of BBEdit, but AppleScript 
editor's dictionary for BBEdit shows a "current search strings" property, 
so try this at the start of the script:

*set* PREV_SEARCH_STRING *to* current search strings

   *set* PREV_SEARCH_STRING *to* search string *of* PREV_SEARCH_STRING


 I can't seem to directly: 

set PREV_SEARCH_STRING to search string of PREV_SEARCH_STRING


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


Re: BBEdit for Writers

2017-10-20 Thread John Muccigrosso
On Thursday, October 19, 2017 at 2:36:54 PM UTC-4, Jan Erik Moström wrote:
>
> I found it very cumbersome to write latex and when I get 
> some spare time I'm going to invest that time trying to find the best 
> way to write in markdown but convert to latex so I can get the 
> formatting right (I know about some tools but I have some specific 
> requirements that I need to investigate). 
>
>
I'd strongly suggest pandoc for this, which is probably on your list 
already. If you have some latex knowledge already, you can play with the 
template to get output you like.

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


Re: BBEdit 12 major "thrust"/purpose and other grand ideas or concepts

2017-09-08 Thread John Muccigrosso
On Thursday, September 7, 2017 at 12:11:02 PM UTC-4, Rich Siegel wrote:
>
> > > 3. "Hear the lamentations of their women." 
>
> > Does this imply that your enemies don't also have lamenting men? Because 
> I 
> > know a guy. ;-) 
>
> 3. "Hear the lamentations of their [wo]men." 
>
> Management regrets the error. 
>
> :-), 
>

Well, 

(wo)?men

if you're going to find them all. 

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


Show files git ignores

2017-06-11 Thread John Muccigrosso
I see that this option is in the bottom toolbar(?) of a folder window, but 
is there a place to set its default inside the prefs? This seems to be the 
`DiskBrower: showGitIgnoredItems` preference.

TIA.

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


Re: Control-drag to duplicate

2017-04-25 Thread John Muccigrosso
On Tuesday, April 25, 2017 at 6:25:57 AM UTC-4, ollie wrote:
>
> Option, in place of Control, is the magic key for drag–drop copy–paste in 
> BBEdit.
>

And in the standard Mac OS for many years. 

For me, control-dragging in Word (2011?) gives me a menu asking what I want 
to do, which is  more control-like behavior.

(Originally there was no control-key on the Mac keyboard, and now control 
normally is confined to contextual-menu stuff, at least for native apps.)

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


Re: Text Filter cannot handle Umlauts (ä,ü,ö)

2017-04-05 Thread John Muccigrosso
On Wednesday, April 5, 2017 at 5:49:06 AM UTC-4, Christopher Stone wrote:
>
> On 04/05/2017, at 01:08, Lagim  wrote:
>
> #!/bin/sh
> locale
>
> is:
>
> LANG=
> LC_COLLATE="C"
> LC_CTYPE="C"
> LC_MESSAGES="C"
> LC_MONETARY="C"
> LC_NUMERIC="C"
> LC_TIME="C"
> LC_ALL=
>
> It seems, there's something wrong with the configuration of BBEdit. But 
> how can I correct that?
>
> --
>
> Aha!  I've seen *that* before...
>
> When I first transitioned to Sierra I had this same strange issue going on.
>
> I reported it to Bare Bones, and we were NOT able to find a solution 
> within BBEdit.
>
> The problem only occurred when I had more than one language available in 
> my keyboard input sources (IIRC).
>
> Patrick at Bare Bones was unable to reproduce my issue at the time 
> (mid-January).
>
> What I did on my system that finally corrected the issue was to place the 
> following lines in my ~/.profile file.
>
> export LANG="en_US.UTF-8"
> export LC_ALL="en_US.UTF-8"
>

I've got it too! I haven't noticed any problems due to it, but I did make 
the changes to my bash profile file. I too have multiple keyboards enabled. 

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


Re: Using a Text Factory to remove white space

2017-02-08 Thread John Muccigrosso
If you really want all white space (tabs, newlines, etc) then use "\s+" as 
the search pattern.

This is such a fast search and replace, I'd probably use the usual dialog 
or write a quick perl or shell script for it.

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


Re: Trailing space (and git?)

2016-12-31 Thread John Muccigrosso
On Saturday, December 31, 2016 at 12:04:27 PM UTC-5, Rich Siegel wrote:
>
> On Saturday, December 31, 2016, John Muccigrosso 
> <jmuc...@gmail.com > wrote: 
>
> >I've got a text file (.txt) that BBEdit keeps trimming trailing 
> >spaces in, even though that preference is not selected (nor is 
> >there a special language pref for it). This doesn't happen with 
> >other files. This particular file is in my git repository, so 
> >could that be it? Is there a (hidden) pref somewhere? 
>
> This is probably the result of a ".editorconfig" file in the 
> project directory, at or above the directory containing your 
> file. Such files are usually used to enforce style standards 
> within a particular project. 


Bingo! 

Thanks, Rich. 

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


Trailing space (and git?)

2016-12-31 Thread John Muccigrosso
I've got a text file (.txt) that BBEdit keeps trimming trailing spaces in, 
even though that preference is not selected (nor is there a special 
language pref for it). This doesn't happen with other files. This 
particular file is in my git repository, so could that be it? Is there a 
(hidden) pref somewhere?

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