Re: annoying pause with brackets

2012-12-14 Thread Oliver Taylor
On Dec 13, 2012, at 10:58 PM, KAG  wrote:

> So moving from left to right across this generates lots of unpleasant pauses. 
> But I don't want to turn off the highlighting that occurs when I type the 
> closing characters ) ] }


>From the 10.5 release notes:

> When you use the right-arrow key to navigate over a closing delimiter (right 
> paren/brace/bracket/curly quote), the opening delimiter will be briefly 
> highlighted. If you wish to turn this off, there's an expert pref:
> 
> defaults write com.barebones.bbedit FlashBalancePointsWhenNavigating -bool NO

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

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: 





Wrap List Text Filter

2013-01-23 Thread Oliver Taylor
I write lists in the following format:

1. Lorem ipsum dolor sit amet.
2. Consectetur adipisicing elit, sed do eiusmod
   tempor incididunt ut labore et dolore magna
   aliqua.
3. Ut enim ad minim veniam, quis nostrud
   exercitation ullamco laboris nisi ut aliquip
   ex ea commodo consequat.
4. Duis aute irure dolor.

Hard-wrapped, indented, in this case wrapped at ~50 characters.

I do this all the time. Is there a text filter out there that wraps, and/or 
re-wraps, lists in this format? My Unix-fu is not strong enough for this one.

•

I've also attached the text factory I currently use for making numbered lists 
from the selected lines.

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

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: 



<>

Re: Wrap List Text Filter

2013-01-30 Thread Oliver Taylor
On Jan 23, 2013, at 11:15 AM, Oliver Taylor  wrote:

> I write lists in the following format:
> 
> 1. Lorem ipsum dolor sit amet.
> 2. Consectetur adipisicing elit, sed do eiusmod
>tempor incididunt ut labore et dolore magna
>aliqua.
> 3. Ut enim ad minim veniam, quis nostrud
>exercitation ullamco laboris nisi ut aliquip
>ex ea commodo consequat.
> 4. Duis aute irure dolor.
> 
> Hard-wrapped, indented, in this case wrapped at ~50 characters.
> 
> I do this all the time. Is there a text filter out there that wraps, and/or 
> re-wraps, lists in this format? My Unix-fu is not strong enough for this one.

It turns out my regex-fu is stronger than I thought... For anyone who's 
interested:


#!/usr/bin/ruby

a = ARGF.read

# Unwrap the list
a = a.gsub(/(\n[ \t]+)(?=[^\n]|\Z)/, "")

# Wrap to 77 Characters
a = a.gsub(/(.{1,77})( +|$)\n?|(.{77})/, "\\1\\3\n")

# Indent wrapped-lines
a = a.gsub(/^(?![\d\s])/, "   ")

print a


-- 
-- 
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 Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GREP beginning of document / Add text to the start of a file

2013-01-31 Thread Oliver Taylor
On Jan 31, 2013, at 11:05 AM, Adam Wright  wrote:

> How do you do a GREP search of the beginning of a document?

\A = beginning of document

\Z = end of document

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

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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to change character of invisible space from a diamond to a simple grey centered dot?

2013-02-19 Thread Oliver Taylor
On Feb 17, 2013, at 8:56 AM, lawlist  wrote:

> I miss the grey centered dot that is available in other programs to indicate 
> invisible spaces.  The diamond shape is so intrusive, that I do not use the 
> feature.  Has anyone figured out how to change the diamond shape to something 
> more palatable?


There's nothing you can do about that aside from make a feature request.

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

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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Grep help?

2013-02-20 Thread Oliver Taylor
On Feb 20, 2013, at 5:47 PM, Lorin Rivers  wrote:

> Oh Mighty Ones,
> 
> I have a big list that looks something like this:
> speedo_705494_001.jpg
> speedo_7051210_418.jpg
> speedo_7051210_418_bk.jpg
> speedo_7051200_041.jpg
> speedo_7051200_041_bk.jpg
> speedo_7051200_041_bk_a.jpg
> speedo_7050911_173.jpg
> speedo_7050911_173_bk.jpg
> speedo_7050804_001.jpg
> speedo_7050804_001_bk.jpg
> speedo_705032_001.jpg
> speedo_705031_001.jpg
> 
> and I want to make it like this:
> speedo_705494_001.jpg
> speedo_7051210_418.jpg,speedo_7051210_418_bk.jpg
> speedo_7051200_041.jpg,speedo_7051200_041_bk.jpg,speedo_7051200_041_bk_a.jpg
> speedo_7050911_173.jpg,speedo_7050911_173_bk.jpg
> speedo_7050804_001.jpg,speedo_7050804_001_bk.jpg
> speedo_705032_001.jpg
> speedo_705031_001.jpg
> 
> 
> My brain is dead and I can't figure it out.
> 
> Anyone have a suggestion for a regex that will accomplish this?

Search: \n(.+bk(_a)?.jpg)+
Replace: ,\1

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

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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Grep help?

2013-02-21 Thread Oliver Taylor
On Feb 21, 2013, at 3:58 AM, Kendall Conrad  wrote:

> I had to switch the \n to \r before that would work.

\n and \r are interchangeable in 10.5+

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

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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Pass Parameters to Text Filter Script

2013-02-24 Thread Oliver Taylor
On Feb 24, 2013, at 2:55 AM, ctfishman  wrote:

> Is it possible to pass parameters to a script being run as a text filter?

No. You'd have to use an AppleScript to prompt for parameters and pass those to 
your script (or something similar).

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

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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Way to stop minimised windows appearing on app focus?

2013-03-02 Thread Oliver Taylor
On Mar 2, 2013, at 3:30 PM, Melissa  wrote:

> I don't know if this just my missing something, but when I have all open 
> windows in BBEdit minimised, switch focus to another app, and then later 
> click on BBEdit in the dock to give it focus again, is there a way to prevent 
> it from un-minimising the "most recent" window from the Dock? It doesn't do 
> this if I give BBEdit focus again via command-tab, but I prefer the Dock 
> method.

This is standard system behavior, no way around it as far as I know.

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

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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Regaining mindshare for BBEdit

2013-03-18 Thread Oliver Taylor
I usually abstain from these things, but I'm a little bored, so why not...


On Mar 18, 2013, at 11:27 AM, David Foster  wrote:

> Sublime Text and TextMate have all but supplanted BBEdit in terms of 
> mindshare in the circles that I travel in.

I would agree with that. There are a thousand reasons, but it ultimately comes 
down to the fact that bare bones has a vision for what BBEdit should be, and 
it's not anything like TextMate or Sublime, or any of their clones. The people 
on this list use BBEdit for their own reasons - and I would agree that those 
reasons are slowly being thinned down, but they are far from gone. Nothing else 
matches BBEdit's support, documentation, and ease of use - but not everyone 
priorities these things, a lot of people want (or think they want) raw power 
and flexibility - something TextMate and Sublime put front and center.

> However BBEdit is an extremely capable editor and it bothers me that new Mac 
> users are either not finding it or not selecting it. More competition is 
> better.

BBEdit has a widely-known reputation as an extremely stable and powerful 
editor. Perhaps for some people this doesn't matter as much as other things...

> ** Highly recommend adding videos for feature highlights and tutorials. 
> People don't seem to read long bodies of copy these days.

I agree with this. Bare Bone's website is decidedly old-school. I'd love to see 
someone like brett terpstra show-off how cool BBEdit is in some screencasts. I 
also think Bare Bones could to more to collect community-written packages (etc) 
that extend BBEdit in great ways - but this is a challenge all editors face.

> * Improve program aesthetics
> ** Good job with the retina display support, but there is still more work to 
> do...

I completely disagree. BBEdit is in a class by itself in this regard. While it 
may not be as flashy as something like Coda or Espresso, the consistency of the 
interface is peerless and delicate considerations abound. Take for example how 
far the first line of text is from the top of the window. Almost every editor 
I've ever used crams that first line up against the edge of the window, only 
BBEdit pads it by a few pixels. Or the subtle 1px borders on the line-highlight 
- it's beautiful! Also consider the dialogue boxes, each is very fell 
thought-out and easy to understand - I've never come across an unintelligible 
alert while using BBEdit.

> ** Incremental find

I completely agree with this one. Incremental find that's good enough, and 
quick enough to use, for skipping around lighting-fast inside a paragraph is 
something I sorely miss from other editors. I've written my own scripts for 
this, but a built-in solution would be better.

> ** The language-specific text snippets built-in to TextMate are quite useful. 
> It is possible to create custom scripts in BBEdit that have similar 
> functionality, but it is clumsy.

I agree that more could be done there. BBEdit has clipping sets that change 
based on the language of the front-document, why not scripts or text filters? 
Binding something simple like  to different scripts based on language 
makes the editor feel better - the editor does the right thing regardless of 
the language.

In particular I'm disappointed that text filters act on the selection or the 
entire document, more fine-grained control over what the filter should apply to 
when there is no selection would be nice.

What makes TextMate (and clones like Sublime) so powerful and flexible is the 
user-accessable document-scoping system. This allows the same keybinding to 
behave in radically different ways depending on the language and the exact 
position of the insertion point in the document. In my opinion this is 
obviously the way all text editors should behave, and anything else will 
eventually be outdated. But for now I get along just fine in BBEdit.

> *** Naturally making BBEdit cross-platform would likely be very 
> development-intensive.

Hahaha, "development intensive", that's good.

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

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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Regaining mindshare for BBEdit

2013-03-19 Thread Oliver Taylor
On Mar 19, 2013, at 3:58 PM, Ted Burger  wrote:

> I am still running 9.6.3 but I simply highlight a word then hit CMD-E, now 
> each CMD-G finds the next occurrence of the word.
> Am I missing something???

No, this works very well, I use it all the time.

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

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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Regaining mindshare for BBEdit

2013-03-19 Thread Oliver Taylor
On Mar 19, 2013, at 4:02 PM, Steve deRosier  wrote:

> BBones-> please have cmd-e populate the live search text. It annoys me
> (every day!!!) that cmd-e works just fine for the main search, but
> doesn't work on live search.

Oh wow, I didn't know that one. 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

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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Regaining mindshare for BBEdit

2013-03-19 Thread Oliver Taylor
On Mar 19, 2013, at 5:07 PM, Bruce Van Allen  wrote:

> "X Editor does Vaguely Described Feature(TM) better than BBEdit."
> 
> Love it.
> 
> Just in case we're really missing something, anyone care to define 
> "incremental find" and explain how it differs from what BBEdit offers?

It's true, I was vague, let me now be clear:

First, BBEdit doesn't do backwards live-search. You can hit a hot-key and 
search backwards for the word you just typed in the "Live Search" field, but 
BBEdit always searches forward to begin with. It's especially jarring when the 
previous match was only a line away, but the next match is half the document 
away - jump forward half a document, then jump back and reorient yourself, 
you're screwed if you type the wrong thing - which leads me to...

Second, BBEdit moves the insertion point as you type, even if you delete your 
live-search or cancel it. Thus, if you type the wrong string you have to hunt 
for the spot you started the search from - effectivly, there is no cancel. Vim 
remembers where you were can takes you back if you change your mind - this is 
especially handy for quickly jumping to another part of a document just to peak 
at it, also handy for bad typists (me).

Third, both Sumblime and Vim optionally accept regex in their live-search. (one 
of the reasons I developed my own script)

Fourth (and I recognize that this is a personal preference), the panel that 
pops down moves the content of the window down 2 lines (to make room for the 
panel). I'm accustomed to looking at the bit of text I want to jump to, and 
typing (in Vim) "/text" and just being taken there, by moving the text down 
when I search I can't look at the place I want to go to, I have to reorient 
myself.

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

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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: text complation delay

2013-04-02 Thread Oliver Taylor
On Apr 2, 2013, at 7:07 AM, stratboy  wrote:

> Hi, how is it possible to lowering (maybe to zero) the delay I've got to wait 
> to see code completion menu?

BBEdit has great built-in help:

When automatic text completion is enabled, the default completion interval is 
half a second. To adjust:

defaults write com.barebones.bbedit Editor_AutoCompleteDelay -float 0.5

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

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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Radical changes to BB-EDIT 10's Search Dialogue box?

2013-04-16 Thread Oliver Taylor
On Apr 15, 2013, at 11:56 PM, David A. Lewis  wrote:

> So, where have they hidden this feature in the new "improved" version 10?   
> PLEASE bring it back, (or advise on where it went! :O)

I'm new to v10 so I can't speak to the removal of this, but I will say

1. a quick grep addition of ".*" to your search term would do this - and might 
even be faster than clicking a check box.
2. you can create a custom applescript that searches and extends the selection.

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

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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: I can't change the default font in BBedit 10.5.3

2013-05-04 Thread Oliver Taylor
On May 1, 2013, at 7:24 PM, Aethon  wrote:

> it's not just the font that's the problem.  The other settings (such as width 
> of page text) aren't sticking either.

I've had some problems with font selection in the past. Try moving bbedit's 
preference files to the desktop (you can always move them back) and restarting 
bbedit. See if that helps. 

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




Re: Dual Panels

2013-05-04 Thread Oliver Taylor
On May 3, 2013, at 7:38 PM, a de jesus  wrote:

> Is there anyway to have two panels in BBEdit 10 so that my HTML file is one 
> panel and CSS file in another panel. With both panels in one single window? 

Bbedit only does 1 window per file.

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




Re: Insertion inside empty comments

2013-05-09 Thread Oliver Taylor
On May 9, 2013, at 4:00 AM, Riccardo Perotti  wrote:

> I used to be able to hit "Un/Comment Selection" in an EMPTY selection and get 
> an empty comment with the insertion point *INSIDE* not after it:
> 
> WANT:
> 
> /* #insertion# */

I get this behavior on my mac. Looks like the problem is specific to your 
installation.

> Currently using 10.5.3 (3280) with expert prefs:
> % defaults read com.barebones.bbedit CommentWholeLineWithInsertionPoint
> % 0
> % defaults read com.barebones.bbedit PreferLineCommentsWhenCommenting
> % 0

These might be the culprits. Try removing them and see if you get the behavior 
you want.

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




Re: Arbitrary Keybindings in BBEdit

2013-05-10 Thread Oliver Taylor
On May 10, 2013, at 7:52 AM, Christopher Finazzo  
wrote:

> I would much rather be able to assign a short name and then be able to press 
> Tab in order to complete a tag or other block of text. 

This is provided by BBEdit's auto-complete function. Type the clipping-name 
then select from the menubar "Edit > Complete" (which you can assign a shortcut 
to). See page 93 of the user manual. This works for clippings (which can 
contain scripts), ctags, dictionary words, and words elsewhere in the document.

Is that what you're talking about?

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




Show Invisibles In Selection

2013-05-21 Thread Oliver Taylor
I've always loved how Pages shows invisible characters (like line-breaks) when 
you've selected them, like this:



And I've always wanted the same thing in BBEdit. I like to see them, but having 
them always on can be cluttering.

A bolt of inspiration hit my brain today and I figured out how to do it, just 
turn on "Show Invisible Characters" and set the "Spaces" color to the same as 
the background (in whatever theme you're using. This is what you get:




Not great for every circumstance, but I love this trick.

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


<><>

Re: New Text Document… for project, keyboard shortcut?

2013-05-24 Thread Oliver Taylor
On May 23, 2013, at 8:18 AM, Jeremy Cowgar  wrote:

> I do not see any other way of creating a new file in my project. If I press 
> Command-N, a new window entirely is created, which isn't what I want 99% of 
> the time. 99% of the time I want a new document for my current project.

The short answer is: there is no built-in way to do this. But it has been 
discussed here on the board once or twice. I recommend sending 
supp...@barebones.com a feature request.

But you could make something in Applescript that makes a new document inside 
the front-most project's directory, or moves the mouse around to the right 
places. I'll leave the specifics of that to someone with a better 
working-knowledge of Applescript.

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




Re: Best way to filter HTML

2013-05-25 Thread Oliver Taylor
On May 25, 2013, at 1:13 PM, Rob Lewis  wrote:

> Never tried any of BBEdit's fancier features. What would be the best way to 
> take a file of HTML and extract just the code between the following tag 
> pairs: 
> 
>  and 

Is "Markup > Utilities > Remove Markup" what you're looking for?

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




Re: Can't Remap Option-Delete

2013-06-01 Thread Oliver Taylor
On Jun 1, 2013, at 5:36 AM, Ramsey Shehadeh  wrote:

> I'm trying to remap the Option-Delete key combination to call a custom 
> AppleScript, but not having much success. 

Option and command cannot be bound to custom shortcuts by themselves. You have 
to include control, shift, etc. BUT, control can be bound this way. I have 
control-delete mapped to a custom "delete-word" script.

I've also remapped my caps-lock key to control - and now I hate any shortcut 
that uses option.

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




Re: [ANN] BBEdit 10.5.4

2013-06-05 Thread Oliver Taylor
Oh man, thanks for this one:

> Added expert prefs help for the ExtraSpaceInTextViews setting. 

I had no idea that was there.

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




Re: duplicate content - find & replace

2013-06-10 Thread Oliver Taylor
On Jun 10, 2013, at 3:34 PM, The Ultronz  wrote:

> what I mean is lets say you have a text document that is a list of names
> there are several "Bob's" and "Tom's" etc.

There are many ways to do this, can you provide a sample file?

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




Re: Select word

2013-07-03 Thread Oliver Taylor
On Jul 3, 2013, at 6:36, Rick Yentzer  wrote:

> What I'm looking for is a way to select a word and then select more words 
> until I get the selection I want.
> 
> I'll use this as an example:
> "grunt-contrib-nodeunit"
> 
> If my cursor is in the middle of the word "contrib" then I can double click 
> to select it, or I can use John Gruber's Select Word script.
> If my cursor is in the middle of "contrib" and I want to select the text 
> between the double quotes, what is the best solution?

See here: http://olivertaylor.net/bbedit_movement/

The select word script in that package assumes hyphenated words should be 
selected when you want to "select word".

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




Re: Currently Open Documents

2013-07-12 Thread Oliver Taylor
On Jul 12, 2013, at 1:34 AM, j...@kilroyjames.co.uk wrote:

> Is someone genuinely sat there saying - yes I know people want these windows 
> to be flexible, but they are wrong they should be rigid and tiny.

I can't speak for Bare Bones, but that's probably exactly what they're 
thinking. My guess is that they don't want to add the complexity, or, you know, 
they're too busy adding features they think are more important.

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




Re: Block-style comments in BBEdit 10? (not a newbie, just really puzzled)

2013-07-24 Thread Oliver Taylor
On Jul 24, 2013, at 9:59 AM, Laura Gutman  wrote:

> When I choose the Un/Comment Text command (from the menu or by keyboard 
> shortcut), if I have multiple lines of code selected, I would like a 
> block-style comment applied/removed.


>From the "Expert Preferences" section of BBEdit's Help:

> When using the Un/Comment command, BBEdit will use the line comment delimiter 
> for the document's language whenever possible. If you would prefer to use 
> block comments whenever possible:
> 
> defaults write com.barebones.bbedit PreferLineCommentsWhenCommenting -bool NO
> 
> When using the Un/Comment command, if nothing is selected, BBEdit will use 
> the line comment delimiter to comment (or uncomment) the entire line. If you 
> would prefer that BBEdit insert the line-comment delimiter at the insertion 
> point instead:
> 
> defaults write com.barebones.bbedit CommentWholeLineWithInsertionPoint -bool 
> NO


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




Re: Soft Wrap and search & replace project file

2013-08-10 Thread Oliver Taylor
On Aug 10, 2013, at 1:34 PM, Joshua Wilson  wrote:

> So is there any way to either fix my preferences to do the softwrap for the 
> project

I can think of a few things that might help:

  1. Set BBEdit's default to soft-wrap
  2. Set a hot key for your soft-wrap preference

But having a number after your log files' extension is problematic.

> create an applescript that will both soft wrap to the window width as well as 
> search and replace >< with >\r< automatically or where I can at least bind it 
> to a key?

The following applescript will do both, you can assign it a hot-key. There's 
probably a way to replace in the frontmost project, but I'm not certain how to 
do that.

tell application "BBEdit"
tell window 1 to set soft wrap text to true
replace "><" using ">\\n<" searching in text of front window options 
{search mode:grep, starting at top:true, wrap around:false, backwards:false, 
case sensitive:false, match words:false, extend selection:false}
end tell

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


Re: Resizeable 'Currently Open Documents' frame

2013-08-19 Thread Oliver Taylor
On Aug 19, 2013, at 10:07 AM, BBunny  wrote:

> Collapsing the project list or opening the Windows palette are not acceptable 
> alternatives. The first takes too much time since I use my project list all 
> the time, and the second takes additional screen real estate. Mac users have 
> come to expect this simple UI convention, so why not give it to them?

This is a forum for users. If you have a feature request you should submit it 
directly to the developers.

About a dozen people have attempted to help you (more than once) work around 
this limitation - that's all this mailing list can do. Is there something else 
we can do to help 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.


Re: Clippings with multiple similarly-named substitution placeholders

2013-09-08 Thread Oliver Taylor
On Sep 6, 2013, at 8:00 AM, Damian Carrillo  wrote:

> Is there anyway to have the second and third <#name#> be replaced with the 
> value I type into the first?

I'd love to be proven wrong, but as far as I can tell this (much vaunted 
TextMate feature) is not possible.

