Re: Opening new files at the end of the list of currently opened documents

2017-08-28 Thread Marc Simpson
As far as I'm aware, that 'random position' is alphabetically ordered and not random at all. On Mon, Aug 28, 2017 at 8:14 AM, Wojtek wrote: > Hi! > I've been using TextWrangler for ages (amazing software) and recently > migrated to BBEdit. However both of them share the weird

Opening new files at the end of the list of currently opened documents

2017-08-28 Thread Wojtek
Hi! I've been using TextWrangler for ages (amazing software) and recently migrated to BBEdit. However both of them share the weird quirk - opening document or creating new file results in it being inserted at, seemingly random position in Current Open Documents. Is there an option to always

Re: Grep Pattern

2017-08-28 Thread Sam Hathaway
If we're golfing, why not: Find: .*\. Replace: (Note that there's a space at the end of the find pattern and the replacement string is empty.) Hope this helps! -sam On 28 Aug 2017, at 9:47 AM EDT, Jim Danner wrote: Or, if there's a chance that the text after the last period-and-space

Re: Grep Pattern

2017-08-28 Thread Jim Danner
Or, if there's a chance that the text after the last period-and-space will itself contain a space, find ^.*\. ([^.]+)$ and replace it with \1 (It finds 'stuff that does not contain any periods' after a period-and-space.) On Monday, August 28, 2017 at 3:24:57 PM UTC+2, T Burger wrote: > >

Re: Grep Pattern

2017-08-28 Thread Ted Burger
Find = ^.* (.*)$ Replace = \1 Thanks, Ted *** Ted Burger t...@tobsupport.com * www.tobsupport.com > On Aug 27, 2017, at 12:19 AM, Jasyn Jones wrote: > > I have a text file with 2000 lines of text similar to

Grep Pattern

2017-08-28 Thread Jasyn Jones
I have a text file with 2000 lines of text similar to this: baba /baˈba/ nm. mother bats /bats/ nf. test; v. test bei /bei/ v. keep What I want to do is to find and replace everything up to and including the last period & space, on every line, so the output would look like: mother test keep

Re: How Choose Non-Comment Lines Into New File

2017-08-28 Thread Rich Siegel
On Saturday, August 26, 2017, BeeRich33 wrote: > Hi folks. Can I use "Process Lines Containing...", coupled with "Delete > Lines" and "Copy To New Document" to make a .conf file with only > uncommented lines? 1. Write a Grep pattern that matches only uncommented lines. 2.

Re: How Choose Non-Comment Lines Into New File

2017-08-28 Thread Dave
I'd use something like this (in Terminal): grep -Ev '^[ \t]*(#|$)' /etc/apache2/httpd.conf > newfile.conf It means, "grep, using an *E*xtended regular expression, returning only non-matching lines (in*v*ert), lines with a '#' or the end of the line preceded by zero or more spaces or tabs."

Re: Text Factory: replace found string with contents of file...

2017-08-28 Thread Roland Küffner
Hi Scott, maybe there is some way to do this with a text factory. BBEdit has the nice #bbinclude function (check the manual for details). So, in the first step, i would replace the search term with something like this: #bbinclude "/path/to/substitution/file.txt" After that „Markup > Update >