Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1CzMG0-0002oo-BG for mharc-grub-devel@gnu.org; Thu, 10 Feb 2005 16:53:52 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CzMFx-0002mx-AJ for grub-devel@gnu.org; Thu, 10 Feb 2005 16:53:49 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CzMFv-0002mA-TY for grub-devel@gnu.org; Thu, 10 Feb 2005 16:53:48 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CzMFv-0002lo-Qw for grub-devel@gnu.org; Thu, 10 Feb 2005 16:53:47 -0500 Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1CzM2c-00031G-Fv for grub-devel@gnu.org; Thu, 10 Feb 2005 16:40:02 -0500 Received: (qmail invoked by alias); 10 Feb 2005 21:40:00 -0000 Received: from p3EE0ED96.dip.t-dialin.net (EHLO pc1.trash.bin) (62.224.237.150) by mail.gmx.net (mp005) with SMTP; 10 Feb 2005 22:40:00 +0100 X-Authenticated: #19855039 Received: from pc8.trash.bin (pc8.trash.bin [192.168.4.8]) by pc1.trash.bin (Postfix) with ESMTP id 8D7154B99 for ; Thu, 10 Feb 2005 22:39:55 +0100 (CET) Received: by pc8.trash.bin (Postfix, from userid 500) id 23764464AD9; Thu, 10 Feb 2005 22:39:54 +0100 (CET) Date: Thu, 10 Feb 2005 22:39:54 +0100 From: Marc-Jano Knopp To: The development of GRUB 2 Message-ID: <20050210213954.GD3832@mjk.myfqdn.de> References: <20050207121011.GC1380@mjk.myfqdn.de> <42077EA1.5090403@list.ru> <87is54tgum.fsf@marco.marco-g.com> <20050207232414.GG1380@mjk.myfqdn.de> <87zmyek9j8.fsf@marco.marco-g.com> <20050208225132.GK5907@mjk.myfqdn.de> <4209E434.2020806@list.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4209E434.2020806@list.ru> User-Agent: Mutt/1.5.1i X-Y-GMX-Trusted: 0 Subject: Re: [Suggestion] LILO-like direct menu item access && scripting X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Feb 2005 21:53:49 -0000 On Wed, 09 Feb 2005 at 11:21 (+0100), Serbinenko Vladimir wrote: > Marc-Jano Knopp wrote: > >On Tue, 08 Feb 2005 at 21:48 (+0000), Marco Gerards wrote: > >>Marc-Jano Knopp writes: > >>>On Mon, 07 Feb 2005 at 17:33 (+0000), Marco Gerards wrote: [...] > >In GRUB, one should be able to move the selection bar absolutely > >to a specific menu item by means of hotkeys (or "hotstrings"). > > > >I propose to have the single-letter command 's' (I hope it's not > >bound yet) for choosing a specific menu item by hotkey. > > > >Usage: > > > > 1. Hit 's' > > > I would prefer that all keys with special meaning will be > C-something (with ctrl). And then all normal keys will be > for choice only. So there is no need for 's' That would be an alternative. But you cannot use 'k'/'j' for moving the selection bar up/down then, which would be nice to do, as a lot of programs use these vi bindings, and one can get really used to it. But I could live with it, as long as all key bindings are remappable. :-) [...] > >>>>But it would be nice, IMHO, if it was clear which entry has which > >>>>hotkey. Perhaps the title can be followed by the key in some > >>>>different color or so? > >>>> > >>>> > >>>Hmm... I think the other way round would be nicer, as that's the > >>>usual way to do it (and everything is naturally aligned nicely then). > >>>(I think in LILO menus the order is the same, i.e. first letters, then > >>>name of the menu item). [...] > >My (and LILO's (and Carlito's)) way: > > > > hotkey1 menuitemtitle1 > > hotkey2 menuitemtitle2 > > hotkey3 menuitemtitle3 > > > Have you read about current GRUB2 menu syntax? > I think the best syntax will be: > entry "SuSE Linux" sequence="suse" > { > .... > } Misunderstanding: He talked about the display of the menu and its keys, not about configuring the keys. The syntax above looks okay to me. > Other thing that I would like to discuss is how to clear entered string. > E.g. if I entered "win32" but then I thought that it must die and want > linux. > How can I clear it fast without using backspace to enter "mdk" Ctrl-U? (Or Ctrl-A, Ctrl-K) Or Escape? > >I guess a run-time-interpreted format string for menu item formatting > >would be best. > > > I'll write syntax interpreting and perhaps whole thing because menu > parsing is > integrated with scripting and nobody knows it better then me Okay. > P.S. What is your opinion about scripting(till now I've heard no comments)? I cannot really comment on it, because I'm not so deeply involved in development (i.e. not at all :-}. In general I can say: give the user maximum power. So, scripting sounds like a good idea to me. (Btw.: What's "GCS"? Couldn't find anything in the GRUB docs.) Best regards Marc-Jano