Re: pdf ref search

2011-04-15 Thread Tim Chase
On 04/15/2011 04:35 AM, Erik Christiansen wrote: Tim, have you tried using /\v to start all regexes in Vim? I know about it, but don't think to use it often because by the time I think "grr, I should have used \v", I've got a sufficiently-complex regex that I'd have to go back and modify it

Re: pdf ref search

2011-04-15 Thread Erik Christiansen
On Wed, Apr 13, 2011 at 07:08:06PM -0500, Tim Chase wrote: > On 04/13/2011 05:17 PM, Benjamin R. Haskell wrote: >> On Wed, 13 Apr 2011, Scottb wrote: >> >>> I suppose that would mean [...] "\d+\s\d+\sR" [...] >>> >>> BTW... just noticing that characters classes (like "\d" for digits) >>> don't seem

Re: pdf ref search

2011-04-13 Thread Tim Chase
On 04/13/2011 05:17 PM, Benjamin R. Haskell wrote: On Wed, 13 Apr 2011, Scottb wrote: I suppose that would mean [...] "\d+\s\d+\sR" [...] BTW... just noticing that characters classes (like "\d" for digits) don't seem to work in regular Vim "/" searches, is that really the case? It's that you

Re: pdf ref search

2011-04-13 Thread Tim Chase
On 04/13/2011 04:27 PM, Scottb wrote: The reference "19 0 R" points to a PDF object declaration somewhere in the file like "19 0 obj". So, right now (thanks to your help) I can put my cursor over the "19" in the /Outlines reference value, hit F4 and navigate directly to the "19 0 obj". Now... it

Re: pdf ref search

2011-04-13 Thread Benjamin R. Haskell
On Wed, 13 Apr 2011, Scottb wrote: I suppose that would mean [...] "\d+\s\d+\sR" [...] BTW... just noticing that characters classes (like "\d" for digits) don't seem to work in regular Vim "/" searches, is that really the case? It's that you need to make the '+' "magic". That one trips me

Re: pdf ref search

2011-04-13 Thread Scottb
Thanks Tim, that actually works great. Of course, now I want more... so if you are up for more read on. Basically the format for a PDF reference is: "N N R" where "N" is an integer and "R" is literal. So typically you will see something like a PDF "Name" (which is prefixed with a "/"), then a refe

Re: pdf ref search

2011-04-13 Thread Scottb
Thanks Tim, that actually works great. Of course, now I want more... so if you are up for more read on. Basically the format for a PDF reference is: "N N R" where "N" is an integer and "R" is literal. So typically you will see something like a PDF "Name" (which is prefixed with a "/"), then a refe

Re: pdf ref search

2011-04-13 Thread Tim Chase
On 04/13/2011 01:41 PM, Scottb wrote: Hi all, I'm working with a lot of PDF lately and I'm looking for a way to map a key combination that will allow me to follow object references. Basically that would mean "look at the object ref number that is under the cursor right now and find a pattern like

pdf ref search

2011-04-13 Thread Scottb
Hi all, I'm working with a lot of PDF lately and I'm looking for a way to map a key combination that will allow me to follow object references. Basically that would mean "look at the object ref number that is under the cursor right now and find a pattern like "^\s* $refnumber \d* obj" where $refnum