[O] Link abbreviations, org-files with searches

2011-10-31 Thread Gustav Wikström
Hello! When defining a link-abbreviation to an org-file with a headline search I manage to get it to work with the following syntax: #+LINK: foo file:/long/path/to/file/foo.org [[foo*heading inside foo]] I have to use four : to be able to search, instead of the three I would expect

Re: [O] Link abbreviations, org-files with searches

2011-10-31 Thread suvayu ali
Hello Gustav, 2011/10/31 Gustav Wikström gustav.e...@gmail.com: Hello! When defining a link-abbreviation to an org-file with a headline search I manage to get it to work with the following syntax:   #+LINK: foo     file:/long/path/to/file/foo.org AFAIK, this is not required. Support for

Re: [O] Link abbreviations, org-files with searches

2011-10-31 Thread Gustav Wikström
Hi Suvayu! I know about the normal links and the possibility to search with these. The thing is that I want to use an abbreviation (see sec. 4.6 in the manual) to not have to type the path for this particular link every time. Instead of typing (1)

Re: [O] Link abbreviations, org-files with searches

2011-10-31 Thread Suvayu Ali
On Mon, 31 Oct 2011 13:33:31 +0100 Gustav Wikström gustav.e...@gmail.com wrote: Hi Suvayu! I know about the normal links and the possibility to search with these. The thing is that I want to use an abbreviation (see sec. 4.6 in the manual) to not have to type the path for this particular

Re: [O] Link abbreviations, org-files with searches

2011-10-31 Thread Gustav Wikström
2011/10/31 Suvayu Ali fatkasuvayu+li...@gmail.com: ... I also know that I could add the ::%s to the link, giving (4): #+LINK: foo     file:/long/path/to/file/foo.org::%s but this makes it unusable as a simple file link without search. I intend to use the link in multiple places inside my

Re: [O] Link abbreviations, org-files with searches

2011-10-31 Thread Suvayu Ali
Hi Gustav, On Mon, 31 Oct 2011 14:55:27 +0100 Gustav Wikström gustav.e...@gmail.com wrote: This works when adding :: to the end of the link. But with this setting I cannot use the link as a simple file-link, eg. the following does not work: #+LINK: foo     file:/long/path/to/file/foo.org::

Re: [O] Link abbreviations, org-files with searches

2011-10-31 Thread Gustav Wikström
2011/10/31 Suvayu Ali fatkasuvayu+li...@gmail.com: Hi Gustav, On Mon, 31 Oct 2011 14:55:27 +0100 Gustav Wikström gustav.e...@gmail.com wrote: This works when adding :: to the end of the link. But with this setting I cannot use the link as a simple file-link, eg. the following does not

Re: [O] Link abbreviations, org-files with searches

2011-10-31 Thread Gustav Wikström
I did some digging and ended at the function org-link-expand-abbrev. According to the org-documentation, abbreviations should be written with: [[linkword:tag]] however the regular expression doing the matching in the function also allows the following: [[linkword::tag]] The greed of the