Menu

#12 Let helpers have filenames as arguments

closed
None
5
2005-05-10
2004-04-03
No

As far as I can tell, helpers are filters unless they
accept no input at all. It would be nice if one could
have Screem run a helper as "some-helper
<name-of-file-one-is-working-on>" in those instances
where running the equivalent of "cat
<name-of-file-one-is-working-on> | some-helper" won't
work. For example, if one is using XHTML, one might use
an XSLT processor to "massage" it, but few XSLT
processors work as filters (why, I don't know). It
would probably be best to use some special escape, say
"%f", in the "Path:" text field of the "Edit Helpers"
dialog that would expand to the name of file one is
working on; this would accomodate command line tools
that have options or other flags after the filename
argument (like many XSLT processors).

Discussion

  • Nobody/Anonymous

    Logged In: NO

    you already can put %f in the "Path:" text,. if that isn't
    working it is a bug.

     
  • David A Knight

    David A Knight - 2004-04-05
    • assigned_to: nobody --> davek
     
  • David A Knight

    David A Knight - 2004-04-05

    Logged In: YES
    user_id=736

    %f is already supported, if this isn't working then it is a bug.

     
  • David A Knight

    David A Knight - 2005-04-17

    Logged In: YES
    user_id=736

    as of 0.13.1 the following are supported.

    %f = current document filename, including directory
    %U = current document uri
    %d = current document directory
    %S = current site directory
    %% = a normal % character

     
  • David A Knight

    David A Knight - 2005-05-10

    Logged In: YES
    user_id=736

    closing as now available in 0.14.0

     
  • David A Knight

    David A Knight - 2005-05-10
    • status: open --> closed
     

Log in to post a comment.