Hi, Mitchell,
You're very helpful, thanks a lot. Using scite.Open( string.sub(abs_path, 2,
-2) ) seems to have solved half of my problem, i.e. open files in the top level
folder. But the problem of openning subfolders is left intact.
Maybe I should describe the problem in more detail. In a fresh buffer, using
the shortcuk keys caf+c, I can open the root folder of the C: disk, which looks
as follows:
File Browser - C:/
Documents and Settings/
Emacs/
Extra Tools/
Grtii/
lout-3.31/
lout-3.31-docs/
MiCTeX/
...
Then, placing the cursor at the end of the line "MiCTeX\" and using the keys
caf+o, the buffer content is changed into
File Browser - C:/
Documents and Settings/
Emacs/
Extra Tools/
Grtii/
lout-3.31/
lout-3.31-docs/
MiCTeX/
Asymptote/
dviout/
LaTeX IDE/
MiKTeX 2.6/
Misc Tools/
Viewers/
Readme.txt
...
Now from here I can open the file Readme.txt without problem. But if I put the
cursor at the end of the line " LaTeX IDE/" and using caf+o again, I get
File Browser - C:/
Documents and Settings/
Emacs/
Extra Tools/
Grtii/
lout-3.31/
lout-3.31-docs/
MiCTeX/
Asymptote/
dviout/
LaTeX IDE/
MiKTeX 2.6/
Misc Tools/
Viewers/
Readme.txt
...
Note that " MiKTeX 2.6/" from above is not a subfolder of "LaTeX
IDE", and there is a double Tab infront of "MiKTeX 2.6". What I expect is that
the content of the subfolder "C:\MiCTeX\LaTeX IDE" should be displayed after
the last operation (i.e. the second use of caf+o mentioned above), but it is
now the case now. What more should I do to get it work? Thanks again.
[EMAIL PROTECTED]
2007-06-11
----- Original Message -----
From: mitchell
To: scite-interest
Sent: 2007-06-11, 02:30:54
Subject: [scite] Re: file_browser.lua in SciTE=tools
mitchell wrote:
> Hi,
>
> > <snip>
> > scite.Open returns error message like
>>
>> cannot open file 'c:\scite"c:\folder\subfolder\file.txt"'
>
> I guess scite.Open doesn't handle quoted strings like it used to. In
> file_browser.lua's get_abs_path function, change the return statement to
> read
> return ROOT..abs_path
> instead of its quoted alternative. I'll fix this in SVN.
Oops, spoke too soon. Find the only occurance of 'scite.Open' and change
the line to read
scite.Open( string.sub(abs_path, 2, -2) )
Do not change get_abs_path because the quotes are needed for LS_CMD and
friends.
Sorry about that,
-Mitchell;
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest