FIles Region root dir?

  • Anonymous - 2012-08-02

    I just tested the FILES region and am a bit puzzled how to make this work as expected:

    If i use the snippet below from the docs..

    #Files glob=*.viki types=f <<

    It always lists viki files in my home directory, not the root of the interwiki i'm in, or the directory the current file is in.
    Is this intended?

  • Tom Link

    Tom Link - 2012-08-13

    The glob() function is run in the current directory. You usage assumed setting the autochdir option. If you don't want to use this option, try the following line instead:

    #Files glob=%:p:h/*.viki types=f <<

    Please let me know if this still doesn't work. (E.g. the indentation could be a little weird.)


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks