Re: Balance and Fold Question

2010-04-09 Thread stephen taylor
I also access this thread from the site and so did not see the signatures

The files I am working on are local (when I am debugging like this (using
MAMP) but I also use Interarchy for uploading when I mount changes to the
server - - those never honor saved state for me, BTW.

In any case, I will ask the Barebones folks about the saved state situation.

Also - Dennis - thanks for the tip about the balance and fold - - for me, it
may well be a habit thing - - I have been writing lots of jQuery lately and
have gotten used to folding the logic blocks with the gutter - - now that I
am trying the balance and fold, it is pretty convenient and I can hide
comments, as well

I think I will ask Barebones to consider allowing us to create custom
gutter-anchored fold points - - that is what I would use most often and this
is a neat feature I have used in Eclipse.

thanks to all

S

On Fri, Apr 9, 2010 at 2:14 PM, Toadling  wrote:

> On Apr 9, 2010, at 10:47 AM, Charlie Garrison wrote:
>
> > Where are the files located? Are you opening them locally or from a
> remote server?
>
> Ah yes, that's a very good observation. Mine are all local, which might
> explain why the folds are preserved for me but not for Stephen.
>
> If one were to access files remotely with, say, an FTP app like Transmit or
> BBEdit's built-in FTP client, those files only get saved to a temp dir on
> the local machine, typically with funky names to ensure uniqueness. So any
> state information BBEdit saves about the file becomes useless once the
> document is closed.
>
> I'm not sure about this, but I think Interarchy was a little more helpful
> in this regard. Does it save files locally with their actual names intact,
> allowing BBEdit to make better use of its saved state info? Maybe someone
> with Interarchy installed can confirm or contradict my recollection?
>
> Another option might be to sync copies of the files to the local machine
> using rsync, or use the directory syncing facilities in Transmit or
> Interarchy. Or simply mount the remote file system with something like
> ExpanDrive/MacFUSE.
>
> -Dennis
>
> --
> 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.
>
> To unsubscribe, reply using "remove me" as the subject.
>

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

Re: Balance and Fold Question

2010-04-09 Thread Toadling
On Apr 9, 2010, at 10:47 AM, Charlie Garrison wrote:

> Where are the files located? Are you opening them locally or from a remote 
> server?

Ah yes, that's a very good observation. Mine are all local, which might explain 
why the folds are preserved for me but not for Stephen.

If one were to access files remotely with, say, an FTP app like Transmit or 
BBEdit's built-in FTP client, those files only get saved to a temp dir on the 
local machine, typically with funky names to ensure uniqueness. So any state 
information BBEdit saves about the file becomes useless once the document is 
closed.

I'm not sure about this, but I think Interarchy was a little more helpful in 
this regard. Does it save files locally with their actual names intact, 
allowing BBEdit to make better use of its saved state info? Maybe someone with 
Interarchy installed can confirm or contradict my recollection?

Another option might be to sync copies of the files to the local machine using 
rsync, or use the directory syncing facilities in Transmit or Interarchy. Or 
simply mount the remote file system with something like ExpanDrive/MacFUSE.

-Dennis

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

To unsubscribe, reply using "remove me" as the subject.


Re: Balance and Fold Question

2010-04-09 Thread Charlie Garrison

Good morning,

On 9/04/10 at 9:41 AM -0700, Kendall Conrad 
 wrote:



A note on sigs, they only apply to the email versions. Some of us only
use this list from the Google Groups web site and use that interface,
which does not show the signature mentioned. I don't believe I've ever
seen the sig as I only use the group site.


It never occurred to me that someone would read mailing list 
messages via a web site. And in that case the info about the 
list (& how to contact BBSW) is on the 'About this group' page 
(link on right of each page).



As for the preferences, I do indeed have all of those settings - not sure
why the folds I have set are not honored but I will ask them - - it is quite
likely operator error here


Where are the files located? Are you opening them locally or 
from a remote server?



Charlie

--
   Ꮚ Charlie Garrison ♊ 

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
〠  http://www.ietf.org/rfc/rfc1855.txt

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


To unsubscribe, reply using "remove me" as the subject.


Re: Balance and Fold Question

2010-04-09 Thread stephen taylor
Hi Dennis

Thank so much for the detailed reply - I now understand a lot better.

I will contact Barebones again with a feature request

As for the preferences, I do indeed have all of those settings - not sure
why the folds I have set are not honored but I will ask them - - it is quite
likely operator error here

Thanks again and I will post if and when I get a reply from Barebones.

S



On Fri, Apr 9, 2010 at 12:08 PM, Toadling  wrote:

> On Apr 9, 2010, at 8:31 AM, stephen taylor wrote:
>
> > but I am not sure what you mean by "the sig of each message"?
>
> Charlie means the footer attached to the bottom of each message. The Bare
> Bones people *do* frequent this list, but I suspect it's only as time
> permits. If you have a real support issue that requires a response, you
> should go through the official channels, which is to contact tech support
> directly. And even then, it may take a day or two for them to get back to
> you depending on the load they're facing. Personally, I've always gotten a
> response, often the same day.
>
> > my problem, though, is that in long scripts, I am often fold lots of
> logic (which takes time) - - and then the saved state is blown away on
> restart.
>
> All my folds are saved between launches, whether from a predetermined fold
> in the gutter or an arbitrary selection.
>
> Maybe you don't have your preferences set to preserve document state? What
> are your settings for the "Preferences -> Text Files -> Honor saved state"?
> Do you have the "Save document state" checkbox enabled on that same
> preference pane?
>
> > Still, even using balance and fold  - - is there some reason that you
> know of that files mapped to php do not have folding capability in the
> gutter for logic blocks (only for functions)?
> > whereas files mapped to Javascript (and perl (I think) and others) do?
>
> PHP, Perl, and JavaScript all use different language modules. The
> JavaScript module seems to have more sophisticated folding capabilities than
> the PHP module.
>
> IIRC, the JavaScript module provides fold markers for any block greater
> than four lines (configurable with a hidden default). The PHP module, on the
> other hand, only provides fold markers for top-level blocks.
>
> So at this point, I think your only option is to make use of arbitrary
> folds or, as Charlie suggested, the balance and fold command when working
> with PHP. Be sure to also send in your feature request to Bare Bones for
> improvements to the PHP module.
>
> Hope this helps.
>
> -Dennis
>
> --
> 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.
>
> To unsubscribe, reply using "remove me" as the subject.
>

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

Re: Balance and Fold Question

2010-04-09 Thread Kendall Conrad
A note on sigs, they only apply to the email versions. Some of us only
use this list from the Google Groups web site and use that interface,
which does not show the signature mentioned. I don't believe I've ever
seen the sig as I only use the group site.

-Kendall

On Apr 9, 12:27 pm, Charlie Garrison  wrote:
>
> Every message from this list has a signature at the end.
>

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

To unsubscribe, reply using "remove me" as the subject.


Re: Balance and Fold Question

2010-04-09 Thread Charlie Garrison

Good morning,

On 9/04/10 at 11:31 AM -0400, stephen taylor 
 wrote:



I do not often post here - - I just read many of the posts for my own
edification - - so, I apologize for my lack of knowledge - - but I am not
sure what you mean by "the sig of each message"?


Every message from this list has a signature at the end.


Still, even using balance and fold  - - is there some reason that you know
of that files mapped to php do not have folding capability in the gutter for
logic blocks (only for functions)?


I don't know the nuances of auto-fold points for different 
languages. That's one reason I like 'Balance & Fold'; when 
combined with 'Balance' it gives me more control over where code 
will be folded, and I don't have to rely on the auto-fold points 
being where I want for each language.



Charlie

--
   Ꮚ Charlie Garrison ♊ 

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
〠  http://www.ietf.org/rfc/rfc1855.txt

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


To unsubscribe, reply using "remove me" as the subject.


Re: Balance and Fold Question

2010-04-09 Thread Toadling
On Apr 9, 2010, at 8:31 AM, stephen taylor wrote:

> but I am not sure what you mean by "the sig of each message"?

Charlie means the footer attached to the bottom of each message. The Bare Bones 
people *do* frequent this list, but I suspect it's only as time permits. If you 
have a real support issue that requires a response, you should go through the 
official channels, which is to contact tech support directly. And even then, it 
may take a day or two for them to get back to you depending on the load they're 
facing. Personally, I've always gotten a response, often the same day.

> my problem, though, is that in long scripts, I am often fold lots of logic 
> (which takes time) - - and then the saved state is blown away on restart.

All my folds are saved between launches, whether from a predetermined fold in 
the gutter or an arbitrary selection.

Maybe you don't have your preferences set to preserve document state? What are 
your settings for the "Preferences -> Text Files -> Honor saved state"? Do you 
have the "Save document state" checkbox enabled on that same preference pane?

> Still, even using balance and fold  - - is there some reason that you know of 
> that files mapped to php do not have folding capability in the gutter for 
> logic blocks (only for functions)?  
> whereas files mapped to Javascript (and perl (I think) and others) do?

PHP, Perl, and JavaScript all use different language modules. The JavaScript 
module seems to have more sophisticated folding capabilities than the PHP 
module.

IIRC, the JavaScript module provides fold markers for any block greater than 
four lines (configurable with a hidden default). The PHP module, on the other 
hand, only provides fold markers for top-level blocks.

So at this point, I think your only option is to make use of arbitrary folds 
or, as Charlie suggested, the balance and fold command when working with PHP. 
Be sure to also send in your feature request to Bare Bones for improvements to 
the PHP module.

Hope this helps.

-Dennis

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

To unsubscribe, reply using "remove me" as the subject.


Re: Balance and Fold Question

2010-04-09 Thread stephen taylor
Hi Charlie

Thanks for the reply

I do not often post here - - I just read many of the posts for my own
edification - - so, I apologize for my lack of knowledge - - but I am not
sure what you mean by "the sig of each message"?

As for why I think that Barebones staff sees these posts - - I see them all
the time here (or so I thought). Again - apologies for my misunderstanding.

Incidentally, I have written to their support e-mail with no reply . . .
but, I will try again

So, to the question:

Yes,  I do use balance and fold -

- my main problem is that this does not operate as the "gutter folders" do

or so it appears to me

my problem, though, is that in long scripts, I am often fold lots of logic
(which takes time) - - and then the saved state is blown away on restart.

Still, even using balance and fold  - - is there some reason that you know
of that files mapped to php do not have folding capability in the gutter for
logic blocks (only for functions)?

whereas files mapped to Javascript (and perl (I think) and others) do?

Thanks for your attention to my question and I will (again) contact
Barebones

S

On Fri, Apr 9, 2010 at 10:47 AM, Charlie Garrison wrote:

> Good morning,
>
>
> On 9/04/10 at 7:07 AM -0700, newtonp...@gmail.com wrote:
>
>  I am disappointed that no one from BBEdit has responded to 2 separate
>> questions I have asked on the same topic - - this post is formatted as
>> a reply to my own question.
>>
>
> Have you followed the instructions in the sig of each message?
>
>
>  If you have a feature request or would like to report a problem,
>  please email "supp...@barebones.com" rather than posting to the group.
>
>  I thought that tech folks from Barebones monitor this forum ( as is
>> the case with most companies) and I have seen in the past that they
>> regularly answer questions.
>>
>
> I'm not sure where you got that idea. While there are BBSW staff on this
> list; they have made it clear this list is not the best way to correspond
> with BBSW if you require a response.
>
>
>  1) fold logic and operation blocks (by which I mean if-else-switch-
>>> foreach and so on) enclosed by brackets - - other than the temporary
>>> (and - - to me - - unwieldy) command "fold selection";  in particular,
>>> I would like to have the "fold arrow" appear in the gutter (as it
>>> often does in other editors)
>>>
>>
> Will Balance & Fold (rather than Fold Selection) work for you? I generally
> prefer Balance & Fold anyway since it means I don't have to reach for the
> mouse.
>
>
> Charlie
>
> --
>   Ꮚ Charlie Garrison ♊ 
>
> O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
> 〠  http://www.ietf.org/rfc/rfc1855.txt
>
>
> --
> 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.
>
> To unsubscribe, reply using "remove me" as the subject.
>

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

Re: Balance and Fold Question

2010-04-09 Thread Charlie Garrison

Good morning,

On 9/04/10 at 7:07 AM -0700, newtonp...@gmail.com wrote:


I am disappointed that no one from BBEdit has responded to 2 separate
questions I have asked on the same topic - - this post is formatted as
a reply to my own question.


Have you followed the instructions in the sig of each message?

  If you have a feature request or would like to report a problem,
  please email "supp...@barebones.com" rather than posting to 
the group.



I thought that tech folks from Barebones monitor this forum ( as is
the case with most companies) and I have seen in the past that they
regularly answer questions.


I'm not sure where you got that idea. While there are BBSW staff 
on this list; they have made it clear this list is not the best 
way to correspond with BBSW if you require a response.



1) fold logic and operation blocks (by which I mean if-else-switch-
foreach and so on) enclosed by brackets - - other than the temporary
(and - - to me - - unwieldy) command "fold selection";  in particular,
I would like to have the "fold arrow" appear in the gutter (as it
often does in other editors)


Will Balance & Fold (rather than Fold Selection) work for you? I 
generally prefer Balance & Fold anyway since it means I don't 
have to reach for the mouse.



Charlie

--
   Ꮚ Charlie Garrison ♊ 

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
〠  http://www.ietf.org/rfc/rfc1855.txt

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


