Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Feature request: readline's completion-prefix-display-length option
- X-seq: zsh-workers 38568
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Feature request: readline's completion-prefix-display-length option
- Date: Wed, 1 Jun 2016 22:42:56 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=VLLtQe3K19q2xbUSVIKzq8OoPerzyZk3GSAUkK2Nq8c=; b=w4fiIasLXhkk6xWD1W1bSIdOtQgWvwJZHiTapRA6z5O1ZqI4mlfr+Ueb964fIHCIVI ls5Vzp/dqDaCUpay6E7aUs9hIegZd7mOcQ784mT3WiyHoVxyen7f9ccLtEwUY9Cij/da ugdK7llUm4R8gYmYvL81pDNKHlq586fOtKNxjutXZNUDMZc/iawkw6QDg4p5sowOX37G 1Ehw5cVKzzcw32Reke8lS3rs2Sf+9WbK97N8rC6RXWEUuPtq9vd9erL6uMjQvPhI0LQ9 XjZtftTvFpYGEAO2l4AQ64i7m7Ez546CpbbEibe/arIXJ6DctLNtjJ43ZQj3K11p4XBo t9MA==
- In-reply-to: <20160519211428.GA14104@tarsus.local2>
- 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: <5738124C.7020705@topbug.net> <CAH+w=7aYcxp73F2koe1nVBRMR8jwJ5eYLAyMi2_35FEX9=dJXw@mail.gmail.com> <20160519211428.GA14104@tarsus.local2>
On May 19, 9:14pm, Daniel Shahaf wrote:
} Subject: Re: Feature request: readline's completion-prefix-display-length
}
} Deviously clever solutions aside, isn't this exactly what the -d option
} to compadd is for? I imagine prior to calling compadd, the following
} preprocessing could be invoked:
}
} if -d not passed:
} argument_to_-d = argument_to_-a
} for each element of argument_to_-d:
} if this element starts with ${PREFIX}
} replace the first ${#PREFIX} characters with an ellipsis
}
} However, I'm not sure where this preprocessing should be invoked from.
It'd have to be internal to complete.c:bin_compadd in order to be
foolproof; there are too many variations on how to pass in the list
matches to make it feasible to do in shell code: literal lists of
words, names passed to -a, subscripts on names passed to -a, etc.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author