Re: bind key to change to previous mailbox?
- To: mutt-users@xxxxxxxx
- Subject: Re: bind key to change to previous mailbox?
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Sun, 15 Jun 2008 15:02:22 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=7YA8Te7c7+gquVgQjer/MeQHLkk=; b=LOoH GA0I7jpIPYT41FrkZW8zmiCnhmgl9WoZ8xNqm6vFVVuUc1Aq8bRlmPpL9/QpZUqJ zT9VxzF4J622mxtajrSaYn9+NzfrK3n65QRY9lM2AYGpf8COvXRWhvpVFFSqosBE nxxkJPJf0r2mt7M0dM+32H8N2pFJo4q4WuXqlTE=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=RaES1jwu4tsMh0OdhWeGYJ3nhez5LQAqCfxhP1QGomFRLS1QxmF9WICqu7Kca/Og+6h8XnyLnYSJYuUYlI6b2HoM7nTD9e49ey8xNcT9t8lj4atqCTj0R5FbtAGGcaFG3Mn88dYIzacJul59w0HPBt5KhcVmdkKp0hqbVyDJEhk=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20080615194150.GA4285@xxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20080615194150.GA4285@xxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.18 (2008-06-02)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday, June 15 at 03:41 PM, quoth Marianne Promberger:
> I'd like to enable a key combination that would take me back to the
> most recent mailbox I've visited before the current one.
This is very easy - use the builtin shortcuts. Just as ! refers to the
$spoolfile, and > refers to the $mbox, < refers to $record and both =
and + refer to $folder, so too do both !! and - refer to the previous
mailbox. So you can do this:
macro index B '<change-folder>!!<enter>'
... or you can just do it by hand - change folders and tell it to
change to !!.
Note that this is the same syntax that can be used in most shells with
the cd command:
cd -
... will take you back to the previous folder you were in.
~Kyle
- --
Those who will not reason, are bigots, those who cannot, are fools,
and those who dare not, are slaves.
-- George Gordon Noel Byron
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkhVdU4ACgkQBkIOoMqOI16ZUACeJQkBd8QG326w9NmqYuRUoB3y
EQEAoPOnkDGwfkPW4J953dfd4joTslLU
=HN4W
-----END PGP SIGNATURE-----