Closed pfraces closed 10 years ago
Initial development with fake directory tree is done
Next:
cwd
watch
for directory changes in order to refresh internal structureor (much better)
cd
or with tab
completion) instead of managing a tree structureSimulate a chroot
from the real cwd
(directory from which editor is called),
so when cd
is typed it redirects to that directory and cd ..
on root redirects to root
Make .
and ..
an implementation detail (hack on Josh path completion handler)
Normalization
.
, ..
) require path starting on roots;/+;/;g
s;^/([.]+/)+;/;
..
relative tokens and its parents: s;[^./]+/[.][.]/;;g
(this must be runned as
long as matches are foundBut normalization is maybe a responsability of fs.readfile
or fs.readdir
. Isn't it?
BTW fs
implements a normalization path algorithm we can use and forget about its implementation
All paths must be relative to chroot, in order to use the fs
methods with absolute paths (chroot + relative)
process.env.PWD