emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-file-apps regex matching against path not link


From: Frankie Y. Liu
Subject: Re: [O] org-file-apps regex matching against path not link
Date: Thu, 12 Apr 2018 15:41:04 -0700

Hi Nicolas,

For:

\\.pdf:\\([0-9]+\\)\\'

[0-9]+ vs \d+ same issue, since the path not the link is being matched.

Example: 
file:foo.pdf::1 will be matching on file:foo.pdf and the ::1 is dropped.

Therefore it doesn't matter what you put after :: it is not being used.





On Thu, Apr 12, 2018 at 12:38 PM, Nicolas Goaziou <address@hidden> wrote:
Hello,

"Frankie Y. Liu" <address@hidden> writes:

> I wanted to open a pdf at a particular page, the instructions under
> org-file-apps suggested using
>
> (add-to-list 'org-file-apps '("\\.pdf::\\(\\d+\\)\\'" . "evince -p %1
> %s"))

What is "\d+"? You may want to try [0-9]+ insteal.

Regards,

--
Nicolas Goaziou


reply via email to

[Prev in Thread] Current Thread [Next in Thread]