Re: Parent directory and "../"
Hello,
On Mon, Sep 04, 2006 at 11:23:34AM +0200, Stefano Sabatini wrote:
> macro browser ^ "c^a^k.." "Jump to the parent directory"
[...]
> The problem is that the path ".." seems to be interpreted as the home
> dir, since I get there. The same thing happens with "../", while "./"
> seems to be interpreted in the usual manner (actual directory).
>
> If I select the line in the browser the "../" line then it jumps to the
> parent dir as expected.
Does it realy works interactivly. When you two directories deeper it
works?
I think the directory is always interpreted relative to the start
directory. So if you start one directory deeper then your homedir (for
example ~/Mail) ".." should mean your home dir.
Here the text for changing directories ends always with "../" so a dirty
soltion maybe the following ("^e" could be removed):
macro browser ^ "<change-dir>^e../<enter>"
Problem is the appending of "../" for each press of "^".
By the way: Why should "^" be not doubled. I thought "^" must be escaped
as "^^". But then I have to type two "^".
Greetings
Sebastian Waschik