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

2018-04-14 Thread Nicolas Goaziou
"Frankie Y. Liu" writes: > When you said you cannot reproduce it, does that mean it works/matches for > you? It does, indeed.

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

2018-04-14 Thread Frankie Y. Liu
Hi Nicolas, Sorry I mistyped in the message, I did have two colons when trying it out. I will look into the function you pointed out. When you said you cannot reproduce it, does that mean it works/matches for you? I am using Emacs 25.3.5 and org-20180226 -f On Sat, Apr 14, 2018 at 12:42 AM, Ni

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

2018-04-14 Thread Nicolas Goaziou
Hello, "Frankie Y. Liu" writes: > For: > > \\.pdf:\\([0-9]+\\)\\' You forgot a colon. > [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. I cannot reproduce it here. The function

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

2018-04-12 Thread Frankie Y. Liu
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

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

2018-04-12 Thread Nicolas Goaziou
Hello, "Frankie Y. Liu" 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 Goazi