On Mon, Feb 15, 1999 at 16:45:24 -0500, Randall J. Million wrote:
> I sent out this reuqest a while back, but later lost the patch that made
> this possible. I also thought that it would be included in the main
> distribution. (The patch made the ^ (caret) a shortcut for the current
> mailbox.)

I made the patch. It was originally made for 0.94.13, but it still
works without change on 0.95.3. Since 0.94.13 was a development
version it was originally only sent to Randall and the mutt-dev
list. But here it is in mutt-users for the first time.

Regards,
- Byrial
--- lib.c~      Fri Oct 16 14:50:45 1998
+++ lib.c       Tue Oct 20 20:29:20 1998
@@ -253,6 +253,8 @@ char *mutt_expand_path (char *s, size_t 
       q = Spoolfile;
     else if (*s == '-')
       q = LastFolder;
+    else if (*s == '^' && Context)
+      q = Context->path;
     else
       return s;
 
--- doc/manual.sgml.in~ Fri Oct 16 14:50:43 1998
+++ doc/manual.sgml.in  Tue Oct 20 20:32:08 1998
@@ -1683,6 +1683,7 @@ path.
 <item>&gt; -- refers to your <ref id="mbox" name="&dollar;mbox"> file
 <item>&lt; -- refers to your <ref id="record" name="&dollar;record"> file
 <item>- -- refers to the file you've last visited
+<item>^ -- refers to the current open mailbox if any
 <item>&tilde; -- refers to your home directory
 <item>= or + -- refers to your <ref id="folder" name="&dollar;folder"> directory
 <item>@<em/alias/ -- refers to the <ref id="save-hook" 

Reply via email to