However, you could write an AppleScript that would prompt you for the #name# 
and insert/transform the text you want.

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


Re: repalcement patterns

2013-09-14 Thread Oliver Taylor
On Sep 14, 2013, at 3:19 PM, Ken Lanxner  wrote:

> How do I correctly write something like
> 
> \113
> 
> to indicate I want the replaced value to be the 1st found subpattern 
> immediately followed  by 13 --- not the the 11th found subpattern followed by 
> 3?


Page 176 of the User Manual might be helpful.

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


Re: Help - How to Insert list of text strings into sequential placeholders

2013-09-24 Thread Oliver Taylor
On Sep 24, 2013, at 7:54 AM, Kip Shaw  wrote:

> Is there a way to automatically grab sequential items from a list (ideally 
> from the clipboard) and insert them into sequential placeholders?

When I need to do this I use "Text > Prefix/Suffix Lines".

If it's the same markup every time you could automate pasting the list and 
marking-it-up using Applescript - but my kung-fu is not strong enough for that. 
Perhaps someone else on the list can help you out.

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


Re: insert character in specific places

2013-09-24 Thread Oliver Taylor
On Sep 24, 2013, at 1:18 PM, Timothy Hellum  wrote:

> I have a single column of a thousand or so phone numbers in their 10 
> character string format.  I'd like to add dashes in positions 4 and 7:
> 123-123-1234

Assuming the phone numbers are always formatted as "1231231234"...

Search: (\d{3})(\d{3})(\d{4})
Replace: \1-\2-\3

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


Re: is it possible to customize "right click" contextual menu

2013-10-12 Thread Oliver Taylor
On Oct 10, 2013, at 3:41 PM, JT  wrote:

> is it possible to customize "right click" contextual menu when selecting text?

No.

But there are several ways to make accessing the menu-item easy.

1. you can assign a keyboard shortcut to any menu item in "BBEdit > Preferences 
> Menus & Shortcuts"

2. typing shift+command+/ - you can search even menu item using the keyboard. 
Very handy.

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


Surround Selection With...

2013-10-19 Thread Oliver Taylor
I'm attempting to create a script that surrounds the selected text with paired 
characters - in a smart way.

For example, if you want to surround the selection with  then just 
enter < and the script will do the right thing. I've got that working, but I'd 
love to make it a bit better.

For example, I might to surround the selection like this: <<>>. Or 
like this:  ## . Or like this: (( *selection* ))

Can anyone help me figure this out? Maybe this is beyond a simple script like 
this?

Here's what I've got so far...

--Display Dialog and Get Input
display dialog "Surround Selection With..." default answer ""

--Get Answer & Return Comment
set surround to (text returned of result)

tell application "BBEdit"
try
-- test to see if input has a matching character - {}()[] etc.
-- then surround the selection with the pair
if surround is in {"{"} then
set selection to "{" & selection & "}"
else if surround is in {"("} then
set selection to "(" & selection & ")"
else if surround is in {"["} then
set selection to "[" & selection & "]"
else if surround is in {"“"} then
set selection to "“" & selection & "”"
else if surround is in {"‘"} then
set selection to "‘" & selection & "’"
else if surround is in {"<"} then
set selection to "<" & selection & ">"
else
-- if there's no match then just surround with the 
input on both sides
set selection to surround & selection & surround
end if
end try
end tell

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


Re: Surround Selection With...

2013-10-20 Thread Oliver Taylor
> On Oct 20, 2013, at 1:01 AM, Den Dowling  wrote:
> 
> Have you tried Clippings in BBEdit yet?

Oh yes, of course.

But I can't possibly anticipate all the characters I might want surround the 
selection with. This script allows you to surround with anything the user can 
think of. Plus, it would be a single hot-key for all surrounds, which I like 
the idea of. 

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


Re: Character palette popup in 10.9

2013-11-03 Thread Oliver Taylor
> On Nov 3, 2013, at 12:27 PM, LuKreme  wrote:

> 
> Is it just me, or does the 10.9 character palette (command-control-space) not 
> work in BBEdit?

Works for me. You might have to assign the menu item that shortcut. 

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


Re: [ANN] BBEdit 10.5.6 (3325) pre-release

2013-11-03 Thread Oliver Taylor
On Oct 28, 2013, at 6:46 PM, Rich Siegel  wrote:

> *   There is now an expert preference which will cause the "Open File by
>Name" window to close after using the "Open" button:
> 
>`defaults write com.barebones.bbedit CloseOFBNWindowAfterOpeningSelection 
> -bool YES`

Oh sweet mercy thanks for this.

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


Re: xcrun command

2013-11-11 Thread Oliver Taylor

> On Nov 9, 2013, at 8:28 PM, John0325  wrote:
> 
> I don't want to install the developer tools. But it asks me anyways every 
> time. How can I disable this?

http://www.barebones.com/support/bbedit/faqs.html#xcrun

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


Re: Markdown and HTML auto complete

2013-11-21 Thread Oliver Taylor
On Nov 20, 2013, at 6:37 AM, Rick Yentzer  wrote:

> I would like the ability to autocomplete html within an .md file.

What BBEdit auto-completes is largely a function of the current language 
setting. By default, the Markdown language does not have html tags in its 
auto-complete library (I’m paraphrasing here).

You could switch the language of the current document on the fly (doesn’t 
matter what kind of document it actually is). Below, I’ve pasted an applescript 
to toggle the front document’s language between HTML and Markdown. Assign that 
a hotkey and then just switch depending on what kind of auto-complete you want 
on a moment-by-moment basis. BBEdit is even smart enough to switch clipping 
sets when you switch languages.


tell application "BBEdit"
set docLang to source language of text document 1
if (docLang is "HTML") then
set source language of text document 1 to "Markdown"
else
set source language of text document 1 to "HTML"
end if
end tell


> Currently, when I type a tag element, I'm able to auto close it. I can select 
> an element from the menu or shortcut key, such as an image or a link, but I 
> cannot select the Edit Markup menu item.

The edit markup menu item only works in Markdown documents when you’re inside 
an html tag.

> Also, BBEdit doesn't handle syntax coloring of html elements in markdown 
> beyond a simple element tag.

BBEdit was never designed for this kind of deep integration of languages. The 
first editor I’m aware of that did it was Textmate. These days Textmate 2 or 
Sublime Text might be more what you’re looking for - though I’m not familiar 
enough with them to promise that.

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


Re: Feature Request: Navigable scaled view of entire file, ala Sublime Text has on right edge

2013-12-06 Thread Oliver Taylor

> On Dec 6, 2013, at 3:12 PM, Jeff Blanding  wrote:
> 
> Is anything like this planned or possible for a future version of BBEdit?

I'd suggest sending an email to supp...@barebones.com - this is a user group, 
we don't know anything about future plans.

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


Re: Want to paste multiple lines to a single line - Is it possible?

2013-12-14 Thread Oliver Taylor
> On Dec 13, 2013, at 6:47 PM, Rick Yentzer  wrote:
> 
> Any recommendations for an "intro to shell scripting?" I'd like to learn more 
> about it.

Apple has a pretty great document on the subject:

https://developer.apple.com/library/mac/DOCUMENTATION/OpenSource/Conceptual/ShellScripting/Introduction/Introduction.html

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


reStructuredText preview filter

2013-12-28 Thread Oliver Taylor
I’m trying to setup a simple Preview Filter for reStreucturedText using pandoc.

Pandoc reads from STDIN and prints to STDOUT - the following works great in the 
terminal:

echo "this is **marked-up** text" | pandoc -f rst -t html

  =>this is marked-up text

