I did it again-CaSe PrObLeM

2019-05-03 Thread verdonv
If you want to fix it properly, use a series of case-sensitive mult- file 
search and replaces. If you want to put a band aid on it, and are using and 
Apache server, and can configure Apache or get a sysadmin to do it... there is 
a 'Spelling' module for Apache, which amongst other things will make it 
case-insensitive.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, 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: A "notebook" for BBEdit?

2018-05-22 Thread verdonv
Sorry, missed a little stuff in the original post. 

On Tuesday, May 22, 2018 at 10:52:52 AM UTC-4, verdonv wrote:
>
> What about Yojimbo? I know it's it sore need of an update, but I still 
> find it indispensable. For the $3/month the synching costs me, it's well 
> worth it. I wish it would play nicer with iOS, but still hugely useful for 
> all sorts of stuff on my desktops, where the bulk of my work is still done.
>
> On Tuesday, April 28, 2015 at 3:49:56 AM UTC-4, 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: <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: A "notebook" for BBEdit?

2018-05-22 Thread verdonv
What about Yojimbo? I know it's it sore need of an update, but I still find 
it indispensable. For the $3/month the synching costs me, it's well worth 
it. I wish it would play nicer with iOS, but still hugely useful for all 
sorts of stuff on my desktops, where the bulk of my work is still done.

On Tuesday, April 28, 2015 at 3:49:56 AM UTC-4, 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.
Visit this group at https://groups.google.com/group/bbedit.


Re: Code coloring goes away after some edits

2017-05-12 Thread verdonv
A way to trick it to refresh is to use the little language control at the 
bottom of the window and change it to something else, anything else, and 
then change it back to PHP in HTML.


On Thursday, May 11, 2017 at 8:55:49 PM UTC-4, Troy Meyers wrote:
>
> I'm working on a PHP in HTML page, also has JavaScript in it. Sometimes 
> when I'm editing, maybe just when typing in HTML tags, the code coloring 
> goes away, perhaps it's all the coloring below the edit, and it doesn't 
> come back when I close the tag or add the  tag. If I save the 
> file and close it, then reopen it, the coloring is restored.
>
> Is this a bug? Is there a "Refresh" function so that I don't have to close 
> and reopen?
>
> I don't know if it's related, but just after this happened the most recent 
> time, BBEdit beach balled and I had to force quit after a few minutes when 
> I gave up. I didn't get to save, close, reopen. I've got the "problem 
> report".
>
> BBEdit 11.6.5 (397066) Yosemite 10.10.5  24GB RAM  3.2 GHz Intel Core i5
>
> Troy
>
>
>

-- 
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: Edit > Show Clipboard (BBEdit 10)

2015-12-18 Thread verdonv
Why not use a clipboard manager? I've been using http://www.clipmenu.com 
for years... can't imagine working without something like that. There are 
others out there too.

-- 
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: Scripting search/replace

2011-08-23 Thread verdonv
 Right.  I explained that already.  Perhaps my explanation wasn't clear?
No it was fine. It just took a bit to sink in ;-)

 I also explained that the major problem remaining is that clippings EAT 
 trailing whitespace even if they themselves CONTAIN whitespace.  That takes a 
 little working around; the script appended does so.
I ran into something that must have been that in one of my attempts.

I REALLY appreciate your appended script. I'm reading through it now
to see if I can sort out what it's doing. The language constructs are
foreign to me, but I should be able to puzzle through the logic.

Thanks again,
v

On Aug 23, 9:34 am, Christopher Stone listmeis...@thestoneforge.com
wrote:
 On Aug 22, 2011, at 17:20, verdonv wrote:

  After looking through the BBEdit script library, I realize the problem is 
  that the 'replace' actually returns an integer that represents the number 
  of instances of the pattern changed, and not the changed string.

 Right.  I explained that already.  Perhaps my explanation wasn't clear?

  I know it seems silly, but given this, and the way that Clippings work, I 
  think I'll have to fudge this so that the applescript does the replace on 
  the selection, then copies the modified selection and returns it to the 
  clipping, so the clipping can insert it...

 I also explained that the major problem remaining is that clippings EAT 
 trailing whitespace even if they themselves CONTAIN whitespace.  That takes a 
 little working around; the script appended does so.

  Anyways, this is an applescript question and not a BBEdit question, so I'll 
  take the discussion to a more appropriate forum.

 Any questions about scripting BBEdit are appropriate to this forum.

 --
 Best Regards,
 Chris

 
 tell application BBEdit
   try
     tell front text window
       tell text of selection
         replace (\\w+) using ¬
           [\\1] options {search mode:grep, case sensitive:false}
         set selText to its contents
         set chrOfst to its characterOffset
         set selLen to its length
         set selLen2 to selLen
       end tell
       repeat while selText ends with return
         set selText to text 1 thru -2 of selText
         set selLen to selLen - 1
       end repeat
       if selLen2 ≠ selLen then
         select (characters chrOfst thru (chrOfst + selLen - 1))
       end if
       set sel to contents of text of selection
       return sel
     end tell
   on error errMsg number errNum
     set sep to ==
     set e to sep  return  Error:   errMsg  return  sep  return ¬
        Error Number:   errNum  return  sep
     beep
     display dialog e
   end try
 end tell
 

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Scripting search/replace

2011-08-22 Thread verdonv
After looking through the BBEdit script library, I realize the problem
is that the 'replace' actually returns an integer that represents the
number of instances of the pattern changed, and not the changed
string. I know it seems silly, but given this, and the way that
Clippings work, I think I'll have to fudge this so that the
applescript does the replace on the selection, then copies the
modified selection and returns it to the clipping, so the clipping can
insert it... seems kind of round-about, but I really want to keep all
this within the clipping set.

Anyways, this is an applescript question and not a BBEdit question, so
I'll take the discussion to a more appropriate forum.

tty,
v

On Aug 20, 7:27 pm, verdonv verd...@verdon.ca wrote:
 Yes, that's the sort of direction I was trying to go with the 'as
 alias' thing... My thoughts, a) create a string from the contents of
 the selection, b) run the replace on the string, c) return the string,
 which the clipping will replace the original selection with... I just
 don't know much about applescript ;-)

 My original attempt works, but also produces the error/alert.

 v

 On Aug 20, 6:33 pm, Christopher Stone listmeis...@thestoneforge.com
 wrote:







  On Aug 20, 2011, at 15:54, verdonv wrote: Thanks for the feedback and the 
  example. I like the simpler pattern too :-)

  __

  Hey Verdon,

  You bet.

   As to why I am activating it from a clipping, well because it is part of 
   a bigger set of clippings. Clippings are the sensible method for most of 
   the set. This one is the oddball, but I want to keep everything together 
   in one toolbox, so to speak.

  If I understand the clipping/script mechanism correctly the script must 
  return a text value, which the clipping will emplace.

  The trouble is that your script acts on the selection, and then the 
  clipping wants to change the selection again to the output of the script.

  I was going to say that you could go ahead and get the selection after the 
  replace and return it, but there's some funky issue with whitespace getting 
  eaten.

  --
  Best Regards,
  Chris

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Scripting search/replace

2011-08-20 Thread verdonv
Hi Chris,

Thanks for the feedback and the example. I like the simpler pattern
too :-)

As to why I am activating it from a clipping, well because it is part
of a bigger set of clippings. Clippings are the sensible method for
most of the set. This one is the oddball, but I want to keep
everything together in one toolbox, so to speak.

best rgds,
verdon


On Aug 20, 2:16 pm, Christopher Stone listmeis...@thestoneforge.com
wrote:
 On Aug 20, 2011, at 08:03, Verdon Vaillancourt wrote:

  I am writing a tiny applescript, that I invoke with a clipping, to do a 
  search/replace on a string and return the string. I'm mostly there.

 __

 Hey Verdon,

 Any special reason you're activating this with a clipping rather simply 
 putting your script in the script menu?

 When you 'return chords' you're getting back something similar to:

  characters 2 thru 42 of text document 1 of application BBEdit

 BBEdit then want to use this to replace the text you've already replaced with 
 the script, but the data types don't match up.

 Why not just use a script in the first place?

 tell application BBEdit
   tell selection of front text window
     replace (\\w+) using ¬
       [\\1] options {search mode:grep, case sensitive:false}
   end tell
 end tell

 --
 Best Regards,
 Chris

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Scripting search/replace

2011-08-20 Thread verdonv
Yes, that's the sort of direction I was trying to go with the 'as
alias' thing... My thoughts, a) create a string from the contents of
the selection, b) run the replace on the string, c) return the string,
which the clipping will replace the original selection with... I just
don't know much about applescript ;-)

My original attempt works, but also produces the error/alert.

v


On Aug 20, 6:33 pm, Christopher Stone listmeis...@thestoneforge.com
wrote:
 On Aug 20, 2011, at 15:54, verdonv wrote: Thanks for the feedback and the 
 example. I like the simpler pattern too :-)

 __

 Hey Verdon,

 You bet.

  As to why I am activating it from a clipping, well because it is part of a 
  bigger set of clippings. Clippings are the sensible method for most of the 
  set. This one is the oddball, but I want to keep everything together in one 
  toolbox, so to speak.

 If I understand the clipping/script mechanism correctly the script must 
 return a text value, which the clipping will emplace.

 The trouble is that your script acts on the selection, and then the clipping 
 wants to change the selection again to the output of the script.

 I was going to say that you could go ahead and get the selection after the 
 replace and return it, but there's some funky issue with whitespace getting 
 eaten.

 --
 Best Regards,
 Chris

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Clipping and indent

2011-08-09 Thread verdonv
Thanks very much Prachi,

That did the job (and gives me a working example for other similar
things). I was nearly at something like this in one of my earlier
attempts. I think I wasn't instantiating the var first, which I wanted
to return as a string... or something like that. I tried so many
similar things, I may be confused ;-)

Thanks to all for your suggestions.

Best rgds,
v

