! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Better search results matching command line with program name
Status:
RESOLVED: WONTFIX
Product:
Xfce4-whiskermenu-plugin
Component:
General

Comments

Description Miguel Frasson 2020-04-23 20:48:16 CEST
Hi.

I use Xfce4.12 with Whisker menu version 2.1.5 on Xubuntu 18.04.

When searching in Whisker menu a word that matches a command, I see "Run COMMAND" in search results. 

Observed behavior (three issues):

  1) Partial command matches don't show results, even it there is a unique completion.
  2) Exact matches of commands don't (necessarily) go as 1st result (they should)
  3) "Run COMMAND" appears before the real program itself (duplicate and less useful result first)

Expected behavior:

  1) Partial commands that complete to one valid command should appear too.
  2) Exact matches for commands should be preferred to other non-exact matches.
  3) If COMMAND is the command for a program, return just the program and omit "Run COMMAND".

Example 1: GIMP

(my system is in Portuguese)

On my system , on terminal (bash),
* gimp command is a symlink to gimp-2.8
* "gi" completes to several results
* "gim" completes to 1 valid command "gimp"
   (a further TAB shows more results as "gimp", "gimp-2.8", ...)
* "gimp" is already valid, TAB does not add completion
   (a second TAB shows more results as "gimp", "gimp-2.8", ...)

On Whisker menu, 

When I search for "gim", I get 15 results (Engrampa, GVim, ...) and Gimp is the 14th! I would expect Gimp to be the first result, since its command begins with "gim" and no result has "gim" in a relevant way in its name.

When I search for "gimp" (see that "Run gimp appears in 2nd), I get the resuts:
1- Gerenciador de pacotes Engrampa
2- Executar gimp  (= Rum gimp)
3- Libreoffice Calc
4- Programa de manipulação de imagens do GNU (= Portuguese for GIMP name)

I would expect that
* At least "Run gimp" be the first, as I can't see why Engrampa matches "gimp" better than gimp command itself.
* At least Gimp program be better ranked, as its command line (gimp-2.8 %U) begins with "gimp"
* Better, as gimp is symlink to gimp-2.8, Whisker menu search should see that they are the same. As the command line for Gimp program (gimp-2.8 %U) runs gimp-2.8 (and gimp is the same as gimp) Whiskers menu search should see that Gimp program is an exact match, discard "Run gimp" and show Gimp program as first result.

Example 2: Baobab is the "Disc Usage Analyzer".

On terminal "bao" already completes to a unique command baobab.

On Whiskers menu,
* "bao", "baob", "baoba" complete to lots of results, with lots of less useful results before "Disc Usage Analyzer".
* "baoba", for example, shows here "Blob Wars game", "LibreOffice Base", "Disc Usage Analyzer" and "Blender" in this order, that is, the real result is the 3rd, after Blob Wars game!
* mispelling "baobad" returns no results ().
* "baobab" shows "Run baobab" (as WM recognizes baobab as a command) and in second "Disc Usage Analyzer", failing to get that they are the same.

Thanks.
Comment 1 Graeme Gott editbugs 2020-04-24 11:10:41 CEST
This is because "gimp" is not the program name, but the executable name. Additionally, Whisker Menu matches by character as well, so that "ff" finds "Firefox" and "wb" finds "Web Browser". The Xfce application finder also shows "gimp" pretty far down in the results. Whisker Menu will always prioritize matches in the user visible translated name before executable matches.

Bug #16750

Reported by:
Miguel Frasson
Reported on: 2020-04-23
Last modified on: 2020-04-24

People

Assignee:
Graeme Gott
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information