My thought (and I’m sure this isn’t correct) was that making a Preview Filter 
would be as simple as a file that looks like this:

#!/bin/bash
pandoc -f rst -t html

…but no luck. Anyone know what I’m doing wrong?

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


Re: reStructuredText preview filter

2013-12-28 Thread Oliver Taylor
On Dec 28, 2013, at 4:02 PM, Maarten Sneep  wrote:

> I suspect that pandoc can’t be found in the environment that is presented to 
> the shell script. Try using the full path to pandoc instead.

Thanks Maarten, that did the trick.

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


Re: Passing a Data File to an External Executable

2014-01-03 Thread Oliver Taylor
On Jan 2, 2014, at 11:51 AM, bfu  wrote:

> I make regular use of the ability to run scripts (of all kinds) from within 
> BBEdit making sure the shebang line is properly set.  I’d like to take it a 
> step further and pass the contents of the current document to something else, 
> for example, graphviz.

Here’s an example of taking the current selection (or document) converting it 
to an html file using pandoc, then opening that file in Safari…

#!/bin/bash
/usr/local/bin/pandoc -t HTML -o ~/Desktop/test.html && open -a Safari 
~/Desktop/test.html

Is that the kind of thing you’re after?

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


Re: Creating new project files via SFTP

2014-02-20 Thread Oliver Taylor
On Feb 20, 2014, at 5:25 PM, David Donachie  wrote:

> I use a lot of projects where the files are all hosted on a server via SFTP. 
> To make a new one I have to open an SFTP browser, create the file on the 
> server, then drag that file into the project, then open it again in the 
> editor. Is there a better way? Can I save the SFTP details in the project 
> somehow and make new files automatically (or even better, track files added 
> from elsewhere)?

BBEdit projects are just collections of local files. The only SFTP tools BBEdit 
Projects have are for deploying your local copy of a website to a remote server 
- see pg 217 of the User Manual. Working directly with remote files inside a 
project would be better/easier with something like Coda .

Personally, I very much enjoy having a local copy of by site on my laptop that 
I can edit and test any time, then once everything is worked-out I just deploy 
the changes to the live server. There are a lot (and I mean a lot) of great 
tools for this kind of workflow. If you need help setting this up I can point 
you in the right direction.

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


Re: BBEdit always in front / flaky behavior of "Open documents into the front window when possible"

2014-02-21 Thread Oliver Taylor

> On Feb 21, 2014, at 9:03 AM, Brian Colavito  wrote:
> 
> Here's what was happening:
> 1) I have Eclipse and BB Edit on monitor 1, and the browser is open on 
> monitor 2
> 2) I bring Eclipse to the front on monitor 1 by clicking on it, and let BB 
> Edit go to the background
> 3) I click on the browser in monitor 2
> 4) BBEdit suddenly pops back to the front of monitor 1 and obscures Eclipse

You should contact supp...@barebones.com. That's a very strange error. 

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


Re: Search and Replace links with different file names

2014-02-27 Thread Oliver Taylor
On 27 Feb 2014, at 11:27 AM, outtacontext  wrote:

> I need to search for this string and delete all of them in 70 web pages. The 
> only problem is that the file names are different as are the link names (I've 
> bolded  and made red those the part of the search that will be different in 
> every file):
> 
>  
>XXX 
>  

Assuming you want to delete the entire blockquote...

Go to "Search > Multi-File Search..."

Open BBEdit's find window and paste this into the "Find" field:

> 
> [ ]*(.+) 
> 

Leave the "Replace" field blank.

Make sure that "Matching: Grep" is enabled.

Then select the files you want to search.

For a dry-run just click "Find All" - and when you're ready click "Replace 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.


Re: How do I set Custom Language on files with no extension?

2014-03-04 Thread Oliver Taylor
Do the files have an identifying metadata like a shebang line?


> On Mar 4, 2014, at 8:33 AM, richwc...@gmail.com wrote:
> 
> I develop software using a proprietary language (Tandem TAL) and have set up 
> the Custom Language description in BBEdit.
> 
> The source file name have no extension as that is not part of the Tandem file 
> system.
> 
> I often upload 100's of files that are written in TAL and would like to set 
> them all to the Custom Language.
> 
> Any ideas how to do this?
> 
> Thanks,
> Richard
> 
> -- 
> 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.

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


Fountain BBEdit Package

2014-03-05 Thread Oliver Taylor
If, by some twist of fate, there's anyone else out there that uses BBEdit to 
write Fountain documents (http://fountain.io), you might be interested to know 
that I've published a package designed to make working with Fountain documents 
easier. It includes some handy clippings, scripts, filters, and a language 
module that makes moving around and folding easier. You can find it here: 
.

Please contribute on GitHub if you see something that needs improving.

It goes very well with my command-line Fountain conversion utility: Textplay 
.

- - - - - - - - - -
@olivertaylor
github.com/olivertaylor
olivertaylor.net
- - - - - - - - - -

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


Re: P tag sets

2014-03-25 Thread Oliver Taylor

> On Mar 25, 2014, at 5:59 AM, BoDe  wrote:
> 
> I want my paragraph tag sets to be on the same line as the text it 
> encompasses. So:
> 
>  Some text.
> 
> instead of
> 
>  
>  Some text.
>  

I could be wrong but I think this is how BBEdit handles everything. I don't 
think there's a way to change 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.


Re: P tag sets

2014-03-25 Thread Oliver Taylor

> On Mar 25, 2014, at 11:38 AM, BoDe  wrote:
> 
> I think it has something to do with paragraphs usually being block elements. 
> If you apply a list item tag (an inline element), for example, the tagset is 
> added on the same line.

Of course bbedit just does the right thing.

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


Text Colors Test

2014-04-16 Thread Oliver Taylor
I'm developing a color-scheme for BBEdit. And I'd love to refine my color 
choices using real documents.

Is there a single document, or set of documents, that contain an example of 
everything BBEdit can color?

Thanks!

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


Re: BBEdit slow large file opening

2014-04-23 Thread Oliver Taylor
On 23 Apr 2014, at 3:15 PM, Lawrence San  wrote:

> But if you then go back later and make a substantial edit to your 
> hard-wrapped block comments, don't they turn into a mess? I've tried that, 
> and ended up manually dragging numerous line fragments around to get it back 
> into a reasonable block form, which seemed like more trouble than it's worth.

BBEdit does this automatically. Try "Text > Hard Wrap..." on a messed-up 
comment block.

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


Re: any way to easily see what has changed when Asked Do you want to Save the changes when closing?

2014-05-14 Thread Oliver Taylor
On 14 May 2014, at 8:45 AM, Ken G. Brown  wrote:

> What would be the best/easiest way to find out the differences before saving 
> or discarding?

See the menu item "Search > Compare Against Disk File"

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


Re: Opening files within a script

2014-05-20 Thread Oliver Taylor
On 20 May 2014, at 5:31 PM, Watts Martin  wrote:

> What I'd like to do is have a script which will look at the current filename, 
> and if it contains "/api/" then it will try to open the corresponding files

BBEdit's "Open File by Name" is very smart and helpful here. Simply searching 
for "not.md" should find all other instances in your directory tree. You can 
even shift-select to open multiple files.

This shell script also does the trick: `bbedit 
../../../api/**/math-and-logic/not.md`

And, finally, this Applescript might be a good place to start (I'm not very 
great at applescript, so I combined it with shell stuff):

tell application "BBEdit"
set _file to (file of the front window) as string
set _path to POSIX path of _file
if _file contains "api" then
do shell script "cd $(dirname " & _path & ") && 
/usr/local/bin/bbedit ../../../api/**/math-and-logic/not.md"
else
return false
end if
end tell


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


Re: Automating Markdown endnotes

2014-05-21 Thread Oliver Taylor

> On May 21, 2014, at 7:43 AM, David Weinberger  wrote:
> 
> I'm writing something with frequent endnotes and would like to automate how I 
> insert them.

A ton of people have tackled this problem already. While I can't think of 
anything that does exactly what you want, I'd start looking for a solution 
here: http://brettterpstra.com/search/?q=Footnotes

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


Re: Using Escape key as shortcut?

2014-06-12 Thread Oliver Taylor

> On Jun 12, 2014, at 6:53 AM, Gingi  wrote:
> 
> Is it possible to map a menu command to the Escape key? I'd like to use it 
> for "Complete" (currently mapped to F5), to mimic behavior on other editors.

Not with BBEdit directly. There are a bunch of standard keys BBEdit doesn't let 
you remap.

I use keyboard maestro and keyremap4macbook for this, which have no such 
restrictions. 

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


Re: Interesting issue with files in a project

2014-06-23 Thread Oliver Taylor
> On Jun 22, 2014, at 6:13 AM, François Schiettecatte 
>  wrote:
> 
> Up to now the file name have always turned back once the files became 
> available when the AFP server came back on line. But for some reason this is 
> no longer the case. The file names are remain red when I reopen the project. 
> Anyone got any ideas?

It's possible that, even if the path is the same, BBEdit is using a unique 
identifier for the mounted volume - that might change between mounts. But I 
don't actually know if that's true.

Can you still click on, and edit, the files even after they turn red? I've had 
that happen a lot. A file turns red because I've moved it but once I click on 
it BBEdit opens the file just fine and the name goes back to black. 

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


Re: Folding Controls and Codeless Language Modules

2014-09-04 Thread Oliver Taylor
On 4 Sep 2014, at 8:18 AM, Francisco A. Hirsch  wrote:

> Some time ago I wrote a Codeless Language Module for WebDNA
> Today I realized that no Folding Controls appear in the gutter.
> Is this an HTML only feature?
> If not, is there a way to add this to a CLM?

BBEdit folds anything you define as a Function. See here for more info: 


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


Re: Stationery + placeholders

2014-10-05 Thread Oliver Taylor

> On 5 Oct 2014, at 8:21 AM, Michael Green  wrote:
> 
> Create a new document based on your stationery file and use Markup -> Update 
> -> Document (command-control-u). 

I never got a chance to dive into placeholders before. This is pretty neat. 
More info in "Appendix C” for those interested.

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


Re: Setting Markdown Key Commands

2014-10-14 Thread Oliver Taylor
> On 14 Oct 2014, at 1:57 PM, Jon Siddle  wrote:
> 
> I'm new to BBEdit, looking for a new text editor for writing Markdown (and 
> that doesn't crash with large files) and was curious to know how I would go 
> about setting up key bindings for the most used Markdown commands (bold, 
> italics, links, etc.). I found an article from MacDrifter 
> 
>  saying how easy it is to set this up but I'm at a loss. Any help would be 
> appreciated. Thank you.

There are a number of ways to do this. I’m guessing that you’ll want to create 
clippings (known as snippets in other editors) and bind shortcuts to them. Some 
links you might find useful:

http://www.macworld.com/article/1166149/how_to_create_and_use_bbedit_clippings.html
 

http://ranea.org/bbedit-markdown.html 
http://www.macdrifter.com/2012/01/moving-text-editors-taking-bbedit-seriously.html
 


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


Re: Eek! Monaco jaggies.

2014-10-31 Thread Oliver Taylor
As long as we're playing "favorite fonts"…

I've recently fallen in love with Input. Particularly because you can pick the 
width and lightness of the letters you like best. 

http://input.fontbureau.com/


> On Oct 31, 2014, at 1:18 AM, Darrel E. Knutson 
>  wrote:
> 
> Hi LuKreme,
> 
>> Menlo is my favorite fixed font since Profont back in System 7 & 8 days.
> 
> There's a new 'ProFontX' available at . 
> I like it, YMMV.
> 
> Darrel
> 
> -- 
> 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.

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


Re: [ANN] BBEdit 10.5.4

2014-11-15 Thread Oliver Taylor
> On 14 Nov 2014, at 11:49 AM, Archie Campbell  wrote:
> 
> it was a pain that the Disk Browser wouldn't show the dot directories and 
> files needed to make changes. Is there a power user way to turn it back on?

In the magnifying glass menu at the bottom of the browser, change “Show” to 
“Everything”.


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


Re: CMD-L whitout CR?

2014-11-28 Thread Oliver Taylor

> On Nov 27, 2014, at 6:49 PM, Vlad Ghitulescu  wrote:
> 
> Is there a way to get rid of the CR while selecting the line with CMD-L?

Not a built in way. But you can easily accomplish this with AppleScript. Just 
search backwards for the beginning of the line, then forwards to the end of the 
line (without newline) and assign the script a shortcut. 

There is some sample code here that might help you get started: 
https://github.com/olivertaylor/BetterTongs.bbpackage

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


Re: Text factory - transform files in folder A and write to folder B, possibly with new extension?

2014-12-03 Thread Oliver Taylor

> On Dec 3, 2014, at 3:38 AM, Martin Post  wrote:
> 
> Is it possible to have a BBedit text factory read and convert e.g. all HTML 
> files in an "in" folder and store the transformed documents (possibly with 
> another filename extension such as .xml in a separate "out" folder?

Would help to know what kind of transformation  you want to make. 

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


Re: Text factory - transform files in folder A and write to folder B, possibly with new extension?

2014-12-06 Thread Oliver Taylor
> On 4 Dec 2014, at 4:16 AM, Martin Post  wrote:
> 
> I am often using Text Factories (usually just 5-10 GREP replacements) to 
> convert files from one format to another. These Text Factories work as they 
> should. However, this will modify the respective documents (in memory) and 
> then (optionally) save them to disk, _replacing_ the original files. Now 
> let's assume I have 40 XML files that I converted into HTML. After running 
> the Text Factory, I have to go to the Finder, change the file extension to 
> ".html", and then I can validate my files. Now if something went wrong, I 
> need to create another copy of the original XML file and start again. I am 
> testing rather complex text factories here, which I sometimes need to modify 
> on the fly. It would just be nice if I could tweak a text factory, have it 
> process the files in folder A and write the converted files to folder B, 
> without having to copy or rename files manually.

You may not realize it, but what you really want is a set of shell scripts (sh, 
perl, python, whatever). You can run them remotely from your cheap laptop via 
ssh. But that’s not really your question.

Text Factories cannot, themselves, duplicate files, they can only act on files. 
So you’ll need an automated way to do that. Applescript is certainly capable of 
this, but you’re probably better off learning how to make a shell script at 
that point. But there’s always Automator.

BBEdit has Automator action, which you can download here 
. You can’t run a Text 
Factory directly from Automator, but you might be able to re-construct your 
text-filter using the actions. And if you can do that, then you can use all the 
other system functions in Automator to duplicate and move files. You can even 
set it to watch folder and act on files automatically.

Luckily, you can also run automator actions via the shell, so you can do all 
this remotely.

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


Re: How to move the cursor to the top / middle / bottom of a BBEdit-window whitout scrolling the window

2015-01-03 Thread Oliver Taylor

> On Jan 3, 2015, at 5:41 AM, Vlad Ghitulescu  wrote:
> 
> is there possible to move the cursor to the top- / middle- / bottom-line of a 
> BBEdit-window whitout scrolling this window?

Top - option up
Bottom - option down
Middle - command shift J

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


Re: Twitter feed causing problems

2015-02-27 Thread Oliver Taylor
>   On 27 Feb 2015, at 2:46 AM, jgill  
> wrote:
> 
> I've just been asked to add a Twitter Feed widget to a web page but it is 
> causing great problems with BBEdit. I have the page open in BBEdit Preview 
> and every tiny change I make to the markup causes a page to open in Firefox 
> (my default browser) with a single pixel gif in the middle. The page has the 
> URL "https://syndication.twitter.com/i/jot";. It becomes very annoying to make 
> any changes. Is there any way to stop this happening?

Sounds like there’s something in that widget that’s triggering firefox to open. 
Does the same thing happen when you remove that widget from the page?

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


Re: Find and Replace Feature

2015-02-27 Thread Oliver Taylor
> On 27 Feb 2015, at 12:27 PM, Jared Roller  wrote:
> 
> For me, the ability to 'extract with new formatting and subpattern 
> replacement' would save several steps with unstructured data. 

Can you give a specific example?

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


Re: Show tab stops

2015-03-19 Thread Oliver Taylor

> On Mar 17, 2015, at 8:29 PM, Jon B.  wrote:
> 
> if my maximum indentation level is five, just the corresponding five vertical 
> lines are shown.

No, that's not possible. 

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


BBEdit Extract Placeholder

2015-04-27 Thread Oliver Boermans
Hi all,

I have written a script for BBEdit that someone here may find
<#useful|interesting|amusing#>

https://github.com/ollicle/BBEdit-Extract-Placeholder

Finally got around to playing with making some Clippings for my own use. In
a number of them I was using the placeholders to aid in the selection of
text portions that were to be optionally present. The initial intention of
the script was to simply remove BBEdit placeholder delimiters from around
the selected text, e.g. <#label#> => label

Naturally I got carried away and added more features :-)

As a side note, for the sake of it being possible, I really wanted to do
this with JavaScript (as now enabled in Yosemite), but failed to even get
the basics of getting and setting the selection working. I’ve seen a few
examples that use node.js but none of the native js support.

Cheers
Ollie
--
@ollicle

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


Re: A "notebook" for BBEdit?

2015-04-28 Thread Oliver Taylor
You should just use BBEdit itself. 

Even "notebook" apps clutter your system, they just hide that clutter somewhere 
in ~/library. 

Have you tried using a BBEdit project?


> On Apr 28, 2015, at 12:49 AM, Jan Erik Moström  wrote:
> 
> I write a lot of notes in Markdown format, they are usually highly
> temporary but I would like to save them for archival purpose ... but I
> don't want them to "clutter up" my file system.
> 
> I know, it sounds like a contradiction, just humor me :)
> 
> What I want to do is to have some kind of "notebook" where I can dump
> files like this (and yes, there are numerous notebooks out there). My
> wish list for this notebook app:
> 
> + Able to handle plain text files
> + Understand Markdown (easy to preview)
> + Integration with BBEdit
> + Light-weight
> + Search
> + Index
> 
> Apps that I know of:
> 
> + VoodooPad - this would be my choice if it hadn't been for that there
> have been no updates in a long time (only one update since the owner
> change)
> 
> + DEVONthink - doesn't feel light-weight
> 
> + Evernote - no text files, no markdown, no BBEdit
> 
> + Yojimbo - no text files, no markdown, no BBEdit (as far as I can see)
> 
> Does anyone have any other app I should take a look at?
> 
> -- 
> 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.

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


Re: Clippings, options, auto-complete and keyboarding

2015-05-11 Thread Oliver Boermans
Hi Brian,

I encountered the same issue and wrote some AppleScript to deal with it:
https://github.com/ollicle/BBEdit-Extract-Placeholder

Let me know if it works for you.
Cheers
Ollie
—
@ollicle

On 12 May 2015 at 06:25, Christopher Stone 
wrote:

