Re: :repeat command
On Wed, Sep 19, 2001 at 10:59:31PM -0500, David wrote: I would like a command that could repeat the last command... So If I had just hit 's' to save a message to another mailbox, I could hit '.', and save another message to that same mailbox. (think vi) For that particular case, you can save to the previously-saved-to folder with s. Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Spokane, Washington, USA http://www.spocom.com/users/gjohnson/mutt/ |
:repeat command
In my last few days' investigation configuration of mutt's capabilities, I've found myself issuing commands thru the internal command line... and many times having to repeat a complex command (meaning I have to retype it). It'd be nice if there was a :repeat command that... well... repeats the last command as if it had been just retyped. -- MIGUEL FARAH // [EMAIL PROTECTED] #include disclaimer.h // http://www.nn.cl/~miguel * Trust me - I know what I'm doing. - Sledge Hammer
Re: :repeat command
On Wed, Sep 19, 2001 at 10:30:49AM -0400, Miguel Farah F. wrote: It'd be nice if there was a :repeat command that... well... repeats the last command as if it had been just retyped. Usually you can press the up arrow to scroll back through the previous commands? -- Amaze your friends and annoy your enemies: echo '#define if(x) if (!(x))' /usr/include/stdio.h -- Niall Smart
Re: :repeat command
Andy Smith [19/09/2001 10:53] dijo/said: On Wed, Sep 19, 2001 at 10:30:49AM -0400, Miguel Farah F. wrote: It'd be nice if there was a :repeat command that... well... repeats the last command as if it had been just retyped. Usually you can press the up arrow to scroll back through the previous commands? The up and down arrows are binded to the previous-undeleted and next-undeleted commands... -- MIGUEL FARAH // [EMAIL PROTECTED] #include disclaimer.h // http://www.nn.cl/~miguel * Trust me - I know what I'm doing. - Sledge Hammer
Re: :repeat command
--4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, 19 Sep 2001 at 10:57:14 -0400, Miguel Farah F. wrote: Andy Smith [19/09/2001 10:53] dijo/said: On Wed, Sep 19, 2001 at 10:30:49AM -0400, Miguel Farah F. wrote: It'd be nice if there was a :repeat command that... well... repeats the last command as if it had been just retyped. Usually you can press the up arrow to scroll back through the previous commands? =20 The up and down arrows are binded to the previous-undeleted and next-undeleted commands... Not while in the command-line editor (after pressing `:'), they're not. Unless you mean you've explicitly re-bound them as: bind editor upprevious-undeleted bind editor down next-undeleted in which case you're probably much better off reverting to the default bindings. (I can't for the life of me figure out the usefulness of previous- and next-undeleted while in the line editor...) --=20 Piet Delport [EMAIL PROTECTED] Today's subliminal thought is: --4Ckj6UjgE2iN1+kY Content-Type: application/pgp-signature Content-Disposition: inline -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (FreeBSD) iD8DBQE7qQFtzRUP82sZFCcRAiNVAKCIsWOYZdZ7VOsUkFBaz+5lecO7CQCfdxXZ svyzLm1wE6S/LIQIbg4fVLc= =Af7D -END PGP SIGNATURE- --4Ckj6UjgE2iN1+kY--
Re: :repeat command
On Wed, Sep 19, 2001 at 10:34:53PM +0200, Piet Delport wrote: On Wed, 19 Sep 2001 at 10:57:14 -0400, Miguel Farah F. wrote: Andy Smith [19/09/2001 10:53] dijo/said: On Wed, Sep 19, 2001 at 10:30:49AM -0400, Miguel Farah F. wrote: It'd be nice if there was a :repeat command that... well... repeats the last command as if it had been just retyped. Usually you can press the up arrow to scroll back through the previous commands? The up and down arrows are binded to the previous-undeleted and next-undeleted commands... Not while in the command-line editor (after pressing `:'), they're not. Unless you mean you've explicitly re-bound them as: bind editor upprevious-undeleted bind editor down next-undeleted You could make a macro that does: 'enter-commandhistory-up\r' Now, that would only affect commands that you have entered on the command line, which is not exaclty what _I_ want to have (I can't see a lot of use for repeating commands that way). But if that is what you are wanting to repeat, then that should do it. I would like a command that could repeat the last command... So If I had just hit 's' to save a message to another mailbox, I could hit '.', and save another message to that same mailbox. (think vi) /db