NewTools icon indicating copy to clipboard operation
NewTools copied to clipboard

StXXXOpenPresenter, when we enter something in the filter at the bottom of the list should filter

Open Ducasse opened this issue 1 year ago • 2 comments

Capture 2024-07-19 at 21 38 37

Ducasse avatar Jul 19 '24 19:07 Ducasse

In the screenshot researc should filter all the elements starting from it. I'm in P12 so if this is fixed in P13 then I will move to P13

Ducasse avatar Jul 19 '24 19:07 Ducasse

For this IMO support from Spec or Morphic is missing.

The table spec presenter has an adapter, that has the widget, that has a search function. This is implemented in a trait. And it is thought to be used in a "hidden" way, so you need to make the search field explicit.

This is done when you focus on the widget and start typing.

And even if I provide a helper method to trigger the search:

...
	nameText := self newTextInput whenTextChangedDo: [ : text | 
		nameText hasKeyboardFocus 
			ifTrue: [ self fileReferenceTable adapter widget searchFor: text ]  ].

Then I would need to customize the search block in SpTSearchable>>#initializeTSearchable or searchValueOf: anObject because by default it looks for beginsWith: that matches the full path instead of the basename.

hernanmd avatar Nov 27 '24 11:11 hernanmd