[bug #16017] viewer position from "find file" dialog vs. parsed files


                 Summary: viewer position from "find file" dialog vs. parsed
                 Project: GNU Midnight Commander
            Submitted by: ossi
            Submitted on: Mon 03/06/06 at 20:05
                Category: Viewer
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
                 Release: current (CVS or snapshot)
        Platform Version: All



the "find file" dialog does seaching on unfiltered file contents. it tells
the viewer to start viewing a the line of the match. however, if the file is
filtered ("parsed", as opposed to "raw") before viewing (e.g., lynx -dump),
the line number is applied to the filtered output - usually with "suboptimal"

i'm not sure what to do about this. translating the line numbers would
require cooperation from the filter, which is sort of impossible for external
filters. and grepping on filtered files would be sloooow. maybe like this: if
matches are found and the file is "formattable", filter it and grep again and
display that as the result. alternatively, force the viewer into raw mode, but
i would not like this.


Reply to this item at:


  Message sent via/by Savannah

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