Ligatures not working in High Sierra

2017-10-09 Thread 'Gareth Simpson' via BBEdit Talk
Hi 

I'm using the Fira Code font for its ligature support.  It seems like since 
the upgrade to High Sierra this has stopped working.

I reapplied the defaults.write thing to turn it on again after the upgrade 
- both globally and specifically for that font - and it doesn't seem to be 
working any more.

Has anyone else seen this?

Cheers

Gareth

-- 
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: Grep help

2017-10-09 Thread Lee Hinde
thanks.

On Sun, Oct 8, 2017 at 9:24 AM, Roland Küffner 
wrote:

> Although this is the BBEdit forum, I would recommend good 'ol "sed" from
> the command line for this job. Something like this should work:
>
> sed '/new.html
>
> to do it on all files in the working directory:
> find . -name '*.txt' -exec sed -i '' '/
> Or, less cryptic, open the file in vim. Here, the same command would be
> :/
> These examples replace every ":" with "" only on lines that contain
> " - please adapt). And of course: try this on copies first - no guarantee,
> that command does not wreak havoc upon your files :-)
>
> To bring this back to BBEdit: It would be a nice addition if BBEdit's
> search window would someday get an additional "only search lines matching a
> pattern" functionality :-)
>
> Roland
>
> On Sat, Oct 7, 2017 at 12:05 AM, Lee Hinde  wrote:
>
>> I've taken over a project and have many many html files with strings like
>> this:
>>
>> 
>>
>> I want to change all occurrences of a semi-colon within a url to
>> something else, like .
>>
>> I started with this search string:
>>
>> (href=\".*);(.*\"[ ,>])
>>
>> and this replacement string:
>>
>> \1\\2
>>
>> The problem is it is only replacing one of the semi-colons (and oddly, to
>> me, not the first one) and I'd like to replace all of them.
>>
>> Pointers would be appreciated.
>>
>>
>

-- 
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: File icons show Opera logo :-(

2017-10-09 Thread Riccardo Perotti
And FYI: this is not an OSX thing. The files have the right icons and open with 
the right applications from the finder.

This is exclusively BBEdit’s behavior/fault: having the wrong icon in the 
“Currently Open Documents” list and the Project’s file list.

Riccardo Perotti


> On Oct 9, 2017, at 1:14 PM, Riccardo Perotti  
> wrote:
> 
> OK, I just discovered something:
> 
> This is not happening to perl files per se, this is happening to *remote* 
> files (opened via sftp browser), which in my case happen to be all perl files.
> 
> I just created a .txt file and a .jpeg file in the remote server. 
> 
> Both get Opera icons when opened via sftp browser.
> 
> This is really annoying!!!
> 
> Any ideas?
> 
> Support?
> 
> Thanks,
> 
> 
> Riccardo Perotti
> 

-- 
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: File icons show Opera logo :-(

2017-10-09 Thread Riccardo Perotti
OK, I just discovered something:

This is not happening to perl files per se, this is happening to *remote* files 
(opened via sftp browser), which in my case happen to be all perl files.

I just created a .txt file and a .jpeg file in the remote server. 

Both get Opera icons when opened via sftp browser.

This is really annoying!!!

Any ideas?

Support?

Thanks,


Riccardo Perotti



> On Oct 6, 2017, at 9:56 PM, Herbert Schulz  wrote:
> 
>> On Oct 6, 2017, at 7:59 PM, Greg Fischer  wrote:
>> 
>> That's file associations and easily changed.
>> No mention of what OS you're on, so:
>> Windows: http://www.thewindowsclub.com/change-file-associations-windows
>> MacOS: 
>> http://www.macworld.co.uk/how-to/mac-software/how-change-default-programs-on-mac-3656510/
>>   (go to the section, "Changing default apps associated with certain file 
>> types"
>> 
> 

-- 
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: Losing Preferences

2017-10-09 Thread F. Alfredo Rego
Hi Patrick,

It will be useful to backup BBEdit’s preferences with git, so we can detect any 
unwelcome changes and revert them whenever Apple decides to “help” (In Spanish, 
we say “no me ayudes, compadre” ;-)

What file(s) should we backup thus?

Thanks.

Alfredo



> On Oct 3, 2017, at 10:41 AM, Patrick Woolsey  wrote:
> 
> We've gotten a few similar reports of prefs trouble, and have already 
> reported this issue to Apple as it appears to be due to a bug in High Sierra 
> (macOS 10.13).
> 
> 
> Regards,
> 
> Patrick Woolsey
> ==
> Bare Bones Software, Inc. 
> 
> 
> 
> On 10/3/17 at 12:29 PM, fletc...@cumuli.com (Fletcher Sandbeck) wrote:
> 
>> Curious if anyone else is seeing this.
>> Since upgrading to High Sierra I've had BBEdit reset itself several
>> times. I find BBEdit using the defaults such as opening files in one
>> window and showing line numbers. And I lose the settings in the
>> find/replace window like my chosen file filter and last used folder.
>> However, neither simply restarting BBEdit or the machine reproduces
>> the issue.
>> 
>> I'm also noticing some oddities in Chrome so I'm not sure if this is
>> BBEdit related or something to do with the new OS. Or, if my flash
>> drive is going. The problem is coincident with the 10.6.8 update to
>> BBEdit, but none of the release notes seem relevant.
>> 
>> [fletcher]
>> 
> 
> -- 
> 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.

-- 
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 and replace hard returns within short lines.

2017-10-09 Thread Jim Danner
For the record,
^.{1,35}\n
matches 1 to 35 characters on a line, followed by a newline - i.e. it would 
not match a line with 36 or more characters. Same for
^.{1,35}$
so this works as long as the line ending is also provided. In contrast,
^.{1,35}
would also match the first 35 characters of a line that is longer than that.

On Monday, October 9, 2017 at 4:39:16 PM UTC+2, Roland Küffner wrote:
>
>
> Unfortunately, regular expressions (as I understand it) can’t match „1 to 
> 35 characters, but only if there are no more than 35 characters on that 
> line“ (that would indeed be a job for sed)
>
>
>

-- 
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 and replace hard returns within short lines.

2017-10-09 Thread Nestor Aguilera
If **every** paragraph ends with a period, you could try to change
only those not of that form, something like

find: ([^\.])\n

replace: \1

or perhaps adding a space at the end of the replacing string.

You might want to consider first hyphenated words (if any): lines
ending with a hyphen just before newline.

Best,

Nestor


On Mon, Oct 9, 2017 at 10:56 AM, Mark C.  wrote:
> So I'm cleaning up a text file that was converted from a PDF file. One of
> the problems is that each line break is a hard return.
>
> I'd like to replace those hard returns.
>
> However, at the end of each paragraph, there is also a hard return, so
> replacing the hard returns will remove all paragraph formatting.
>
> However, the last line in each paragraph is never longer than 35 characters.
>
> Is there a way within BBedit to search for [space] [hard return] [any
> sentence<35 characters [space] [hard return]  and remove that 2nd hard
> return?
>
> I'm guessing I'll have to learn Sed to accomplish this, but thought I would
> ask here first.  Thank you.
>
> --
> 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.

-- 
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 and replace hard returns within short lines.

2017-10-09 Thread Roland Küffner
Hi,

if every line break you’d like to remove would be on a line with reliably
more than 35 characters this would be easy. You could search for:
^(.{35,})\n
and replace it with \1
Unfortunately, regular expressions (as I understand it) can’t match „1 to
35 characters, but only if there are no more than 35 characters on that
line“ (that would indeed be a job for sed)

If every paragraph would have two line breaks (an empty line between two
paragraphs) AND each paragraph line started with a character you could
search for a line break followed by a non-space character:
\n(\S)
and, again, replace that with \1

If paragraphs are not separated by empty lines I’d doubt that there is an
easy way to tell a grep pattern the difference between a „legit“ and an
„unwanted“ line break.

Roland

On Mon, Oct 9, 2017 at 3:56 PM, Mark C.  wrote:

> So I'm cleaning up a text file that was converted from a PDF file. One of
> the problems is that each line break is a hard return.
>
> I'd like to replace those hard returns.
>
> However, at the end of each paragraph, there is also a hard return, so
> replacing the hard returns will remove all paragraph formatting.
>
> However, the last line in each paragraph is never longer than 35
> characters.
>
> Is there a way within BBedit to search for [space] [hard return] [any
> sentence<35 characters [space] [hard return]  and remove that 2nd hard
> return?
>
> I'm guessing I'll have to learn Sed to accomplish this, but thought I
> would ask here first.  Thank you.
>
> --
> 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.
>

-- 
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 and replace hard returns within short lines.

2017-10-09 Thread Jim Danner
If I read your question correctly, you don't want to "remove that 2nd hard 
return": that's the one you want to keep! All the other ones should go.

So we're searching for all lines with 36 or more characters followed by a 
space (correct?) and a newline, and we will replace them with everything 
except the newline.
In the search box, you can (with the *Grep* checkbox checked) 
search for:
^(.{36,} )\n


and replace it with
\1


(the \1 refers to the >35 characters and the space, but not the newline).

On Monday, October 9, 2017 at 4:01:54 PM UTC+2, Mark C. wrote:
>
> So I'm cleaning up a text file that was converted from a PDF file. One of 
> the problems is that each line break is a hard return.
>
> I'd like to replace those hard returns.
>
> However, at the end of each paragraph, there is also a hard return, so 
> replacing the hard returns will remove all paragraph formatting.
>
> However, the last line in each paragraph is never longer than 35 
> characters.
>
> Is there a way within BBedit to search for [space] [hard return] [any 
> sentence<35 characters [space] [hard return]  and remove that 2nd hard 
> return?
>
> I'm guessing I'll have to learn Sed to accomplish this, but thought I 
> would ask here first.  Thank you.
>

-- 
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.


Search and replace hard returns within short lines.

2017-10-09 Thread Mark C.
So I'm cleaning up a text file that was converted from a PDF file. One of 
the problems is that each line break is a hard return.

I'd like to replace those hard returns.

However, at the end of each paragraph, there is also a hard return, so 
replacing the hard returns will remove all paragraph formatting.

However, the last line in each paragraph is never longer than 35 characters.

Is there a way within BBedit to search for [space] [hard return] [any 
sentence<35 characters [space] [hard return]  and remove that 2nd hard 
return?

I'm guessing I'll have to learn Sed to accomplish this, but thought I would 
ask here first.  Thank you.

-- 
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.