Properties Search Implementation #77824

Closed
opened 2020-06-13 01:45:36 +02:00 by Hans Goudey · 20 comments
Member

Status: In polishing phase


Team
Commissioner: @WilliamReynish
Project leader: @HooglyBoogly

Description
Big picture: Method to filter properties in the properties editor, but general enough to use elsewhere too

Use cases:

  • A general way to find that one setting you always lose track of
  • In more complicated situations, a faster way to navigate to a property than to scroll to and expand the relevant panels

Design:
#71185

Engineer plan:
Two new "passes" will be needed:

  1. A filter for buttons that don't match the filter at the end of the layout code,
  2. A "simple layout" pass, which runs a simpler version of the layout code for panels in all tabs to highlight the ones with active items.
    It would also be conceivable to build the property search layout during the same pass as the regular layout code,
    but there are a few downsides to that method, mostly in the added complexity to the regular layout code.

Work plan

Milestone 1 - Poperty Search and Panels
Time estimate: A week or two

  • Search filter
    • RNA property buttons
    • Operator buttons
    • Search based on label buttons
    • Menu buttons
    • Box buttons
    • Add some fuzziness to the matching (D9145)
  • Highlighting and dimming of buttons
    • Highlight on panel headers
    • Highlight on subpanel label text
    • Dimming of icons_only=True buttons (e.g., lock)
    • Highlight button labels
  • Interaction with panels
    • Search closed panels and their subpanels
    • Change panel expansion
      • Auto expand matching panels and subpanels (and collapse others)
      • Revert expansion to before search (keep changes where user interacted) (D8984)
    • Panels animate as the search changes
    • Match entire panel if panel label matches search
  • Make pin button work in header
  • ctrl-F to activate search box
    • alt-F to clear seach box

Milestone 2 - Highlight Tabs with Filtered Items
Time estimate: A week

  • Duplicate the properties editor and run the search
    • Get search to run
    • Store "has property" per tab
    • Fix all consequences of duplicating the space / memory leaks
  • Add the ability to gray out some icons to tabs layout
  • Investigate performance
  • ? Switch to the next highlighted tab if the current tab is empty

Milestone 3 - Performance
Time estimate: About a week

  • ? Use ghash instead of string lookups
  • ? Look into using ED_region_tag_redraw_no_rebuild for some interactions

Branch: master

**Status:** In polishing phase --- **Team** **Commissioner:** @WilliamReynish **Project leader:** @HooglyBoogly **Description** **Big picture:** Method to filter properties in the properties editor, but general enough to use elsewhere too **Use cases**: * A general way to find that one setting you always lose track of * In more complicated situations, a faster way to navigate to a property than to scroll to and expand the relevant panels **Design:** #71185 **Engineer plan:** Two new "passes" will be needed: 1. A filter for buttons that don't match the filter at the end of the layout code, 2. A "simple layout" pass, which runs a simpler version of the layout code for panels in all tabs to highlight the ones with active items. It would also be conceivable to build the property search layout during the same pass as the regular layout code, but there are a few downsides to that method, mostly in the added complexity to the regular layout code. **Work plan** **Milestone 1 - Poperty Search and Panels** Time estimate: *A week or two* - [x] Search filter - [x] RNA property buttons - [x] Operator buttons - [x] Search based on label buttons - [x] Menu buttons - [x] Box buttons - [ ] Add some fuzziness to the matching ([D9145](https://archive.blender.org/developer/D9145)) - [x] Highlighting and dimming of buttons - [x] Highlight on panel headers - [x] Highlight on subpanel label text - [x] Dimming of icons_only=True buttons (e.g., lock) - [x] Highlight button labels - [x] Interaction with panels - [x] Search closed panels and their subpanels - [x] Change panel expansion - [x] Auto expand matching panels and subpanels (and collapse others) - [ ] Revert expansion to before search (keep changes where user interacted) ([D8984](https://archive.blender.org/developer/D8984)) - [x] Panels animate as the search changes - [x] Match entire panel if panel label matches search - [x] Make pin button work in header - [x] ctrl-F to activate search box - [x] alt-F to clear seach box **Milestone 2 - Highlight Tabs with Filtered Items** Time estimate: *A week* - [x] Duplicate the properties editor and run the search - [x] Get search to run - [x] Store "has property" per tab - [x] Fix all consequences of duplicating the space / memory leaks - [x] Add the ability to gray out some icons to tabs layout - [x] Investigate performance - [x] `?` Switch to the next highlighted tab if the current tab is empty **Milestone 3 - Performance** Time estimate: About a week - [ ] `?` Use ghash instead of string lookups - [ ] `?` Look into using `ED_region_tag_redraw_no_rebuild` for some interactions **Branch**: `master`
Hans Goudey self-assigned this 2020-06-13 01:45:36 +02:00
Author
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Author
Member

Added subscribers: @HooglyBoogly, @WilliamReynish

Added subscribers: @HooglyBoogly, @WilliamReynish

Added subscriber: @DuarteRamos

Added subscriber: @DuarteRamos

Added subscriber: @ManuelGrad

Added subscriber: @ManuelGrad

This comment was removed by @manuelgrad1

*This comment was removed by @manuelgrad1*
Contributor

Added subscriber: @RedMser

Added subscriber: @RedMser

This issue was referenced by a550937116

This issue was referenced by a55093711644f1a87eb058d2bed20d530a4de155

This issue was referenced by 67e630609b

This issue was referenced by 67e630609bb408e366398cb7ea9fdc09f31190e7

This issue was referenced by 6b29c3fa07

This issue was referenced by 6b29c3fa07f54a0b0d123a90049fbad36a1334c2

This issue was referenced by f59ce4d55c

This issue was referenced by f59ce4d55c04a61a10d9e9567b53ee652972b60a

This issue was referenced by 8bcdcab659

This issue was referenced by 8bcdcab659fb688d976a50d892dcb4285ff2a180

This issue was referenced by bedbd8655e

This issue was referenced by bedbd8655ed1d331aeaf756874c46dbed93168a1

Added subscriber: @Vyach

Added subscriber: @Vyach

Thanks a lot for seach through addon list! It helps a lot now!
I use many addons and disabled some of them to keep workspace clean.
So search allow to switch em easier.

Thanks a lot for seach through addon list! It helps a lot now! I use many addons and disabled some of them to keep workspace clean. So search allow to switch em easier.
Author
Member

Thanks for mentioning that. I'm glad it helps!

Thanks for mentioning that. I'm glad it helps!

This issue was referenced by 96dd299055

This issue was referenced by 96dd299055a1ce35819480f3c4b938f8e6f91537

This issue was referenced by 7c633686e9

This issue was referenced by 7c633686e99512d33391f30e4602213ed3890802

This issue was referenced by 54da72d3cd

This issue was referenced by 54da72d3cd546ecbd2560d7d57cbed33064bbee1
Author
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Author
Member

#82236 contains some follow-up improvements

#82236 contains some follow-up improvements
Thomas Dinges added this to the 2.92 milestone 2023-02-08 16:16:04 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#77824
No description provided.