> On May 11, 2015, at 09:11, Brian Christiansen  wrote:
>
> When I'm using auto-complete with CSS, I get items like this:
>
> display:
> <#none|inline|block|inline-block|list-item|run-in|compact|marker#>;
>
> Is there a way from the keyboard to select one of those options, that
> isn't "highlight and delete everything that's not the option you want"?
>
> __
>
> Hey Brian,
>
> I'm not sure I understand exactly what you want, especially since I don't
> do CSS.
>
> What I think I'm reading is that you want to be able to emplace the
> clipping - then make a selection of the desired option via the keyboard -
> and then remove the other options.
>
> What I've done is change the clipping text so that the options are
> tokenized.
>
> You expand the clipping and  to the desired option - then you run the
> AppleScript with a keyboard shortcut to remove the undesired text.
>
>
> ---
>
> The Clipping:
>
> display:
> @<#none#>|<#•inline•#>|<#•block•#>|<#inline-block#>|<#list-item#>|<#run-in#>|<#compact#>|<#marker#>@;
>
> * Items with bullets are reserved expansion-tokens in BBEdit.
> * @ character marks beginning and end of replacement text.
>
>
> ---
>
> tell *application* "BBEdit"
>   tell front *text window*
> set _sel to selection
> set start_Line to *line* (get startLine of _sel)
> set replaceText to *replace* "<#•?|•?#>" searchingString (_sel's
> contents as *text*) using "" options {search mode:grep}
> set replaceText to *replace* "\\@.+?\\@" searching in start_Line using
> replaceText options {search mode:grep}
> *select* *insertion point* after start_Line
>   end tell
> end tell
>
>
> ---
>
> Let me know if I've got this wrong, or something needs adjusting.
>
> --
> Best Regards,
> Chris
>
>  --
> 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.
>

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


Re: Clippings, options, auto-complete and keyboarding

2015-05-12 Thread Oliver Boermans
Hi Ted,

I understand, I too spent some time looking for an approach that was ever
so more slightly automagical. Interested to see what you come up with.

It is possible call a script to populate the text within BBEdit clippings:

 #script /Users/me/example/folder/Script.scpt#

Presumably this could open a dialog to present options before the clipping
is inserted.

Trouble was, I couldn’t see a mechanism to pass arguments to the script
upon execution. As a result every clipping would need it’s own script. This
makes the shortcuts BBEdit provides to edit and create clippings “on the
fly” less useful.

I went with requiring an additional shortcut to extract the options. This
had the possibly useful side effect of allowing the same mechanism to work
on any text selection – not just clipping contents.

Cheers
Ollie

—
@ollicle

On 12 May 2015 at 18:19, Gustave Stresen-Reuter 
wrote:

> Thanks for sharing! Not quite what I'm looking for but definitely on the
> right track. Ideally, I'd like something that is triggered when the
> clipping is inserted so I can just keyboard navigate through a dialog
> setting the required parameters. If I ever get any free time (not likely,
> but one can always hope) I'll take what you've done and see if I can work
> it into my own workflow and share that.
>

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


Re: Change how BBEdit formats: remove line breaks after opening and before ?

2015-06-08 Thread Oliver Boermans
On 6 June 2015 at 04:13, Patrick Woolsey  wrote:

> defaults write com.barebones.bbedit
> HTMLParagraphMarkup_ParagraphsOnSeparateLines -bool NO
>

Thanks!

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


Re: Change Underlined Same-Word Variables, etc. to Background-Colored ??

2015-07-26 Thread Oliver Taylor

> On 26 Jul 2015, at 3:13 AM, Rick Gordon  wrote:
> 
> Is it possible to change a setting so that when you click in a given word, 
> and all instances of the same word are underlined, to change that something 
> more visible, like a background color?

The only option for this setting is the delay after which the underline is 
displayed.

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


Re: Regex Question

2015-08-24 Thread Oliver Taylor
Holger,

When I need to figure out a regex pattern I have a rough idea of, but want to 
refine, tools like the one linked below are vital. 

https://regex101.com/



> On Aug 23, 2015, at 8:10 PM, 'Holger B' via BBEdit Talk 
>  wrote:
> 
> Hi Alex,
> 
> this is actually quite a good approach. It doesn't solve it in one pass, but 
> thinking to start at the end of the line (\r) seems to be a good idea which I 
> somehow didn't think of before.
> 
> I tried this: \n\s+-\s?(.+)$
> 
> and replace with: \1,
> 
> which results in "categories:A, B, C,"
> 
> Seems to be as close as I can get in one pass and in the end much simpler 
> than my initial approach ;)
> 
> Thanks,
> Holger
> 
>> On 23/08/2015 at 15:05:42 HKT gr...@goldweb.com.au wrote:
>> 
>> Would it be sufficient to replace s/\n\s+-/,/ — This would make
>> 
>> categories:
>> - A
>> - B
>> - C
>> 
>> Turn into:
>> 
>> categories:, A, B, C
>> 
>> Then a second pass to remove the first comma s/:,/:/
>> 
>> categories: A, B, C
>> 
>> Alex
>> 
 On 23 Aug 2015, at 03:56, 'Holger B' via BBEdit Talk 
 
>>> wrote:
>>> 
>>> Hi,
>>> 
>>> I know there's some very talented regex people on this list, so after
>> unsuccessfully trying to solve this, I'm giving it a shot here.
>>> 
>>> I'm trying to achieve the following search/replace and am not sure if it's
>> even possible in one pass. I believe the solution would be to find an 
>> unknown number of a repeating pattern and capturing each one at the same 
>> time.
>>> 
>>> The text I'm searching looks like this, with the categories ranging from one
>> to n:
>>> 
>>> categories:
>>> - cat 1
>>> - cat 2
>>> - …
>>> - cat n
>>> 
>>> The result I would like to achieve should be:
>>> 
>>> categories: cat 1, cat 2, …, cat n
>>> 
>>> The way I solved it for now is by modifying the pattern for different 
>>> numbers
>> of categories, but obviously this is not very efficient…
>>> 
>>> Search, e.g. 5 categories:
>> categories:\r\s+-\s?((.+)\s?)(\r\s+-\s?(.+)\s?)(\r\s+-\s?(.+)\s?)(\r\s+-\s?(.+)\
>> s?)(\r\s+-\s?(.+)\s?)(\r\s+-\s?(.+)\s?)
>>> 
>>> Replace:
>>> 
>>> categories: \1, \4, \6, \8, \10, \12\r
>>> 
>>> Would appreciate any help or pointers on this.
>>> 
>>> Thanks and a good weekend,
>>> Holger
>>> 
>>> --
>>> 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.
> 
> -- 
> 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.

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


Re: BBEdit logfile

2015-09-14 Thread Oliver Brodwolf
Hello Rich

> I will repeat my previous question: What problem are you trying to solve?

There is no problem.
Sometime I want to look back, and see all files which have been changed.
And in OS X, I can only search to "last modified". And BBEdit knows for each 
file, the "whole" history. And then I found the DocumentRevisions-V100 folder, 
and I think bbedit get the data from this source.
I know, a other method could be to use a version control.

> Don't do that. It depends on internals of the OS which are fragile and 
> subject to change without notice.

Why not. I copy the database before I make the query.

Regards, Oliver

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


Re: Help getting a codeless language module working

2015-10-22 Thread Oliver Taylor
Have you tried wrapping the contents of your "Identifier and Keyword Character 
Class” inside a CDATA wrapper <https://en.wikipedia.org/wiki/CDATA>?

You can find the latest version of my code - which still works in the latest 
BBEdit - on GitHub 
<https://github.com/olivertaylor/textplay.bbpackage/blob/master/Contents/Language%20Modules/textplay.plist>.

It’s not perfect - for example, the keywords only work when alone on a line - 
but I’m a little fuzzy, it’s been a while!


> On 15 Oct 2015, at 5:52 AM, Marc Chamberland  
> wrote:
> 
> Hi Oliver,
> 
> This is coming in 4 years later, but I'm having a problem very similar to the 
> one you had in 2011. I'm trying to get keywords with spaces recognized in my 
> module, but to no avail. Does your module still work in the latest version of 
> BBEdit? I've tried every way I could think of to add a space to the 
> Identifier and Character Class, but nothing has worked. Anytime I add a space 
> to it (either as " ", \s, [:blank:], etc), it breaks recognition of all 
> keywords.
> 
> Marc
> 
> 
> On Tuesday, August 16, 2011 at 11:34:03 AM UTC-4, oliver wrote:
> Thanks Mic, I added a space and a colon to the Identifier and Keyword 
> Character Class and that got the keywords working (even with a space).
> 
> Now I just need to get the Functions and Strings working.

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


Re: Word wrap

2015-12-04 Thread Oliver Boermans
For many years I have been using this little script from John Gruber for
cycling through text wrap options:
http://daringfireball.net/2004/10/bbedit_soft_wrap_toggling

Recommended if you have frequent cause to switch.

On 4 December 2015 at 03:06, Chris Johnston  wrote:

> bruce -
> your instruction is super helpful, I am loving BBEdit it is packed with
> features. Thanks
>
> --
> 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.
>

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


Re: Edit all selected (?)

2015-12-05 Thread Oliver Boermans
I have seen the feature multi cursor feature in other editors, BBEdit does
not.

The BBEdit way would be to use search and replace:

1. Select the text
2. Invoke: Search: Use Selection for Find (⌘E)
3. Invoke: Search: Find… (⌘F)
4. TAB into the Replacement field and enter a replacement
5. Replace All (⌥⌘=)

On 3 December 2015 at 10:30, Greg Raven  wrote:

> In the latest versions of BBEdit, if you have the cursor on a word (or
> have a word or words selected), and the text under the cursor (or selected
> text) occurs elsewhere in your document, those other instances will be
> marked.
>
> Is there a way of editing all selected/marked text in a document in one
> felt swoop?
>
> I wasn't able to find anything in the documentation.
>
> --
> 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.
>

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


Re: Edit all selected (?)

2015-12-05 Thread Oliver Boermans
On 6 December 2015 at 08:59, Greg Raven  wrote:

> I gave it the keyboard shortcut of Cmd-E!


When there is an instance of the desired replacement within easy reach the
Use Selection for Replace shortcut is nice to have too:

1. Select text to replace.
2. Invoke: Search: Use selection for find (⌘E)
3. Select the text to replace it
4. Invoke: Search: Use Selection for Replace (⌘⌥E)
5. Invoke: Search: Find… (⌘F)
6. Invoke: Replace 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.


Re: Why cannot I find this piece of text?!

2015-12-19 Thread Oliver Boermans
So the feature request is, after repeating a search with no results, to
append the dialog copy with a reminder selected randomly from a list, e.g.:

The string "" was not found. Are you searching the right
project?

;)

2015-12-16 21:32 GMT+10:30 Vlad Ghitulescu :

> It was the wrong project!
> I have two projects with *almost* similar names!
> Sorry!
>
>
> > Am 16.12.2015 um 10:31 schrieb Vlad Ghitulescu :
> >
> > Hello!
> >
> >
> > I’m trying to replace all the occurrence of
> >
> > © 2015 Treppen Reuss
> >
> > with
> >
> > © Treppen Reuss
> >
> > in all HTML-files of a given BBEdit-project.
> > With no results: BBEdit finds nothing!
> > 
> > But here they are, the missing strings:
> >
> > 
> >
> > and there are similar strings in every of the HTML-files actually.
> >
> > Here is my HTML-filter:
> >
> > 
> >
> > I attach also the content of the index.html-file.
> >
> > I’m sure that I oversee something… but what? :-(
> >
> >
> > Regards,
> > Vlad
> >
> >
> > —
> >  class=no-js> http-equiv=X-UA-Compatible content="IE=edge">Treppen
> Reuss content="width=device-width, initial-scale=1"> href=humans.txt /> rel=stylesheet href=//
> maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css> src=js/vendor/modernizr-2.6.2.min.js> data-src=img/logos/treppen_reuss_logo_50.png data-media="(min-width:
> 768px)"> data-media="(min-width: 992px)"> data-src=img/logos/treppen_reuss_logo_80.png data-media="(min-width:
> 1200px)"> src=img/logos/treppen_reuss_logo_50.png alt="Logo Treppen
> Reuss"> class="navbar navbar-default"> class=navbar-header> data-target=.navbar-collapse> class=icon-bar> class="navbar-collapse collapse"> class=active> class="icon fa fa-home"> Home class="icon fa fa-signal"> Treppen href=Ihre_Vorteile.html> Ihre
> Vorteile Über uns Kontakthttp://www.Tueren-Reuss.de> src=img/logos/tueren_reuss_logo_30.png alt="Türen Reuss"
> width=86> class="page-contents container"> data-slide-to=0 class=active> data-slide-to=1> data-slide-to=2> data-slide-to=3> data-slide-to=4> data-src=img/index/carousel/carousel_index_01_625x300.jpg> data-src=img/index/carousel/carousel_index_01_720x480.jpg
> data-media="(min-width: 768px)"> data-src=img/index/carousel/carousel_index_01_940x540.jpg
> data-media="(min-width: 992px)"> data-src=img/index/carousel/carousel_index_01_1140x540.jpg
> data-media="(min-width: 1200px)"> src=img/index/carousel/carousel_index_01_625x300.jpg alt="Treppen Reuss -
> carousel - index - Slide 1"> data-picture data-alt="Treppen Reuss - carousel - index - Slide 2"> data-src=img/index/carousel/carousel_index_02_625x300.jpg> data-src=img/index/carousel/carousel_index_02_720x480.jpg
> data-media="(min-width: 768px)"> data-src=img/index/carousel/carousel_index_02_940x540.jpg
> data-media="(min-width: 992px)"> data-src=img/index/carousel/carousel_index_02_1140x540.jpg
> data-media="(min-width: 1200px)"> src=img/index/carousel/carousel_index_02_625x300.jpg alt="Treppen Reuss -
> carousel - index - Slide 2"> data-picture data-alt="Treppen Reuss - carousel - index - Slide 3"> data-src=img/index/carousel/carousel_index_03_625x300.jpg> data-src=img/index/carousel/carousel_index_03_720x480.jpg
> data-media="(min-width: 768px)"> data-src=img/index/carousel/carousel_index_03_940x540.jpg
> data-media="(min-width: 992px)"> data-src=img/index/carousel/carousel_index_03_1140x540.jpg
> data-media="(min-width: 1200px)"> src=img/index/carousel/carousel_index_03_625x300.jpg alt="Treppen Reuss -
> carousel - index - Slide 3"> data-picture data-alt="Treppen Reuss - carousel - index - Slide 4"> data-src=img/index/carousel/carousel_index_04_625x300.jpg> data-src=img/index/carousel/carousel_index_04_720x480.jpg
> data-media="(min-width: 768px)"> data-src=img/index/carousel/carousel_index_04_940x540.jpg
> data-media="(min-width: 992px)"> data-src=img/index/carousel/carousel_index_04_1140x540.jpg
> data-media="(min-width: 1200px)"> src=img/index/carousel/carousel_index_04_625x300.jpg alt="Treppen Reuss -
> carousel - index - Slide 4"> data-picture data-alt="Treppen Reuss - carousel - index - Slide 5"> data-src=img/index/carousel/carousel_index_05_625x300.jpg> data-src=img/index/carousel/carousel_index_05_720x480.jpg
> data-media="(min-width: 768px)"> data-src=img/index/carousel/carousel_index_05_940x540.jpg
> data-media="(min-width: 992px)"> data-src=img/index/carousel/carousel_index_05_1140x540.jpg
> data-media="(min-width: 1200px)"> src=img/index/carousel/carousel_index_05_625x300.jpg alt="Treppen Reuss -
> carousel - index - Slide 5"> href=#homepage-feature data-slide=next> class=h2aufHome>Treppenbau aus LeidenschaftDie
> möglichen Treppenvarianten sind vielfältig – und genauso vielfältig ist
> auch die Auswahl in unserer
> Ausstellung, in der Sie die von uns mit Leidenschaft und viel
> Kreativität geschaffenen Produkte bestaunen können. Einen Vorgeschmack
> finden Sie in unserer Produktgalerie.Besuchen Sie unsere Produkt-Galerie!  class="icon fa fa-arrow-circle-right"> class=col-md-4>Ihre Vorteile class=blocksatz>N

Re: Suppress _most_ images

2015-12-19 Thread Oliver Boermans
Not sure if Firebug does, but Firefox can filter network requests:
https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor#Filtering_by_URL

If you are still looking for another approach (involving JavaScript) feel
free to ask me off list.

Cheers
Ollie

On 19 December 2015 at 12:19, Lawrence San  wrote:

> You're right -- I was so focused on BBEdit + Firebug that I forgot all
> about Chrome. Just tried it: Chrome's Network panel filters, and lets me
> resize the column widths, and has a convenient "Disable cache" checkbox.
> Much better than Firebug, for this purpose anyway. (I typically ignore
> Chrome's devel tools because of all the great extensions I've installed in
> Firefox.) Thanks much Ronald!
>
>
> On Fri, Dec 18, 2015 at 5:41 PM, Ronald J Kimball  wrote:
>
>> If the problem you're trying to solve is showing only the images you care
>> about in the Net panel, have you tried using Chrome?  Its Developer Tools
>> Network panel has a filter feature, unlike Firebug.
>>
>> Ronald
>>
>> --
>> 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. 
>>
>
> --
> 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.
>

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


Re: generic xml support ?

2015-12-19 Thread Oliver Boermans
Hi Jean-Christophe, can you describe what functionality you expect from a
generic XML editor?

On 19 December 2015 at 22:24, Jean-Christophe Helary <
jean.christophe.hel...@gmail.com> wrote:

> Are there tricks/scripts to make BBEdit act as a generic XML editor ?
>
> Jean-Christophe Helary
>
> --
> 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.
>

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


Re: Getting just the differences.

2016-01-08 Thread Oliver Boermans
Hi Lee,

this may work for you if you are happy sharing the whole line containing
the difference and the two documents are mostly the same.

1. Make a copy of each file and remove any obvious unimportant difference
between them. (Particularly line breaks)

2. Ensure the lines within each document are unique – prefix each line of
both documents with a number

Text > Add/Remove Line Numbers…
✓Insert – with other settings to your taste.

3. Copy and paste the contents of the first document into the end of the
second.

4. Remove duplicate lines:

 Text > Process Duplicate lines
 ✓Matching All and ✓Delete duplicate lines

5. Sort lines to unite the different lines

 Text > Sort Lines…

Hope that helps

Cheers
Ollie

On 9 January 2016 at 10:34, Lee Hinde  wrote:

> I'm doing a Find Differences between two files. I want to copy just the
> lines that are different, from both files, into a new document so I can
> send that to someone.
>
> Is there a way to do that?
>
> --
> 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.
>

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


Re: Getting just the differences.

2016-01-08 Thread Oliver Boermans
Oops missed settings for Sort Lines…

✓ Numbers match by value
✓ Sorted lines replace selection

Enjoy

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


Custom text file icons based on extension

2016-04-20 Thread Oliver Boermans
Apologies if this is more of a general OS X than a specific BBEdit question.

I would love to be able to have visibly different small icons for the large
number of text files I regularly work within a BBEdit project (e.g. .js
.html .scss .coffee). Although I don’t want to give up BBEdit as the
default editor for these file extensions.

Just now I opened a folder containing some python (.py) text files as a
project  in BBEdit. I was surprised to see text files lacking the ever
present BBEdit icon in the project drawer.

The icon was unusual to my eye as I have BBEdit set as the default editor
for pretty much every flavour of text file and as a result _they all look
the same_. I don’t normally write Python and it was an Xcode icon I was
seeing.

Can I have my cake and eat it too?

Fine regards
Ollie

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


Re: [ANN] BBEdit 11.6 (3913) pre-release

2016-05-12 Thread Oliver Boermans
On 12 May 2016 at 06:26, Rich Siegel  wrote:

> *   [322129] Worked around a pathological behavior in the OS which
> would cause the file info popover to take minutes to appear in
> some situations (in particular, when Active Directory services
> are in use).
>

Woot! Thank-you. I have had this happen seemingly randomly.
Was waiting for a pattern to emerge before reporting,

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


Re: AppleScript – Toggle Between 2 Magnification Levels

2016-05-29 Thread Oliver Boermans
Great! Thanks Chris.

On 29 May 2016 at 07:26, Christopher Stone 
wrote:

> Hey Folks,
>
> I wrote this script for someone on the TextWrangler list, so I've
> repurposed it for BBEdit and am also posting it here.
>
> It's pretty self-explanatory.
>
> --
> Best Regards,
> Chris
>
> ---
> # Toggle front window between 2 magnification levels.
> ---
> *property* defaultMagLevel : 1.0
> *property* secondaryMagLevel : 1.2
>
> *tell* *application* "BBEdit"
>   *tell* *front* *text window*
> *if* display magnification = defaultMagLevel *then*
>   *set* display magnification *to* secondaryMagLevel
> *else*
>   *set* display magnification *to* defaultMagLevel
> *end* *if*
>   *end* *tell*
> *end* *tell*
> ---
>
> --
> 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.
>

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


Re: Placeholders - what more can I do with them?

2016-07-10 Thread Oliver Boermans
Hi Brian,
A while back I wrote a little AppleScript to make options within
placeholders a little more useful.
https://github.com/ollicle/BBEdit-Extract-Placeholder

Interested in your feedback.

Cheers
Ollie

On 9 July 2016 at 01:55, Brian Christiansen  wrote:

> Folks,
>
> I've used the <##> placeholder in BBEdit for years. I'm wondering if I am
> getting everything I can out of it. For example,
>
> Every few months, I have to fill in a YAML document with strings of text
> (HTML and or MD, sometimes mixed). I delete the YAML values of a prior
> document, and put placeholders in their place. Then I load up my clipboard
> manager with let's say 10 strings (textual content to be displayed on a web
> site) of materials from their source (usually a Google Doc), and I tab
> through the placeholders and paste in the strings. (the formatting changes
> every few months, so scripting this is not something I'm going to attempt)
>
> Sometimes, the items I have to edit, though, aren't these random content
> strings, but instead one of two options, e.g. "Monday" vs "Wednesday". I've
> been marking those with <#Monday|Wednesday#>. Is there a way through the
> keyboard to say to BBEdit "Please replace this placeholder with the first
> of the two options in the placeholder", e.g., "Make this instance of
> `<#Monday|Wednesday#>` become `Monday`.
>
> All the time I've used placeholders, I've always felt like there is more
> waiting for me to unlock with them… but couldn't glean anything from the
> manual on how to take them to the next level. This comes up a lot with CSS
> clippings too. E.g. `line-height: <#normal|15px|2em#>;` —ideally in this
> situation, I want to tap a trigger key to highlight the placeholder, then a
> second trigger to select one of the 3 options (`2em`) and have my cursor
> select the value (`2`) so I could overwrite it, and then a final trigger to
> close the operation which hops the cursor to the right of the semi-colon.
>
> Any thoughts on placeholders? Am I totally missing something? Have the
> absolute wrong expectations? Call me a dreamer?
>
> Thanks,
> ~brian
>
> --
> 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.
>

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


BBPackage Contents/Resources/ from Contents/Text Filters

2016-08-11 Thread Oliver Boermans
Hi all,

Trying to get my head around Text Filters in BBEdit, was reading:
http://bbedit-hints.tumblr.com/post/80971432181/using-global-node-modules-in-bbedit-text-filters

Referencing a file in Contents/Resources is working for me in a script run
from Contents/Scripts:

#!/usr/bin/env ../Resources/node_runner.sh


But a script with the same first line run from Contents/Text Filters gets
me:

env: ../Resources/node_runner.sh: No such file or directory


Is there a reason it works in one and not the other?

Thanks
Ollie

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


Environment variables in BBEdit scripts

2016-08-20 Thread Oliver Boermans
If I execute this script from the scripts menu in BBEdit:

#!/bin/sh
printenv


Should I be seeing BB_DOC_NAME, BB_DOC_PATH and friends in the list that is
output?

I have been attempting to use these variables in a script, but they are
returning nothing, i.e.

#!/bin/sh
echo $BB_DOC_NAME


What might I be missing?

Any pointers are very welcome.
Cheers
Ollie

-- 
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: Environment variables in BBEdit scripts

2016-08-20 Thread Oliver Boermans
On 20 August 2016 at 23:36, Christopher Stone 
wrote:

> #! /usr/bin/env bash
> echo -e "BBEdit Environment Variables\n";
> echo -e "
> Doc Name: $BB_DOC_NAME
> Doc Path: $BB_DOC_PATH
> Doc Mode: $BB_DOC_MODE
> Doc Language: $BB_DOC_LANGUAGE
> Doc Sel Start: $BB_DOC_SELSTART
> Doc Sel End: $BB_DOC_SELEND
> Doc Sel Start Column: $BB_DOC_SELSTART_COLUMN
> Doc Sel End Column: $BB_DOC_SELEND_COLUMN
> Doc Sel Start Line: $BB_DOC_SELSTART_LINE
> Doc Sel End Line: $BB_DOC_SELEND_LINE
> " | sed -E 's! *: *! : !' | column -t -s' ';
>

Thanks Chris,
clearly something wrong at my end, my output:

BBEdit Environment Variables
> Doc Name  :
> Doc Path  :
> Doc Mode  :
> Doc Language  :
> Doc Sel Start :
> Doc Sel End   :
> Doc Sel Start Column  :
> Doc Sel End Column:
> Doc Sel Start Line:
> Doc Sel End Line  :


Perhaps a job for support.
Cheers
Ollie

-- 
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: Environment variables in BBEdit scripts

2016-08-20 Thread Oliver Boermans
False alarm, I was running an less than current version of BBEdit (probably
a pre-release).
Variables come through fine with current release (and current pre-release).

Face palm…

On 21 August 2016 at 08:55, Oliver Boermans  wrote:

>
> On 20 August 2016 at 23:36, Christopher Stone 
> wrote:
>
>> #! /usr/bin/env bash
>> echo -e "BBEdit Environment Variables\n";
>> echo -e "
>> Doc Name: $BB_DOC_NAME
>> Doc Path: $BB_DOC_PATH
>> Doc Mode: $BB_DOC_MODE
>> Doc Language: $BB_DOC_LANGUAGE
>> Doc Sel Start: $BB_DOC_SELSTART
>> Doc Sel End: $BB_DOC_SELEND
>> Doc Sel Start Column: $BB_DOC_SELSTART_COLUMN
>> Doc Sel End Column: $BB_DOC_SELEND_COLUMN
>> Doc Sel Start Line: $BB_DOC_SELSTART_LINE
>> Doc Sel End Line: $BB_DOC_SELEND_LINE
>> " | sed -E 's! *: *! : !' | column -t -s' ';
>>
>
> Thanks Chris,
> clearly something wrong at my end, my output:
>
> BBEdit Environment Variables
>> Doc Name  :
>> Doc Path  :
>> Doc Mode  :
>> Doc Language  :
>> Doc Sel Start :
>> Doc Sel End   :
>> Doc Sel Start Column  :
>> Doc Sel End Column:
>> Doc Sel Start Line:
>> Doc Sel End Line  :
>
>
> Perhaps a job for support.
> Cheers
> Ollie
>

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


Re: Function Menu: Javascript: Hide objects?

2016-08-22 Thread Oliver Boermans
Hi Colin,

On 23 August 2016 at 01:14, Colin  wrote:

> I've got large javascript objects (things with double-tilde's beside them)


Not sure what you mean. Can you paste or point to an example?

Cheers
Ollie

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


ESLint in BBEdit or example use of bbresults

2016-12-03 Thread Oliver Boermans
Hi BBers,

I just now published a package that may be useful if you are writing
JavaScript in BBEdit.
https://github.com/ollicle/BBEdit-ESLint

There are a bunch of firsts for me in this script so feedback is **very**
welcome.

Cheers
Ollie

-- 
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: Applescript automatic help please

2016-12-10 Thread Oliver Boermans
Hi Joe,

'../' means 'step into the parent directory'.

It doesn’t care what that parent directory is called.

It is necessary when the the file you are pointing to is not located in the
same or sibling directory of your HTML file.

In this case 'Archive Photos/' is a child of a directory two levels up from
the HTML file in the directory structure, which is why the '../' is
repeated '../../'.

Hope that clarifies.

Cheers
Ollie


On 10 December 2016 at 19:28, jgill  wrote:

> Thanks, Christopher.
>
> This script, which I don't understand as I don't know Python or shell
> scripts, gives '../../Commoner Species Photos/Shag.htm', which has an extra
> ../ at the beginning.
>
> I could chop of the first three characters but I don't understand why they
> are there in the first place.
>
>
>
>
>
>
>
> On Friday, December 9, 2016 at 1:11:06 PM UTC, jgill wrote:
>
>> I am trying to automate the process of importing an image and adding a
>> caption, which will be parsed out of the file name. I can manage that bit,
>> where I am stuck is with using 'choose file' to produce the *relative* file
>> path to the page I am working on. I could laboriously split and subtract
>> elements of the POSIX file path to the .jpg file but there must be a more
>> elegant way?
>>
> --
> 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.


<    1   2   3   >