On Aug 9, 12:56 am, Prachi Gauriar pra...@quantumlenscap.com wrote:
 On Aug 8, 9:34 am, verdonv verd...@verdon.ca wrote:









  Well, I think I'm on the right track combining applescript with a
  clipping, but I'm missing something really basic in my applescript.

  My clipping is

  {c:Chorus}
      {soc}
  #SCRIPT indentselection.scpt#
      {eoc}

  My applescript is

  set INDENT_STRING to     
  set selectionLines to every line of selection
  repeat with selectionLine in selectionLines
          set selectionLine to INDENT_STRING  selectionLine
  end repeat

 When using scripts with clippings, you need to return a string at the
 end:

 Try this script:

 tell application BBEdit
         set INDENT_STRING to      
         set indentedLines to INDENT_STRING  return
         set selectionLines to every line of selection
         repeat with selectionLine in selectionLines
                 set indentedLines to indentedLines  INDENT_STRING  
 selectionLine 
 return
         end repeat
         return indentedLines
 end tell

 with this clipping:

 {c:Chorus}
     {soc}#SCRIPT indentselection.scpt#{eoc}

 While, John’s suggestion of using a UNIX filter is a bit cleaner than
 this AppleScript + Clipping stuff, the unfortunate thing about UNIX
 filters is that if you don’t have anything selected, it operates on
 the entire text of the selection, which might not be what you want.

 -Prachi

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Clipping and indent

2011-08-08 Thread verdonv
Well, I think I'm on the right track combining applescript with a
clipping, but I'm missing something really basic in my applescript.

My clipping is

{c:Chorus}
{soc}
#SCRIPT indentselection.scpt#
{eoc}


My applescript is

set INDENT_STRING to 
set selectionLines to every line of selection
repeat with selectionLine in selectionLines
set selectionLine to INDENT_STRING  selectionLine
end repeat


My staring text is

Here is a line
And another goes here
The final line wil be next
Isn't this cool


The result is

{c:Chorus}
{soc}
Isn't this cool
{eoc}

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Clipping and indent

2011-08-08 Thread verdonv
Thanks for the example JD. I'm always amazed at the simple elegance or
perl :-)

The only reason that I am trying to keep everything contained in a
clipping set though, is because I have a number of other clippings for
working on these documents' markup (chordpro) and I like the
portability and 'everything in one pallet' aspect of using a clipping
set. I'll keep your example close at hand though.. Thanks again!

V

On Aug 8, 12:53 pm, John Delacour johndelac...@gmail.com wrote:
 At 06:34 -0700 08/08/2011, verdonv wrote:

 Well, I think I'm on the right track combining applescript with a
 clipping, but I'm missing something really basic in my applescript.

 Seems a rather clumsy way to do things.  You can do it with a simple
 text filter (UNIX filter).  Here's one in Perl that will do what you
 want:

 #! /usr/bin/perl
 use strict;
 my $s =      ; # indent string
 my $text = $s;
 while (){ # for each line in the selection
    chomp; # remove line endings
    $text .= $_\n$s; # append line to $text}

 print {c:Chorus}\n$s\{soc}\n$text\{eoc};

 JD

-- 
You received this message because you are subscribed to the 
BBEdit Talk discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Clipping and indent

2011-08-06 Thread verdonv
Hmmm... my formatting seems to get lost in the email version of this..
I'll try again using tab to indicate my indent...

Given that I have an variable number of lines of text like such,

The rain in Spain
falls mainly in the plain
The fog in the bog
makes a slippery log

I'd like to make a clipping that will result in this,

{c:Chorus}
tab{soc}
tabThe rain in Spain
tabfalls mainly in the plain
tabThe fog in the bog
tabmakes a slippery log
tab{eoc}

My rough clipping is like this,

{c:Chorus}
tab{soc}
tab#SELECTIONORINSERTION#tab{eoc}

Which results in this,

{c:Chorus}
tab{soc}
tabThe rain in Spain
falls mainly in the plain
The fog in the bog
makes a slippery log
tab{eoc}

I've tried fiddling with #indent# but I realize now, that's not it's
purpose.

Any thoughts how to get the subsequent lines to indent to the position
of the first in 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
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email supp...@barebones.com rather than posting to the group.
Follow @bbedit on Twitter: http://www.twitter.com/bbedit


Re: Find diffs not finding all diffs when comparing folders

2009-02-23 Thread verdonv

On Feb 21, 10:10 am, Jim Correia corr...@barebones.com wrote:
 On Feb 21, 2009, at 1:04 AM, verdonv wrote:

  Is this behaviour that has changed from bbedit 8 to 9?
 It is just one continuous stream of code for me... :-)
Ha ha.. I can relate to that :)

 Looking at the release notes, it appears that this may be a new  
 feature for 9.0 and later.
Sorry, I could have dug for that info.

 It is unrelated. CVS folders are skipped when diffing trees. There is  
 an expert preference which controls this behavior. See the Expert  
 Preferences in the help.
Thanks for that pointer!

vern

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups BBEdit Talk group.
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 specific feature request or would like to report a suspected (or 
confirmed) problem with the software, please email to supp...@barebones.com 
rather than posting to the group.
-~--~~~~--~~--~--~---