Skip to content

Filtering Search Behavior #320

Closed
Closed

Description

@ssweber

What do you think about this as a alternative search behavior:

thonny_IGtANCAOFC.mp4

Activity

  1. ssweber commented on May 29, 2023

    @ssweber
    CollaboratorAuthor

    This is sorta what Thunderbird uses for its “quick filter”, which I find even more useful than its search function

    Thunderbird persists the filter through sorts, only clearing it after leaving the folder and coming back.

    So we could persist in through sg.Table sorts, but clear the search input during any requery.

  2. ssweber commented on May 29, 2023

    @ssweber
    CollaboratorAuthor

    search_order in this context would most likely be better named “_search_columns” (although we could keep search_order as an alias), and search_columns could be a property that returns all columns if search_columns isn’t specified.

  3. ssweber commented on May 29, 2023

    @ssweber
    CollaboratorAuthor

    If you want, this could be in addition to search+return == set to next result.

    Current search behavior would never go to the next search_order column if the first has any results, did it? It just loops to beginning, correct?

  4. ssweber commented on May 31, 2023

    @ssweber
    CollaboratorAuthor

    This isn't that bad of a diff. Would you want the combo/listbox/sliders filtered as well? I think it may just be a nice Table-view addition. This is the filtering-search branch

    I didn't try to keep the filter persistent through sorts/first/prev/next/last. I sorta like the behavior:

    python_parCkiIm63.mp4
  5. ssweber commented on May 31, 2023

    @ssweber
    CollaboratorAuthor

    However, the ability to keep clicking 'Return' is lost here.

    Keeping it persistent is fairly easy. Will reset search during virtual pk insert, save, and requery?

  6. ssweber commented on May 31, 2023

    @ssweber
    CollaboratorAuthor

    Updated:

    python_v0iMc8Qvd2.mp4
  7. ssweber commented on Jun 1, 2023

    @ssweber
    CollaboratorAuthor

    After some consideration, I think adding this as a TableHeadings setting is appropriate… enable_search_filtering. I’ll set to False by default, like the other new ones in WIP.

    That way it doesn’t change behavior unless desired.

  8. PySimpleSQL commented on Jun 3, 2023

    @PySimpleSQL
    Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions