From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4869 invoked by alias); 4 Aug 2014 20:50:41 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32961 Received: (qmail 17165 invoked from network); 4 Aug 2014 20:50:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140804135036.ZM1983@torch.brasslantern.com> Date: Mon, 04 Aug 2014 13:50:36 -0700 In-reply-to: <201408041950.s74Jo1PS001579@pws-pc.ntlworld.com> Comments: In reply to Peter Stephenson "Re: Possible bug to RPROMPT" (Aug 4, 8:50pm) References: <201408041950.s74Jo1PS001579@pws-pc.ntlworld.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: Possible bug to RPROMPT MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Aug 4, 8:50pm, Peter Stephenson wrote: } Subject: Re: Possible bug to RPROMPT } } Bart Schaefer wrote: } > For a more complicated example of a prompt that looks like what you } > want but does not use RPROMPT to accomplish it, read the "Prompt Themes" } > section of "man zshcontrib" and then try "prompt -h bart". } } I can't help feeling it should be easier than that... The really complicated bits are removing the upper right prompt as the upper left prompt gets longer, and moving the %~ expansion to a third line if things are still "too long". } We could do with something that works a bit like \fil so that you can } divide up the remaining width in proportion. That'd be interesting, but what's really needed is for %<...< and %>...> to have a truncation length that's relative to the number of columns remaining in the line. Hmm, perhaps %12<...< means truncate at 12 characters, and %-12<...< means to truncate at the remaining length of the current line minus twelve characters?