Re: BBEdit using 25% CPU doing nothing ?
Restarting BBEdit makes the CPU-usage go down below 1% with the same windows open... Definitely something to keep an eye on ;-) Keep up the great work! Thanks, FrankS. On Tuesday, October 30, 2012 2:50:54 PM UTC-7, FrankS wrote: Accidentally noticed in the Activity Monitor that BBEdit 10.5 3221 using 25% CPU doing nothing… meaning I'm not compiling anything, no scripts running, just waiting in the background with a number of files open. Doesn't feel right (?). -FrankS. Model Name: MacBook Pro Model Identifier: MacBookPro6,2 Processor Name: Intel Core i5 Processor Speed: 2.53 GHz Number of Processors: 1 Total Number of Cores: 2 L2 Cache (per Core): 256 KB L3 Cache: 3 MB Memory: 8 GB -- -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en 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
Re: Warn when file type is NOT unix (or Mac)?
Here is the script I use for this purpose: *on* documentDidOpen(myDoc) *tell* *application* BBEdit *if* *class* *of* myDoc *is* *not* *text document* *then* *return* *end* *if* *if* line breaks *of* myDoc = Unix *then* *return* *end* *if* *if* line breaks *of* myDoc = Mac *then* *set* lineBreakName *to* old style Mac *else* *set* lineBreakName *to* Windows *end* *if* *set* fn *to* name *of* myDoc *set* lineEndingDialog *to* *display dialog* File \ fn \ has lineBreakName line endings buttons {Convert to Unix, Preserve} default button 1 *set* answer *to* button returned *of* lineEndingDialog *if* answer = Convert to Unix *then* *set* properties *of* *text document* 1 *to* {line breaks:Unix} *end* *if* *end* *tell* *end* documentDidOpen To install: name the script Document.documentDidOpen.scpt and put it in ~Library/Application Support/BBEdit/Attachment Scripts Some kind person at BareBones tech support gave this to me (unfortunately I can't find the email to give proper credit); I made a few tweaks. -- Russell On Tuesday, October 23, 2012 4:16:28 PM UTC-7, Drew Schatt wrote: Is there any way to configure BBEdit to warn when the file type is NOT the default? I typically use Unix (LF) as my file type, and I'd find it helpful if BBEdit would warn me when I'm saving a file that has Windows linebreaks instead. Is there some option that I'm missing? -Drew -- -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en 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
Re: Greppng
On 31 oct. 2012, at 17:40, LuKreme wrote: I want to grep for words in a file that contain 'a' 'b' and 'c' in any order. I also want to find words that contain two c's, even if not together (so access and chance). I might even want words with two c's AND a and b, again in any order. Are you quite sure you want to do that? AB -- -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en 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
Re: Greppng
On 31/10/2012 16:40, LuKreme wrote: I want to grep for words in a file that contain 'a' 'b' and 'c' in any order. I also want to find words that contain two c's, even if not together (so access and chance). I might even want words with two c's AND a and b, again in any order. I feel like I am forgetting something basic. As for most of these things, as text filter is the best solution. This: #! /usr/bin/perl use strict; while () { print; my @hits; my @words = split /\b/, $_; for (@words) { push @hits, $_ if /a/i and /b/i and /c/i or /c.*c/i; } printf • Found: %s\n, join , , @hits if @hits; undef @hits; } will turn The accountant sat in the back of the cab wearing a black cocked hat into The accountant sat in the back of the • Found: accountant, back cab wearing a black cocked hat • Found: cab, black, cocked JD -- -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en 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
Re: BBEdit using 25% CPU doing nothing ?
To quote Rich's announcement about the 10.5 pre-release: One final note: If you run into a bug in a pre-release version, PLEASE DO NOT REPORT THE BUG TO THE LIST. This includes asking about whether others have seen the same problem. Instead, please send a bug report to sup...@barebones.com and we will deal with it there. This will help us keep the list discussion on topic and productive for all list members. Steve On Wednesday, October 31, 2012 11:32:59 AM UTC-4, FrankS wrote: Restarting BBEdit makes the CPU-usage go down below 1% with the same windows open... Definitely something to keep an eye on ;-) Keep up the great work! Thanks, FrankS. On Tuesday, October 30, 2012 2:50:54 PM UTC-7, FrankS wrote: Accidentally noticed in the Activity Monitor that BBEdit 10.5 3221 using 25% CPU doing nothing… meaning I'm not compiling anything, no scripts running, just waiting in the background with a number of files open. Doesn't feel right (?). -FrankS. Model Name: MacBook Pro Model Identifier: MacBookPro6,2 Processor Name: Intel Core i5 Processor Speed: 2.53 GHz Number of Processors: 1 Total Number of Cores: 2 L2 Cache (per Core): 256 KB L3 Cache: 3 MB Memory: 8 GB -- -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en 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
[ANN] BBEdit 10.5 (3223) pre-release
Good { morning, afternoon, evening }, The 10.5 public beta's rolling right along -- thanks to everyone who's taken the time to try it out and let us know how it's working, for better or for worse. :-) A new build is available, with an assortment of fixes for things that turned up in the previous beta release. (For more information about the previous release, please see the post at https://groups.google.com/d/msg/bbedit/LK3uSs1yNoY/0nUiHUVZXesJ.) Most of these correspond to fixes and changes to work in progress; but as always there are also fixes for bugs in what's currently in general release. Note that this is a _pre-release_ version. The intent is to fix bugs and address areas of improvement based on what our customers have reported. However, since the software is at this point not fully tested, there _may_ be bugs and regressions. If this prospect makes you nervous, then sticking with the public release versions is your best course of action. Nobody will be offended if you choose to do so; you're under no obligation to install and use anything but a public release. :-) Following is a summary of the changes in the software since the previous build. The change notes are organized into additions, changes, and fixes, and are annotated where appropriate with case numbers. So if you recognize a number corresponding to a support case that was opened for you, you can now verify that it's been fixed correctly. Please take the time to review the changes before using the new build -- there are a lot of them, and it'll be worth your time. One final note: If you run into a bug in a pre-release version, PLEASE DO NOT REPORT THE BUG TO THE LIST. This includes asking about whether others have seen the same problem. Instead, please send a bug report to supp...@barebones.com and we will deal with it there. This will help us keep the list discussion on topic and productive for all list members. version 10.5 (3223) (10/31/2012) *** The system requirements for BBEdit have changed with version 10. Mac OS X 10.6 is now required (10.6.8 or later recommended). *** BBEdit 10.5 contains extensive internal rework; the primary goal is to achieve proper appearance on Macs with the high-resolution Retina displays, but the opportunity was also taken to remove unnecessary code, and to effect various cosmetic and usability improvements. There will be some drawing glitches and fit-and-finish issues; please report anything that you run into that falls into that category (as well as any other functional bugs that you may encounter in new or changed features). Additions - * [204298] The current process indicator in shell worksheets now has a spinny thing so that you know something's running, and a clicky thing if you want to stop the running thing indicated by the spinny thing. - [208631] When running a shell script from the shebang menu, additional arguments are passed along to the command, so things like: `#!/usr/bin/env python --version` will return `Python 2.7.3` Changes --- * [DOC] [252935] The search logic in Open Counterpart has been improved to cover cases that weren't previously served by strict project-searching logic. Consider this arrangement of files and folders: project/ src/ foo.m inc/ foo.h When in either file, Open Counterpart will now search the siblings of the file's parent for eligible counterparts. By default, the folders will only be searched if they match one of the following names (including wildcards): `inc*`, `source`, `src`, `*priv*`. If you wish to add additional qualifying names, you may do so by setting the `CounterpartSiblingSearchNames` expert preference with a comma-delimited list of folder name patterns: `defaults write com.barebones.bbedit CounterpartSiblingSearchNames -string foo*, bar, *mumble*, wumpus` Any whitespace surrounding names is stripped. - [210560] App state restoration has an indeterminate progress dialog, hopefully hinting that No, we're not hung; we're busy. Fixes - - [205676] Fixed a hang which could occur if a codeless language module had a grep pattern that returned a 0-length match. - [172700] Disable the Replace All command if Selected text only is checked, and the target view has a rectangular selection. - Disable all the Find buttons if the search string is empty. - [173731] Clicks in the text view while the completion panel is displayed both dismiss the completion, and move the insertion point. - [179938] Zip browsers' nodes are sorted alphabetically, not by pack date. - [193678] Changes to the File Filters are reflected immediately in Project Windows. - [193725] Shift Right only adds
Creating a stylesheet in BBEdit
Hi: I'm trying out a Demo Version of BBEdit as I'm looking for a solid HTML/CSS Editor. Things look promising but I can't figure out how to create a new stylesheet. If I'm designing a website from scratch, what are the steps to begin a stylesheet that uses the line numbering and color coding, etc. Do I start with a text doc? An HTML doc? I don't see an option anywhere specifically for a .css document - do I have to set something up in preferences? I mean, I see the palette etc. but what is the procedure? Thanks! -- -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en 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
Re: Creating a stylesheet in BBEdit
Pretty simple: 1. Create a new file (cmd-N) 2. Save as with an extension of .css (cmd-shift-S), name foo.css (or whatever). Or, without saving: 1. create a new file 2. use the little drop menu at the bottom of the frame that says '(none)' and select CSS Or, from terminal: 1. `touch foo.css` 2. `bbedit foo.css` This of course applies to pretty much any file type. There probably are even more ways, but these are the three I find the most simple. - Steve On Wed, Oct 31, 2012 at 5:45 PM, Ted Haughawout tlamars...@gmail.com wrote: Hi: I'm trying out a Demo Version of BBEdit as I'm looking for a solid HTML/CSS Editor. Things look promising but I can't figure out how to create a new stylesheet. If I'm designing a website from scratch, what are the steps to begin a stylesheet that uses the line numbering and color coding, etc. Do I start with a text doc? An HTML doc? I don't see an option anywhere specifically for a .css document - do I have to set something up in preferences? I mean, I see the palette etc. but what is the procedure? Thanks! -- -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en 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 BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en 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