On Mar 27, 2006, at 11:09, Greg Raven wrote:
I just tried it. If I have an HTML file open, and select the
filename and the extension in the document, BBEdit will open the
file. If I select only the filename portion of the filename, BBEdit
will open the file. If I select the filename and a portion of the
extension, BBEdit gives me an error message. That seems pretty
straightforward, to me.
To be clear I want to describe a demonstration of how "Open
Selection" does not work for me.
1. Create a folder in a convenient location like the Desktop. Call it
"test".
2. Create a text file containing the following two lines:
a = foo(x);
foo.m;
3. Save this file in the "test" folder on the Desktop. Call it
"bar.m" for the sake of tradition.
4. Create a new text file also in the "test" folder named "foo.m".
5. Now close "foo.m" and open "bar.m".
6. Select the characters "foo" in the line "a = foo(x);". Control
click and select "Open Selection" from the contextual menu. Notice
that BBEdit cannot find the file.
7. Now select the same set of characters, "foo", from the second
line, and repeat the contextual menu selection.
8. Note that BBEdit extends the selection to include the file
extension that is explicitly present in the source file, and then
correctly locates and opens "foo.m".
Note that the behavior demonstrated in steps 7 and 8 are what is
described in the manual, and attested to by the respondents so far.
What I need, and the MATLAB native editor provides, is a way to open
a source file by selecting the name of the file in the text of the
code calling that file. In MATLAB the name of the file and the name
of the function used are one and the same. I could use the MATLAB
editor, but I have this highly priced, otherwise extremely versatile
editor that I would prefer to use. Before the MLP (mailing list
police) crack down, I want to say that I am simply airing my request
here on the mailing list first, to be sure I am not missing anything,
and then I will formally make a feature request with Bare Bones
Software.
Finally, I will note that I am not the first to make this request. I
did go the the mailing list archives first to see if there was a
solution already documented and found a similar request made by
Maarten Sneep more than 2 years ago. His request was made in the
context of writing LaTeX code (20 Jan 2004 3:50:14 AM PST, "How to
automatically add a file extension to the open selection command").
At that time no-one responded to his posting.
Dan
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>