Page MenuHome

Some commands are missing from the Search Menu.
Closed, ArchivedPublic

Description

System Information
Ubuntu 19.04
GeForce GTX 680/PCIe/SSE2'
'4.5.0 NVIDIA 418.56'
CPU device capabilities: SSE2 SSE3 SSE41 AVX (Intel i3)

Blender Version
2.82 e5b788bad8bc,
commit date: 2019-11-15 20:45,
build date: 2019-11-16, 00:21:23,

Also reproducible in 2.79 d59c2d1 on Windows.

Short description of error
Some commands are missing from the Search Menu.

Exact steps for others to reproduce the error
Go to Edit mode, bring up the Search Menu and type "Sharp" or "Seam" for example. Their respective Mark commands are listed, but their Clear commands are not. Other commands from the Edge menu are also missing that should be listed under their various valid substrings respectively.

Another example would be searching "Track" in Object mode (2 of 5 commands are missing from Object > Track menu).

I haven't gone though and tested all menu commands and imagine it would be laborious as well as inefficient to do so manually.

Approaches to testing / fixing said issue:

Per Editor type and submode automate Search Menu invocation (via bpy?) and piping into it each pertinent full command name sequentially.

Per command name query a debug state (something like single_search_result_string (or bool)) to verify it's being returned / displayed.

Other possible tests involve image processing (is text_color visible (being drawn if you query OGL?)), or OCR (compare strings) for verification.

If command name not displayed add it to missing_search_commands_EditorType_SubMode.txt

From such output one may be able to automate fixing all missing commands in one sitting (Assuming the code patterns enabling search results match across editors and submodes).

Not a major / urgent issue here, just highlighting. Thanks for looking.

Event Timeline

Anthony Edlin (krash) changed the task status from Unknown Status to Unknown Status.EditedNov 27 2019, 11:05 AM
Anthony Edlin (krash) claimed this task.

Hi, thanks for the report.

Yes we get many reports for this issue. Check rBd47d030275f, T38819, T30584.

It is current limitation of search to only show internal operators. Mark and clear use the same operator but the ui shows it as two commands. Any operator that has multiple entry in ui will have this problem with search. It may be possible in future but would require redesign. Archiving for now.

@William Reynish (billreynish) Maybe this could be added as task to User Interface for longer term design solution, I didn't see anything related on my cursory look through. Also we could point to it for more reports.