From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25490 invoked by alias); 2 Sep 2014 23:59:22 -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: 33095 Received: (qmail 10934 invoked from network); 2 Sep 2014 23:59:17 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1409701985; bh=1vo+8AfY4AmDzkUGzC6I3afkTDebrQjNhhPrQtCJW/E=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:In-reply-to:From:References:To:Subject:MIME-Version:Content-Type:Content-ID:Date:Message-ID; b=wvKh0j+y6a1HybfOY7BDRfowCa5QCoPRhkD1tf3wjyziE2IqRbE+TZpZzBiG+V1UFO4ec1mVFKw7qv0wOgmbZT3SvImV+/3pYbgqKyrbnFlH3oIT1z0svkWpV6C/FpG+lEHMdHqjMi+nwE2URtpt2X9Ccwpw1OiydkxFpL+PWf4= X-Yahoo-Newman-Id: 984472.76437.bm@smtp146.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: eOuM9pAVM1nTHD.MiblHKs7hcKBMf3VZoDIlCa428tYXGEV .ozdNvEr4kCgIiQ9ukPP_EsVtdqB._PtiXED.xcBD5fSkN.EiIfNfqSSw48F 8gViDZkqlKoenbS_gGkLNkAvOtTsAYam0abeYnVNqnk78O5HVlqpw5lSmaVS dyL9Joz_ryTXG4ey_FE2q2X6yg5_J9W3HM3CvOuhgJMWLQttprWdFED3r8vI 0Aiewa7RtJ4M5UzRnjTeiZsQ1NhrpWaH7we6C7CRTSlvrsGrwCgHu7WHoLIJ nDYwJeL28AVxc4JF8mHtv.myXwYHF.yKYJQmm0IsSG_2jt4MsfK0_gZ7_wqt I0gGqeATwSPSPxSfXVnFc_5ifGD2MPZ.jxVNMBQ_u20UQcqmRPf6PfIC2WUv eKnKlQeXR1r_Wkzc1Mzip3PpWFIuuACtozQzKf_EaH2Yg8j7ZP9hOGyU.tAC 1I0hoiqqDyH4AVurR5In9wN84c2n10ek6de5.dikxJR1hdYgMkXYXAj6FgY1 u8hB_QrZ1M0f_UrMRWPi_RDsMWGaI X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: <140901140202.ZM14612@torch.brasslantern.com> From: Oliver Kiddle References: <20140826174029.6478ee3a@pwslap01u.europe.root.pri> <20140826181055.59c99bdc@pwslap01u.europe.root.pri> <20140829171605.7bdac33b@pwslap01u.europe.root.pri> <140901140202.ZM14612@torch.brasslantern.com> To: "Zsh Hackers' List" Subject: Re: PATCH: evaluation depth in prompts MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17097.1409701984.1@thecus.kiddle.eu> Date: Wed, 03 Sep 2014 01:53:04 +0200 Message-ID: <17098.1409701984@thecus.kiddle.eu> Bart wrote: > Here's a related idea/suggestion which adds indentation to the output > of _complete_debug. There's no convenient way to produce ${(%):-%e} Seems a useful idea and at worst, horizontally scrolling get used when viewing the output. > If completion goes more than 20 function calls deep there's probably > something wrong anyway. Or if it does, then it doesn't especially matter that indentation simply stops at this limit: it's arguably a feature rather than a limitation. > I couldn't decide whether to put the indentation after the leading "+" > or before it. This has it before. When viewing _complete_debug output, I nearly always use the less feature to filter lines using &pattern, often using a pattern such as \+_expand to filter by a particular function. With that in mind, indentation before is more helpful. > + local -a debug_indent; debug_indent=( '%'{3..20}'(e. .)' ) > + local PROMTP4 PS4="${(j::)debug_indent}+%N:%i> " Note the typo for PROMPT4. Oliver