[PATCH]: Kicker find as you type

Dominik Seichter domseichter at web.de
Mon May 2 13:46:18 BST 2005


Am Monday, 2. May 2005 11:38 schrieb Fred Schaettgen:
> Like http://bugs.kde.org/show_bug.cgi?id=32773 probably

> What do you mean by 'whittle down the options' exactly?
> Removing/Disabling non-matching menus from the application section instead
> of showing the results as a separate menu?
> Let's think loud too..
> The problem here is how to handle search results in submenus. Maybe they
> can be inserted as a temporary, indented menu item below their parent, if
> there is enough room.
> The procedure might look like that:
> - disable all menu items which don't match or don't contain any matching
> item. - For each item in the main menu which is still enabled count the
> number of matches inside (if it is a submenu). If there is enough room for
> all of them in the k-menu, insert them slightly indented below their parent
> item and disable the parent menu. Does this sound reasonable?
> I'm not sure if it's better to disable non-matches in the toplevel menu or
> completely hide them. Disabling them leaves the context intact, so it's
> easier to remember the location. But not removing them won't leave much
> space to insert matches from submenus.
> Maybe it would be best to never really insert or remove items in the
> toplevel menu, but only replace them, so we only insert a submenu match
> into the main menu if we can remove a non-match at the same time.
> This would make the items wander up and down while searching, but the
> overall size of the menu would stay the same.
I think hiding is far better than simply disabling, because we don't really 
have that much space left in the menu. Keeping the overall size of the main 
kde menu is important and should be done if we display the results in the 
main menu.

> > and it seems to have some overlap with the exec applet as well. as in:
> > this functionality would be nice for the exec applet =)
> Maybe the search line in the k-menu could also work just like the minicli,
> but with no extra options and no dropdown menu.
You mean, pressing enter will execute the command? Why not, sounds good.

CU Dom
Dominik Seichter - domseichter at web.de
KRename  - http://www.krename.net  - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
KDE Mass Mailer - http://www.kmassmailer.net - Mass mailing for KDE
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game,  for KDE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050502/d000e147/attachment.sig>

More information about the kde-core-devel mailing list