Is there a "fit window to contents" command?

2017-06-23 Thread Sam Hathaway
Sometimes I have a small amount of text in a text window and I'd like the window to be just big enough to fit the contents. Is there a command (or, say, series of buckys to hold down while clicking the zoom button) that will do this, or am I condemned to manually resizing the window? This

Re: [Newbie Alert] Search results in new document

2017-06-23 Thread Patrick Woolsey
Yup, that entirely makes sense :) and thus may I also suggest you consider the Text -> Process Lines Containing command. This command can extract all the lines within the frontmost document that contain a specific string (or grep pattern) into a new document which you can then either use and

Re: [Newbie Alert] Search results in new document

2017-06-23 Thread Rich Siegel
On Friday, June 23, 2017, Ton Machielsen wrote: The use case here is log parsing. So i have a log with a lot of information about a lot of objects. I want to strip everything except the information about one specific object, so i want to filter the file showing only

Re: Can BBEdit do Multi-Cursor?

2017-06-23 Thread Patrick Woolsey
On 6/23/17 at 1:46 PM, ton.machiel...@gmail.com (Ton Machielsen) wrote: > I come from VSCode. VSCode had a feature i used a lot, which is > Multi-Cursor. See https://code.visualstudio.com/docs/editor/codebasics > > Does BBEdit has something like that? > Not at present, sorry, though this is

Re: [Newbie Alert] Search results in new document

2017-06-23 Thread Ton Machielsen
The use case here is log parsing. So i have a log with a lot of information about a lot of objects. I want to strip everything except the information about one specific object, so i want to filter the file showing only the lines that contain a specific string. If i can do that, then i don’t even

Can BBEdit do Multi-Cursor?

2017-06-23 Thread Ton Machielsen
Hi all! Again, new to BBEdit. I promise to read the manual later on the plane when i get home. I come from VSCode. VSCode had a feature i used a lot, which is Multi-Cursor. See https://code.visualstudio.com/docs/editor/codebasics Does BBEdit has something like that? Thanks again, Ton. --

Re: [Newbie Alert] Search results in new document

2017-06-23 Thread Patrick Woolsey
First, you can save a couple of steps by using File -> Export as Text to create a file directly from the search results. Next, though there is no option to omit the file & line number, you can easily strip that info via an appropriate grep search & replace, and, if you expect needing to do so

[Newbie Alert] Search results in new document

2017-06-23 Thread Ton Machielsen
Hi all! Just started with BBEdit. How do i export search results into a new document? Currently i do this: Search Copy Search results Open new document Paste Problem here is that in front of every line i get the filename and line number where BBEdit found what i was searching for. I want to