From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Link abbreviations, org-files with searches Date: Mon, 31 Oct 2011 14:01:21 +0100 Message-ID: <20111031140121.3a8d02de@kuru.homelinux.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKrUa-0005w4-Ph for emacs-orgmode@gnu.org; Mon, 31 Oct 2011 09:01:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RKrUX-0006Qz-T1 for emacs-orgmode@gnu.org; Mon, 31 Oct 2011 09:01:32 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:64644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKrUX-0006QL-Nc for emacs-orgmode@gnu.org; Mon, 31 Oct 2011 09:01:29 -0400 Received: by bkbzv15 with SMTP id zv15so1345510bkb.0 for ; Mon, 31 Oct 2011 06:01:28 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Gustav =?UTF-8?B?V2lrc3Ryw7Zt?= Cc: emacs-orgmode@gnu.org On Mon, 31 Oct 2011 13:33:31 +0100 Gustav Wikstr=C3=B6m wrote: > Hi Suvayu! >=20 > 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. >=20 > Instead of typing (1) >=20 > [[file:/path/to/file.org::*][Description]] >=20 > I want to be able to add an abbreviation in the beginning of the file > the link is in, with (2): >=20 > #+LINK: foo file:/long/path/to/file/foo.org >=20 > and then use this abbreviation later in the text with (3): >=20 > [[foo][Description]] >=20 Okay now I follow you. I believe you are misunderstanding the syntax. It should be like this (copying from my test example): #+LINK: odir file:~/org/coding.org:: [[odir:Distributed%20analysis][Distributed analysis]] [[odir:#ganga][Ganga]] That said I had trouble getting the search to work with org files but I will admit I did not try hard enough. > ,and also be able to use searches with this abbreviation. And it is > this syntax that seems a bit cumbersome to use when adding > headline-searching to it (requiring four ":") and does not work when > trying to use regular search. Unless I'm doing something wrong. >=20 > I also know that I could add the "::%s" to the link, giving (4): >=20 > #+LINK: foo file:/long/path/to/file/foo.org::%s >=20 > but this makes it unusable as a simple file link without search. I > intend to use the link in multiple places inside my document both > with and without searches, thus I'm still wondering about this > syntax-issue and the non-headline search. >=20 How is it unusable? Shouldn't the following work with the above setting? [[foo:][Description]] [[foo:*][Description]] Of course I didn't have the time to test this variation, so indeed there could be a bug. :-p > Regards > Gustav >=20 > (PS. sorry for the double-mail Suvayu. ) >=20 No worries. Hope the above suggestions help. --=20 Suvayu Open source is the future. It sets us free.