To unsubscribe, reply using "remove me" as the subject.


Re: Balance and Fold Question

2010-04-09 Thread newtonp...@gmail.com
Two things before I get to my point:

1) I am grateful for and have admiration for the people who volunteer
on this message board to help people with questions.

Kudos to all of you

2) I really like BBEdit and find it useful across a wide range of
development projects.

To my point:

I am disappointed that no one from BBEdit has responded to 2 separate
questions I have asked on the same topic - - this post is formatted as
a reply to my own question.

I thought that tech folks from Barebones monitor this forum ( as is
the case with most companies) and I have seen in the past that they
regularly answer questions.

This is not at all a rant - - but more of an appeal for help on this -
- and certainly not (in any way) a slam at any one (especially the non
Barebones employees that contribute here.

Rather - - a question: could someone from Barebones (or another kind
volunteer) please tell me if there is an answer to the question?

thanks so much.

S

On Mar 31, 9:05 am, "newtonp...@gmail.com" 
wrote:
> I had previously asked a somewhat-related question in another thread,
> got an answer and then asked the following question (more succinctly)
> in a reply-to-the-reply - - but I suspect that my second question got
> lost.  I apologize for the length here, but I want to be as specific
> as possible.
>
> So, here it is:
>
> Is there are setting whereby I can force php scripts to:
>
> 1) fold logic and operation blocks (by which I mean if-else-switch-
> foreach and so on) enclosed by brackets - - other than the temporary
> (and - - to me - - unwieldy) command "fold selection";  in particular,
> I would like to have the "fold arrow" appear in the gutter (as it
> often does in other editors)
>
> Specifically: I must be able to fold structures like the following at
> each bracket:
>
> if (conditional_1) {
>  logic block}
>
> else if (conditional_2) {
>  switch ($op) {
>    bunch of case statements
>  }}
>
> else {
>  foreach(array as array_2) {
>   if (conditional_3) {
>    some logic
>    break;
>   }
>  }
>
> }
>
> There are times this logic gets quite deep (such as in parsing and
> evaluating complex xml blocks.
>
> For debugging, it is vital that I be able to conveniently open and
> close these blocks.
>
> In BBEdit javascript documents, I am able to do this - - and I have
> configured php identically.
>
> Am I missing something?
>
> 2) fold properly-closed and properly formatted tags that occur in the
> following context:
>
> 
>     some logic
> ?>
> 
>
> This is quite important in the context of Drupal scripts where the
> logic can get quite complex. Without this ability, it is difficult to
> debug the scripts.
>
> Thanks so much and sorry for the length here.

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

