From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: function / way to get a global link to a file Date: Fri, 13 Apr 2012 15:08:13 -0400 Message-ID: <12966.1334344093@alphaville> References: <12858.1334343844@alphaville> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56067) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIlr0-0000LO-8r for emacs-orgmode@gnu.org; Fri, 13 Apr 2012 15:08:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SIlqy-0008M8-9Y for emacs-orgmode@gnu.org; Fri, 13 Apr 2012 15:08:17 -0400 Received: from g1t0029.austin.hp.com ([15.216.28.36]:33741) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIlqy-0008Lz-23 for emacs-orgmode@gnu.org; Fri, 13 Apr 2012 15:08:16 -0400 In-Reply-To: Message from Nick Dokos of "Fri\, 13 Apr 2012 15\:04\:04 EDT." <12858.1334343844@alphaville> 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: Marcelo de Moraes Serpa , Org Mode Nick Dokos wrote: > Marcelo de Moraes Serpa wrote: >=20 > > Hi list, > >=20 > > Within my personal productivity system that I've implemented using org,= I used a main heading like this: > >=20 > > * tags :one:two:three:... > >=20 > > I use this in order to match a reference org file to other data that I = have=C2=A0throughout=C2=A0my system, and it works great when I want to find= all related information with a specific tag from the CLI by using ack or g= rep. This helps keeping things more organic, in the sense that I > > don't have to think too much when capturing reference data (it can be a= headline somewhere, or just a new org file in /refernece, important thing = is that it has the proper semantics - i.e tags), but at the same time with = enough structure to be useful. I could probably use > > another notation, but that's the one I chose first, and all my referenc= e files have it. > >=20 > > A problem I'm having however is that everytime I go to such org files a= nd try to get a link to this file using C l, it creates a link to * tags. I= then have to hit enter so that it brakes and creates a blank line in the t= op. > >=20 > > Is there =C2=A0a way to always force copying a link *to the file*, inst= ead of org trying to create a link to an item inside the file? > >=20 >=20 > There is also a more permanent solution: ... that is, in addition to the C-u C-c l method that I sent to Marcelo wit= hout copying the list. Apologies. Nick >=20 > ,---- > | org-context-in-file-links is a variable defined in `org.el'. > | Its value is t > |=20 > | Documentation: > | Non-nil means file links from `org-store-link' contain context. > | A search string will be added to the file name with :: as separator and > | used to find the context when the link is activated by the command > | `org-open-at-point'. When this option is t, the entire active region > | will be placed in the search string of the file link. If set to a > | positive integer, only the first n lines of context will be stored. > |=20 > | Using a prefix arg to the command C-c l (`org-store-link') > | negates this setting for the duration of the command. > |=20 > | You can customize this variable. > |=20 > `---- >=20