Menu

#416 Render 'File' column in Search Results tab useable

Undefined
open
nobody
None
Bug_Report
2016-10-29
2016-10-23
PeterM
No

Code::Blocks:

  • Version: 16.01
  • Build: Jan 24 2016, 10:21:42 - wx2.8.12 (Linux, unicode) - 64 bit

The File column in the Search results tab is unuseable as it is a left-justified field with the full path shown. A useable column width WRT the Line and Text fields means that only the initial characters of the full path are shown before the rest of the path is elided with ... elipsis, reducing the utility of the File column - as frequently the full path prefixes are all identical.

(see attachement)

Am I missing something..? :-)

Suggestions: (but not limited to..!)

  • Right-justify File column, and elide the path on the left-hand-side. Likely a PITA if using the widgetset inbuilt column handling, but aside from that, a good outcome I feel..!
  • Automagically chop bits out of the path, e.g. using the location of the Project file as a relative path base; config specified per-project; ...
1 Attachments

Discussion

  • Riot

    Riot - 2016-10-26

    I personally find left-justification is useful here when glancing through a long list of results, to quickly see how many directories deep something is in a large project - but then I have a lot of horizontal screen space to spare. I think the second option would be preferable - show all file paths relative to the project base.

    Ideally there could also be a menu option to left or right align the search results, which would provide the best of both worlds.

     
  • PeterM

    PeterM - 2016-10-29

    Work-around for projects where files are under the project root (or paths are of similar lengths):

    • Increase the File column width to reveal complete paths; horizontally scroll the Search Results pane such that the Line and Text columns are revealed.
    • As the column widths and pane scroll position are preserved over searches, this isn't too annoying! :-)
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.