To unsubscribe, reply using "remove me" as the subject.


Balance and Fold Question

2010-03-31 Thread newtonp...@gmail.com
I had previously asked a somewhat-related question in another thread,
got an answer and then asked the following question (more succinctly)
in a reply-to-the-reply - - but I suspect that my second question got
lost.  I apologize for the length here, but I want to be as specific
as possible.

So, here it is:

Is there are setting whereby I can force php scripts to:

1) fold logic and operation blocks (by which I mean if-else-switch-
foreach and so on) enclosed by brackets - - other than the temporary
(and - - to me - - unwieldy) command "fold selection";  in particular,
I would like to have the "fold arrow" appear in the gutter (as it
often does in other editors)

Specifically: I must be able to fold structures like the following at
each bracket:

if (conditional_1) {
 logic block
}
else if (conditional_2) {
 switch ($op) {
   bunch of case statements
 }
}
else {
 foreach(array as array_2) {
  if (conditional_3) {
   some logic
   break;
  }
 }
}

There are times this logic gets quite deep (such as in parsing and
evaluating complex xml blocks.

For debugging, it is vital that I be able to conveniently open and
close these blocks.

In BBEdit javascript documents, I am able to do this - - and I have
configured php identically.

Am I missing something?

2) fold properly-closed and properly formatted tags that occur in the
following context:





This is quite important in the context of Drupal scripts where the
logic can get quite complex. Without this ability, it is difficult to
debug the scripts.

Thanks so much and sorry for the length here.

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

To unsubscribe, reply using "remove me" as the subject.