[haiku-bugs] Re: [Haiku] #9755: Debugger: Search field to filter images list

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Sat, 01 Jun 2013 00:05:46 -0000

#9755: Debugger: Search field to filter images list
-------------------------------------+----------------------------
   Reporter:  stippi                 |      Owner:  anevilyak
       Type:  enhancement            |     Status:  in-progress
   Priority:  normal                 |  Milestone:  Unscheduled
  Component:  Applications/Debugger  |    Version:  R1/Development
 Resolution:                         |   Keywords:
 Blocked By:                         |   Blocking:
Has a Patch:  1                      |   Platform:  All
-------------------------------------+----------------------------

Comment (by anevilyak):

 Replying to [comment:7 bonefish]:
 > TBH, I think the list view is way too small to be really effective. Even
 if you squeeze the search field besides the horizontal scroll bar to avoid
 losing even more space, the view probably won't be higher than 10 to 15
 lines. Considering that a tree structure is shown, we lose one line per
 path component and possibly get very sparse results. The view also isn't
 particularly wide.

 Indeed, I'm not really sure about an easy way around that at the moment
 though. One possibility would be to give the image function view its own
 tab, but that would render the current strategy of having the images to
 choose from on one side with the corresponding set of files/functions on
 the other a bit less workable. I'm not really sure what a better
 alternative would be though, unless we want to simply remove that tab
 entirely and have that subset of functionality accessible via a menu item
 / keyboard shortcut that pops up a separate window for just the image-
 related components.

 > 1) I think regular expressions would be overkill and possibly even
 inconvenient to use. Support for simple shell glob patterns (particularly
 "*") would be nice, though. Partial matches should suffice, though, so
 that one doesn't have to prepend and append a "*" when searching some
 substring in the middle.
 >

 Noted.

 Attached please find an initial implementation based on Stephan's original
 suggestion. This one is live and expands matching nodes, and does a
 partial (case-insensitive) match based on the input string. It does not do
 shell wildcards at the moment though, but that could easily be rectified.
 Please give it a try and let me know what you think of the behavior as a
 start.

--
Ticket URL: <http://dev.haiku-os.org/ticket/9755#comment:9>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: