Re: File find: open viewer does not jump to line?



On Fri, 7 Feb 2003 20:16:36 +0100
David Sterba <dave jikos cz> wrote:

> Hi,
> 
> > Give more details.  Describe:
> >
> > 1) What you do.
> I open the file find dialog. Enter the string to search. Press OK to start 
> search. Wait until some files are found. Go to the entry, pres F3. The 
> internal viewer opens. Press F5 (view current line). It always show 1, 
> although the found entry says e.g. "ChangeLog:1054".
> 
> > 2) What you expect to get.
> I expect to be positioned to line 1054.
> 
> > 3) What you actually get.
> The file position is always on first line.
> 
> > If you are using external viewer and editor, starting on a certain line is
> > not supported for an obvious reason - different viewers and editors may
> > have different command line switches for that.

Actually, all editors which I have installed (vim, nvi, jed, joe, nano, pico, nedit, emacs)
accept  using "$EDITOR +number file" to jump to line number.

I have made a patch (and posted it to mc-devel some time ago) to support
adding "+number" option for external editors.

Do you know unix text editors which doesn't support this option?
Are there any more reasons to not apply it (of course, not counting
that it is a bit ugly, it has to add passing an argument to called
program).

-- 
Filip Kalinski <filon pld org pl>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]