Perl/Cwd anomaly

2010-02-08 Thread John Delacour


A Perl script I am developing and running from BBE rather than in 
Terminal begins thus:


#!/usr/local/bin/perl
use strict;
use Cwd;
use Math::Trig;
use Svgq;


Now the module Svgq resides in the same directory as the script and 
there is no difficulty locating it, whereas getcwd() always returns 
/, so that relative paths to other files in the directory do not 
work and I need to hard-code the directory in the script.


I think I must be missing some simple trick.  If the module is 
visible then it follows that the directory is included.  Why then 
does Cwd not know where it is?  Is there some preference in BBE that 
will resolve the problem?


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.


Re: Any (hidden) settings for editing window width?

2010-02-08 Thread John Delacour

At 00:37 -0800 8/2/10, hkrems wrote:


Using the 'Apple Magic Mouse' since a couple of days it happens often
that I don't seen the text in the editing window.
Sure it's my fault: I've touched the surface of the mouse and somehow
wiped the text out of sight. But it is annoying
Looking at the slider at the bottom of the window the handle indicates
(to me) that the window is  v e r y  w i d e. Dragging that handle to
the right presents a very white window...


Sounds to me as if your text is not wrapping.  Go to 
Preferences/Editor defaults and check 'Soft wrap text' with options 
that suit the work you generally do.  You can also set options for a 
particular window from the 'T' pop-up menu, third from the left in 
the info banner at the top.


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.


Re: Perl/Cwd anomaly

2010-02-08 Thread Jim Correia
On Feb 8, 2010, at 4:07 AM, John Delacour wrote:

 A Perl script I am developing and running from BBE rather than in Terminal 
 begins thus:
 
 #!/usr/local/bin/perl
 use strict;
 use Cwd;
 use Math::Trig;
 use Svgq;
 
 
 Now the module Svgq resides in the same directory as the script and there is 
 no difficulty locating it, whereas getcwd() always returns /, so that 
 relative paths to other files in the directory do not work and I need to 
 hard-code the directory in the script.
 
 I think I must be missing some simple trick.  If the module is visible then 
 it follows that the directory is included.  Why then does Cwd not know where 
 it is?  Is there some preference in BBE that will resolve the problem?

BBEdit passes -I `script’s directory` when executing the script so that local 
modules are found.

By default, it doesn’t mess with the working directory. You can choose “Run…” 
(hold down the option key) and set “chdir to Script’s Folder” in that dialog if 
you require this behavior. (That setting is sticky.)

- Jim

-- 
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: Perl/Cwd anomaly

2010-02-08 Thread John Delacour

At 08:11 -0500 8/2/10, Jim Correia wrote:

BBEdit passes -I `script’s directory` when executing the script so 
that local modules are found.


By default, it doesn’t mess with the working directory. You can 
choose “Run…” (hold down the option key) and set “chdir to 
Script’s Folder” in that dialog if you require this behavior. 
(That setting is sticky.)


Ah! that's perfect.  Thank you Jim.

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.


Settings for previewing php in BBedit

2010-02-08 Thread jaladuvar
Hey,
Somewhat puzzled as I have to save a php file to preview it in BBEdit
9.3.1 , when it's not required for straightforward html file. Do I do
something wrong ?
my set-up:

iMac Core i7
OSX 10.6.2

MAMP running
site name: 'serveurMAMP' selected for previewing
settings are
local site root: /Applications/MAMP/htdocs
use local preview server: selected
Preview server URL
http://localhost:/
when I create a new file, if I write html code in it the preview with
bbedit works fine, if I put php in it, it doesn't work, if I save this
file in the local site root, then the preview works and whenever I
change code the preview is updated without me saving this to the
file...
Are my settings OK or did I overlook something ?

Thanks for help...

-- 
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: Settings for previewing php in BBedit

2010-02-08 Thread Lorin Rivers
Does the url you provided work in a browser (i.e., is the content rendered 
properly)?

-- 
Lorin Rivers
Mosasaur: Killer Technical Marketing http://www.mosasaur.com
mailto:lriv...@mosasaur.com
512/203.3198 (m)


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


Feature Request : Step through matched strings in documents

2010-02-08 Thread jdx2172
Wished yojimbo had a feature that could jump through the document
highlighting the matched strings, (just like the way it works in
safari when searching for a word in the current document.)

I use yojimbo a lot to store a lot of documents. Tags help to organize
document in collections. But wanted a feature that would make it easy
to quickly navigate to a section of the document. Something like a
bookmark that can be used without taking the hands away from the
keyboard.

I have a scheme to create strings that create a sort of an anchor
within the document. In one instance it creates a string like
#mx.pe.cd in a document. Right now if I search using the find in
library for #mx.pe.cd, it shortlists the items in library to the
document that contains the string. Then once the document is selected
and scrolled through, it shows the string highlighted. Its too much
clicking and dragging in a fast and furious workflow.

I believe a slight modification to this feature would allow us to
organize documents using such anchors which can be quickly accessed
right from the find in library field.

When a string is searched, if the field shows a button next to it that
would allow to jump through the highlighted matches for that string.
this [next, previous] button set could allow us to quickly browse
through the matches within the document/documents.

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