Hi Keith,

> Nice.  Maintaining completion while supporting search directories 
> invalidates my original solution for completion and implementing it 
> is definitely a jump in complexity.

But its very convenient. Simply saying "#include marker.<TAB>" and
to get it without having trouble to find the right directory is really
cool.

> I think another limitation is that the use of the #cd directive to 
> change directories won't work in files any longer.

I dont think that this is a showstopper for the fully recursive
file lookup. You dont need to do a change dir if all files are
directly available. The list of the base directories could
be expanded at runtime, maybe.

> os.path.normpath(os.path.join(os.path.join(wd, filename))

python's path magic is only for the brave.

> This will essentially return the union of the glob matches for the 
> supplied completion text in all possible search directories if the 
> completion text is not already an absolute filename.  It might get 
> slow if you have a lot of large directories on your search path, but 
> I suspect it will be fine.  I also expect I didn't get it really 
> right but I think it should be close enough that you could get it 
> working if you started with this.

I'll give it a try. Thanks.

Matthias


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to