Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1CzZrh-0001Cc-6k for mharc-grub-devel@gnu.org; Fri, 11 Feb 2005 07:25:41 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CzZrY-0001AQ-Tl for grub-devel@gnu.org; Fri, 11 Feb 2005 07:25:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CzZrU-000194-Ff for grub-devel@gnu.org; Fri, 11 Feb 2005 07:25:29 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CzZrS-00016t-QX for grub-devel@gnu.org; Fri, 11 Feb 2005 07:25:27 -0500 Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1CzZcM-0002mB-OA for grub-devel@gnu.org; Fri, 11 Feb 2005 07:09:58 -0500 Received: (qmail invoked by alias); 11 Feb 2005 12:09:49 -0000 Received: from p3EE0E0A9.dip.t-dialin.net (EHLO pc1.trash.bin) (62.224.224.169) by mail.gmx.net (mp017) with SMTP; 11 Feb 2005 13:09:49 +0100 X-Authenticated: #19855039 Received: from pc8.trash.bin (pc8.trash.bin [192.168.4.8]) by pc1.trash.bin (Postfix) with ESMTP id BB1D64B99 for ; Fri, 11 Feb 2005 13:09:47 +0100 (CET) Received: by pc8.trash.bin (Postfix, from userid 500) id 4E9DE44AABD; Fri, 11 Feb 2005 13:09:47 +0100 (CET) Date: Fri, 11 Feb 2005 13:09:47 +0100 From: Marc-Jano Knopp To: The development of GRUB 2 Message-ID: <20050211120946.GA1290@mjk.myfqdn.de> References: <20050207121011.GC1380@mjk.myfqdn.de> <200502102024.08157.okuji@enbug.org> <20050210215112.GE3832@mjk.myfqdn.de> <200502111038.56290.okuji@enbug.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200502111038.56290.okuji@enbug.org> 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: Fri, 11 Feb 2005 12:25:38 -0000 On Fri, 11 Feb 2005 at 10:38 (+0100), Yoshinori K. Okuji wrote: > On Thursday 10 February 2005 22:51, Marc-Jano Knopp wrote: > > But as your mail left a few things open (Select or execute? Normal > > keys or keys with modifier? Single-letter-keys or strings?), the > > discussion about this would have had to be continued anyway. :-) > > I prefer to execute it when a shortcut key is pressed. Why not? Because then it would not be possible to edit menu items blindly. For example, I could not blindly add boot parameters to the Linux kernel (runlevel, root=, etc.) to override the default settings (which I do, indeed, e.g. for my SCSI testing machine which varying disks with varying partition layout connected, so that fixed menu items don't help). > I don't think strings are very useful. The purpose of shortcut keys is > to select something instantly, then it should be a single key press. But that's only implied by the /word/ "shortcut key". Being able to use strings instead of single keys would make these shortcuts much more mnemonic and thus easier to remember. E.g. l - Linux 2.2 l4 - Linux 2.4 l6 - Linux 2.6 f - FreeBSD 3.x f4 - FreeBSD 4.x f5 - FreeBSD 5.x If you had only a single letter for selection, then you cannot choose mnemonic shortcuts anymore, as e.g. '4' would collide for "Linux 2.4" and "FreeBSD 4.x". > All possible keys should be able to be assigned shortcuts. But, my idea > is not only for shortcuts. The functions of keys are hardcoded in the > current implementation, but they should be configurable. For instance, > if the user wants to use C-c to enter the command-line interface and > use c to select a menu entry, this should be supported. This sounds good! So I could say something like bind "s" select-entry-by-inputstring(); so that hitting 's' in the menu asks me for a string to select a menu entry? Provided either a GRUB developer codes the function select-entry-by-inputstring() or the user can do so easily by defining the function in a configuration file. Best regards Marc-Jano