From: Matthias T. <mt...@we...> - 2012-07-14 18:33:39
|
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 |