Re: [O] anyway to create link to a line number in a file

2012-02-21 Thread Nick Dokos
Not To Miss wrote: > > Ideally, it would > > be great if in the normal stored org link, line number could be > > included in the link and would be ripped off from the text to search > > the linked file. > > > > I'm confused - what exactly are you asking for here? If yo

Re: [O] anyway to create link to a line number in a file

2012-02-21 Thread Not To Miss
On Mon, Feb 20, 2012 at 12:58 AM, Nick Dokos wrote: > Not To Miss wrote: > > > Thanks, Nick! It works, though it works only to the specified file(s) > > by overruling the original org-store-link-functions. > > Yes, org marches down the link handlers and takes the first positive > response as the

Re: [O] anyway to create link to a line number in a file

2012-02-19 Thread Nick Dokos
Not To Miss wrote: > Thanks, Nick! It works, though it works only to the specified file(s) > by overruling the original org-store-link-functions. Yes, org marches down the link handlers and takes the first positive response as the answer. You can make the function arbitrarily complicated of cour

Re: [O] anyway to create link to a line number in a file

2012-02-19 Thread Not To Miss
Thanks, Nick! It works, though it works only to the specified file(s) by overruling the original org-store-link-functions. Ideally, it would be great if in the normal stored org link, line number could be included in the link and would be ripped off from the text to search the linked file. On Sat,

Re: [O] anyway to create link to a line number in a file

2012-02-18 Thread Nick Dokos
Nick Dokos wrote: > Not To Miss wrote: > > > I looked that section carefully and the whole manual briefly. I > > haven't found anything yet. That's why I am asking on the mailing list > > to see if anyone has some workaround. > > > > On Sat, Feb 18, 2012 at 9:03 AM, Sean O'Halpin > > wrote:

Re: [O] anyway to create link to a line number in a file

2012-02-18 Thread Nick Dokos
Not To Miss wrote: > I looked that section carefully and the whole manual briefly. I > haven't found anything yet. That's why I am asking on the mailing list > to see if anyone has some workaround. > > On Sat, Feb 18, 2012 at 9:03 AM, Sean O'Halpin wrote: > > On Fri, Feb 17, 2012 at 4:54 PM, No

Re: [O] anyway to create link to a line number in a file

2012-02-18 Thread Not To Miss
Sorry, I didn't make it more clear. I want to create a link to a specific line automatically, just as the command "C-c l" (org-store-link) to automatically create a link to the text of current line. Sometimes line number is more important for me to record. On Sat, Feb 18, 2012 at 12:11 PM, Eric Sc

Re: [O] anyway to create link to a line number in a file

2012-02-18 Thread Eric Schulte
Not To Miss writes: > I looked that section carefully and the whole manual briefly. I > haven't found anything yet. That's why I am asking on the mailing list > to see if anyone has some workaround. > [[file:filename.txt::6]] jumps to line 6 of filename.txt for me. I don't know if this is docum

Re: [O] anyway to create link to a line number in a file

2012-02-18 Thread Not To Miss
I looked that section carefully and the whole manual briefly. I haven't found anything yet. That's why I am asking on the mailing list to see if anyone has some workaround. On Sat, Feb 18, 2012 at 9:03 AM, Sean O'Halpin wrote: > On Fri, Feb 17, 2012 at 4:54 PM, Not To Miss wrote: >> Hi all, >> >

Re: [O] anyway to create link to a line number in a file

2012-02-18 Thread Sean O'Halpin
On Fri, Feb 17, 2012 at 4:54 PM, Not To Miss wrote: > Hi all, > > I am reading a long text file and want to write down my notes with > org-mode. I extremely would like to put the line numbers down along > with my notes. Although there is a way to store a link for text search > for the current line