From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25992 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pranesh Prakash Newsgroups: gmane.text.pandoc Subject: Re: Proposal: looking for files in `$PWD/filters` etc. Date: Tue, 25 Aug 2020 12:19:33 -0700 (PDT) Message-ID: References: <1cef908b-f628-ac5c-235f-0311bf9f50df@gmail.com> <9362dd24-e6e0-38ec-bb0d-29736ed34b9d@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2200_838623431.1598383173348" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24068"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDA2Z3PTWYIBBRWISX5AKGQEGPL3YZQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 25 21:19:38 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f58.google.com ([209.85.210.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kAeTp-00069L-N3 for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 25 Aug 2020 21:19:37 +0200 Original-Received: by mail-ot1-f58.google.com with SMTP id z23sf5456456ote.14 for ; Tue, 25 Aug 2020 12:19:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=IG73XyObP6pAKAbLsd6tfUaT/NOpWxEJad2CWGcJFIA=; b=R/Is8I/qf6/INYYn4NdjjmQ4IFdoGzfC790uFuyjJSUOhAOBd1HaAn5mLrs7/UUAkN G/duRZurvVfHA3nHpsos64brXEsq71ra0hGenN2NsLKM3p3jdffWW5/sxWwbIxe1c5yR UA+Grhioq8TZ9vOABDx0YiGY7adUxXdLsmLys6dCA7S/6rhbEWXzTjkNLVDLJeUnLiHY cR2FxftyNpvs3mvjg6qcBCoYuPUxUvJUI5ARCNSLdxhbJKmffDP/6lMVTGFt/Uakle1S Qme7uhxFOxonLz9XJQ+GCML4W8Os4nzi917oVwFX4cuyC550xRjKSVIlFv97T5I4C1/M VGDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=IG73XyObP6pAKAbLsd6tfUaT/NOpWxEJad2CWGcJFIA=; b=XxBLKg4pMzQmLCGmqvGnh3yIvTRgE4kP2YeZxdUcJZtryU93fm11QIWCO8QaZVLKI+ aD+eiQEj8SVPUAFtL2UDHNcFp8IjfxWvGN9+Vp8lHFEB3ukhRRDCCJ1zmA+a2MZa4POi u8Jt2WbvQbSb/7RG09JT4hU4zNLVGcL9ltalE1Co3r5n/UsDzBDxJ3mpeM+xKCjBYWk+ gPU2mftBmmAna9QyrMv6BWfJJu/80NLTLxBAco/ir9hCoVrE2orxId1elB9nhDv8DDfT N3viasWAn3VUa81H59j8BMDKE/7/8oDORfJczuR+kKDHW+4w5veN45OID9C2pJqqksr1 oABw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=IG73XyObP6pAKAbLsd6tfUaT/NOpWxEJad2CWGcJFIA=; b=evNhy4398yXN4yVEEmvjKz2WSzx9lVXO1y1wJKmTpqvrEIlOM0cnZaejim98pNJv95 A9w5wh13Lwn09l1+m5rD71Kr1EgqKGoqGsuJjFi1iVk8mW0KN56+IVcqqFwbSXfaEWRG ySoG9rN1alBbKjCcKeJgCBr8fdRLsqDzUQqqH4ecWE8G3cFUjCH8I4Juraf92uLk/B3r Hkl0HIjOyWRA82SdSZbKzMNmmOai3zOA3O3N24pMxSsFDWnZf/xrEIAQca3dEeQySse6 MA9eULxtw/VstYOQKZsF9TJ++5uV59TqYLKd1ig5QLLG9+YJHiu39yfDGCfVe9AARNES rP3A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530/h+khFw2aqp5946AKk9OVQT4yPC7YhqzjLT29s5XhK1/kFstn ZXSqwnwAjR2rxD9hsvffDqA= X-Google-Smtp-Source: ABdhPJyvQWEAJOYshclug9lPBRkvtIoDYsWecLICRwKY38S+F6HPLvcVX6+0rLh19szQ74aZvKwWgg== X-Received: by 2002:a05:6830:1d94:: with SMTP id y20mr775485oti.129.1598383176681; Tue, 25 Aug 2020 12:19:36 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:6a13:: with SMTP id g19ls3260277otn.6.gmail; Tue, 25 Aug 2020 12:19:34 -0700 (PDT) X-Received: by 2002:a9d:3ea3:: with SMTP id b32mr7155253otc.95.1598383173983; Tue, 25 Aug 2020 12:19:33 -0700 (PDT) In-Reply-To: <9362dd24-e6e0-38ec-bb0d-29736ed34b9d-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: the.solipsist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:25992 Archived-At: ------=_Part_2200_838623431.1598383173348 Content-Type: multipart/alternative; boundary="----=_Part_2201_1718930491.1598383173348" ------=_Part_2201_1718930491.1598383173348 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'm sorry, but I hadn't seen this before submitting this to the issue=20 tracker as an enhancement request: https://github.com/jgm/pandoc/issues/6635 In that I talk about a different, but somewhat similar problem: searching= =20 for filters within sub-folders, that is: being able to say `pandoc=20 --lua-filter=3Dwordcount.lua` to be call `$DATADIR/filters/wordcount/wordco= unt.lua`. =20 (Just saying `--lua-filter=3Dwordcount` would be even better, since the fil= e=20 extension is assumed.) I should probably have started a discussion rather than opening it in the= =20 issue tracker. On Monday, 17 August, 2020 at 6:53:05 pm UTC+5:30 BP wrote: > On 2020-08-17 15:15, Gabriel N=C3=BCtzi wrote: > > Isn't it that you can set: > >=20 > > resource-path: ["./filters] See > >=20 > https://github.com/gabyx/TechnicalMarkdown/blob/master/convert/pandoc/def= aults/pandoc-dirs.yaml=20 > > BR > > Yes, but I still want pandoc to look for filters (and other files) not=20 > found in or under the current directory in or under the default data=20 > directory. Sorry if that wasn't as obvious as I thought it was. > > >=20 > > Am 8/17/2020 um 3:00 PM schrieb BPJ: > >> I=E2=80=99m not sure if I have brought up this before, but in anything= but=20 > >> trivial projects I usually keep filters, templates and now defaults=20 > >> files in subdirectories of the project directory called =E2=80=94 not= =20 > >> surprisingly =E2=80=94 `filters`, `templates`, `defaults`. Now for eac= h filter=20 > >> I list I have to type the relative path `filters/foo.lua`. It would be= =20 > >> nice if Pandoc before looking for filters etc. not found in the=20 > >> current directory in appropriately named subdirectories of the data=20 > >> directory looked in the appropriately named subdirectories of the=20 > >> current directory. What do the devs and others think about this? > >> > >> > >> /bpj > >> > >=20 > > --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/d3980e63-0da3-4f5f-ac37-6e96a9f33731n%40googlegroups.com. ------=_Part_2201_1718930491.1598383173348 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'm sorry, but I hadn't seen this before submitting this to the issue track= er as an enhancement request:
https://github.com/jgm/pandoc/issues/6635<= br>
In that I talk about a different, but somewhat similar problem:= searching for filters within sub-folders, that is: being able to say `pand= oc --lua-filter=3Dwordcount.lua` to be call `$DATADIR/filters/wordcou= nt/wordcount.lua`.  (Just saying `--lua-filter=3Dwordcount` would be e= ven better, since the file extension is assumed.)

I should probably have started a discussion rather than opening it i= n the issue tracker.

<= div dir=3D"auto" class=3D"gmail_attr">On Monday, 17 August, 2020 at 6:53:05= pm UTC+5:30 BP wrote:
On 2020-08-17 15:15, Gabriel N=C3=BCtzi wrote:
> Isn't it that you can set:
>=20
> resource-path: ["./filters] See
> https://github.com/gabyx/TechnicalMarkdo= wn/blob/master/convert/pandoc/defaults/pandoc-dirs.yaml=20
> BR

Yes, but I still want pandoc to look for filters (and other files) not= =20
found in or under the current directory in or under the default data=20
directory. Sorry if that wasn't as obvious as I thought it was.

>=20
> Am 8/17/2020 um 3:00 PM schrieb BPJ:
>> I=E2=80=99m not sure if I have brought up this before, but in = anything but=20
>> trivial projects I usually keep filters, templates and now def= aults=20
>> files in subdirectories of the project directory called =E2=80= =94 not=20
>> surprisingly =E2=80=94 `filters`, `templates`, `defaults`. Now= for each filter=20
>> I list I have to type the relative path `filters/foo.lua`. It = would be=20
>> nice if Pandoc before looking for filters etc. not found in th= e=20
>> current directory in appropriately named subdirectories of the= data=20
>> directory looked in the appropriately named subdirectories of = the=20
>> current directory. What do the devs and others think about thi= s?
>>
>>
>> /bpj
>>
>=20

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/d3980e63-0da3-4f5f-ac37-6e96a9f33731n%40googlegroups.= com.
------=_Part_2201_1718930491.1598383173348-- ------=_Part_2200_838623431.1598383173348--