Opened 2 years ago

Last modified 2 years ago

#17410 new enhancement

Deskbar type-ahead filtering

Reported by: kallisti5 Owned by: jscipione
Priority: normal Milestone: Unscheduled
Component: Applications/Deskbar Version: R1/Development
Keywords: ux modern Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by kallisti5)

Today, if you open the applications menu in deskbar, and press a letter on your keyboard a seemingly random application is opened.

(Example, I open applications, press 't' and Art Paint opens with a flicker of it's menu item)

This doesn't really work well and seems incomplete. Maybe we can sneak a little type-ahead selection in here?

  1. Open applications menu
  2. Type 'ter' which would highlight the terminal menu item
  3. Press enter to open it

The above workflow would be helpful with large lists of applications, while not disrupting the feng-shui of Deskbar.

I'm not sure how possible this is in BMenu's, but it might be possible.

Change History (14)

comment:1 by kallisti5, 2 years ago

We spoke about this a little in IRC.

So, BMenu random chooses a shortcut for each menu item based on the first letter. if multiple things use the first letter the next is used, etc.

This really isn't super useful since BMenu doesn't display this shortcut anywhere. In BeOS and past operating systems, you could hold a modifier to "show" which shortcut was automatically chosen (underline the letter in the menu items). I don't think we have this?

Overall, we could implement typeahead in *all* BMenu's.

  1. Begin typing the name of the item
  2. Letters get underlined / highlighted as you type
  3. Type something that doesn't exist, and the highlight flickers and disappears
Last edited 2 years ago by kallisti5 (previous) (diff)

comment:2 by kallisti5, 2 years ago

https://review.haiku-os.org/c/haiku/+/2284 was raised by X512 as something which makes some related changes.

comment:3 by kallisti5, 2 years ago

Description: modified (diff)

comment:4 by bruno, 2 years ago

The arrow keys work now? I just found out that the arrow keys work as expected! Depends on the mouse position, but I am not sure why and when? Sometimes it works going back the menu by left arrow sometimes it does not

Last edited 2 years ago by bruno (previous) (diff)

comment:5 by waddlesplash, 2 years ago

We should likely just merge QuickLaunch into the Deskbar.

comment:6 by nephele, 2 years ago

Why? I personally don't like QuickLaunch at all, for one it opens applications from everywhere, not the deskbar entries, this means i get each application three to four times (because of generated folders in haiku source tree etc), and there is no way to see what my options are before typing.

Honestly I just don't think it is a very good UI, some type ahead filtering like mentioned in this ticket would be a much better solution IMO.

comment:7 by bitigchi, 2 years ago

In similar implementations, it's possible to add "Ignored" folders and volumes, so it should not matter. It just needs to be implemented.

I don't think merging QuickLaunch as-is is a good idea, I prefer menus (albeit HORRIBLY SLOW, and tortoise drawing speed is horrendous) at the moment because I am so lazy to deal with the horrible UX of the Shortcuts preferences. If it's going to be integrated, it needs to be reworked with its shortcuts and everything.

comment:8 by nephele, 2 years ago

In similar implementations, it's possible to add "Ignored" folders and volumes, so it should not matter. It just needs to be implemented.

Why? the Whitelist of "everything that explicitly has a deskbar entry" way works much better, let's just keep that the way it is.

comment:9 by bitigchi, 2 years ago

That works, but why limit it to Deskbar entries? It's much better to employ a general file searcher, greatly integrated with the attributes search and everything. Like Spotlight.

comment:10 by nephele, 2 years ago

This ticket is about deskbar

comment:11 by humdinger, 2 years ago

See also #6496.

IMO type-ahead filtering would be better than type-ahead selecting, because if the user moved the mouse, the selection would be lost.

comment:12 by dhruvag2k, 2 years ago

I am willing to get started on this. What I plan on doing is, when one hovers cursor onto the "applications" and then starts typing something, it then starts to shortlist the apps in that menu and highlight the text that has been typed. Something similar is already being done in the folder explorer so I will refer to the code from there and see if I am able to copy paste bits into the App menu and get it working.

comment:13 by kallisti5, 2 years ago

dhruvag2k let us know your progress on this. I think it would be a good sized project without getting too technical.

Be prepared however for a lot of code review... Deskbar is critical to our user experience so a lot of people will have a lot of commentary in the review request on review.haiku-os.org :-)

Ideally, I think it shouldn't be obvious you can even do it(we don't need a text box to collect what letters you type... just do it how tracker does it with folders as you said)

comment:14 by bitigchi, 2 years ago

FYI, there are several WIP patches that are related to menus:

https://review.haiku-os.org/q/status:open+-is:wip+menu

Note: See TracTickets for help on using tickets.