Re: push/enter and my earlier questions
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday, August 9 at 09:32 PM, quoth Chris G:
>>> macro index S ":push <enter-command>^Mset
>>> mbox_type=maildir^M<save-message>"
>>> macro index s ":push <enter-command>^Mset
>>> mbox_type=mbox^M<save-message>"
>> c) You don't need "push" for this, make it a simple macro.
>>
> How would I do this?
macro index S '<enter-command>set mbox_type=maildir<enter><save-message>'
macro index s '<enter-command>set mbox_type=mbox<enter><save-message>'
>>> Ah, I hadn't seen that there is an <enter-command> function which
>>> effectively takes one to the : prompt, thank you. I'll experiment
>>> some more.
>>
>> Hit '?', there you see all function names and current keybindings.
>>
> Er, yes, but there are over 100 of them and while I'm familiar with
> quite a few of them I just hadn't noticed the <enter-command>.
You don't need to "notice" them all, you just need to recognize that
it's better to use the function that a key is bound to rather than the
key itself when writing macros. Thus, you just need to say "okay, so I press
the colon key to bring up the : prompt; what function is the colon key
bound to?" Then it's a simple matter to use that keybinding display to
look up : and discover that it is bound to the <enter-command>
function.
~Kyle
- --
The sacred rights of mankind are not to be rummaged for, among old
parchments, or musty records. They are written, as with a sun beam in
the whole volume of human nature, by the hand of the divinity itself;
and can never be erased or obscured by mortal power.
-- Alexander Hamilton, 1775
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFGu32+BkIOoMqOI14RAsiYAJ91RcnPI68boIp89LXb1FSBeSNcqQCfVFJW
fUKZfVcIz+z/rRjsfwKgp4Q=
=kssd
-----END PGP SIGNATURE-----