pfraces-graveyard / wed

web editor
0 stars 0 forks source link

Josh file completion #19

Closed pfraces closed 10 years ago

pfraces commented 11 years ago
pfraces commented 11 years ago

Initial development with fake directory tree is done

Next:

or (much better)

pfraces commented 11 years ago

Simulate 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

pfraces commented 10 years ago

Make . and .. an implementation detail (hack on Josh path completion handler)

Normalization

But 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

pfraces commented 10 years ago

real cwd

All paths must be relative to chroot, in order to use the fs methods with absolute paths (chroot + relative)

pwd from node-webkit app

process.env.PWD