R-Junior a écrit :
I'm using SciTE for a few years, and just now I started using custom commands.
I've created a small application to help me on debugging JS applications, where
I supply a directory path, a line number and a file pattern, and the application
will scan the directory and the files, returning the content of the supplied
line number.
I had some limitations I couldn't iron out, and I couldn't find a solution on
the help files:
1) I'm using parameters, but I noticed the dialog asking for them will come
with empty fields if you didn't use it before. Is there a way to supply
default values?
None that I know...
2) I'd like to use the feature of double-clicking the output panel to open
the file. For that I copied the output from "Find in files" built-in command,
and it partially worked.
filename:linenumber "line content"
If the file is already opened, it'll focus it and the specified line, and
works as I desired. But if the file isn't opened, it won't work. The only
way I managed to make it work was supplying the full file path before the
file name, what wouldn't be so good. What can I do?
It works for me as long as the target file is in the working directory,
which is usually the directory of the last loaded file (AFAIK).
Otherwise, I don't know how SciTE would magically guess the path.
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest