I am sure I am overlooking something basic, but I haven't been able
to make good use of the "Open Selection" command in the contextual
menu for my needs. According to the manual (p29):
1 Select the file name within the body of the document.
2 Choose Open Selection from the File menu.
If a suffix of the form “.x” follows the name, BBEdit will
automatically expand
the selection to include the suffix.
If I am reading this correctly (and I am afraid that I am) then
BBEdit will only open the file if the extension is explicitly present
in the text of the selection. What I would like to use this feature
for is editing MATLAB source code where the function called in the
text is the name of the file, e.g. a function named "foo" is defined
in a text file named "foo.m". If I have a MATLAB file, "bar.m"
containing the line
a = foo(x);
then selecting "foo" and using the "Open Selection" command should
ideally open the file "foo.m". Usually this file is in the same
directory as "bar.m". If BBEdit cannot be made to work this way I
propose that the "Open Selection" command be changed so that it also
automatically looks for files in its usual search path that match the
name selected and the extension of the file containing the selected
text. This would go a long way toward making BBEdit useful as an
external editor for MATLAB, and maybe other environments.
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]>