Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: expand tabs
- X-seq: zsh-workers 35394
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh Hackers' List <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: expand tabs
- Date: Fri, 05 Jun 2015 16:15:23 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1433513724; bh=fuJY/k+p5rnL6K7aegDBmP7G5JzbmJJdL455qlqeDaw=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=JBYTMRCUiwJ9RsaCIvYoZwHhMt/H5SiE542X0Lp700ZuJFO+BObyJaB4VfVir2xSFjTucDYM4opsB3MkAeK7oOpv9sZjaG63pS5yRA/EM91PBKEaJbnhvIrqxGtAuXwfM0iUTuhVC2WlLSV2BvVlhtvX59OZuDEIyqgIW3u75gFxcKCN7BWMRPI417zekzVyCIGOLsZgys+S1AFFcF2CFGFKgAQocd+qVQ/sO4vgWP3it6POIiQPn34EA9gGEuq2iEOTFrv2D+y6Gy3Sq+r2SnLWq+e3a4HnjhdHP9+EKW9xZK/TD1l0qxwL7o4uW+P4ymUp0AaGJhl2dq+uXPnslg==
- In-reply-to: <20150604173222.5f571302@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20150601163926.55ddfc47@pwslap01u.europe.root.pri> <20150604173222.5f571302@pwslap01u.europe.root.pri>
Peter wrote:
> I've added a -x option where this makes sense. This has propagated as
> far up as allowing "zed -f -x 2" to edit functions in ZLE with the
> indentation looking like it does for contributed functions.
Is definitely nice to be able to get function definitions with just the
two spaces of indentation. I have an expand-function zle widget which
has had to pipe the output through expand.
This will cause me to add a bunch of aliases to have -x2 be the default.
Would it perhaps make sense to allow a default to be specified in a
special variable. This could also affect the values for the functions
association. It might also be more flexible in the long term if we want
to allow more aspects of the output format to be customisable: different
indentation for continuation lines, ksh style function definitions or
whatever. Having the user's preference in one place might also be used
in future for other contexts such as perhaps doing smart indentation
from zle.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author