[NTG-context] Input path to include external files with vim module
Hans Hagen
pragma at wxs.nl
Wed Jun 20 19:46:56 CEST 2012
On 20-6-2012 19:33, Aditya Mahajan wrote:
> On Tue, 19 Jun 2012, Aditya Mahajan wrote:
>
>> On Mon, 18 Jun 2012, Marco wrote:
>>
>>> does the vim module have a feature to specify the input path,
>>> similar to \usepath for context files or \setupexternalfigures
>>> [directory=…] for graphics?
>
> @Hans: Can we make the following change in file-res.lua
>
> if isfile(fname) then
> if trace_files then
> report_files("found on extra path: %s",fname) --AM: was name
> end
> fnd = fname --- AM: was name
> break
> end
>
> Then, getreadfilename("any", ".", name) will always return the location
> of the found
> file. This is also consistent with the behavior when the file is found
> in ../ or
> ../../ directories.
sure, just call it a bug -)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
More information about the ntg-context
mailing list