From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Feature request: readline's completion-prefix-display-length option
Date: Wed, 1 Jun 2016 22:42:56 -0700 [thread overview]
Message-ID: <160601224256.ZM14537@torch.brasslantern.com> (raw)
In-Reply-To: <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.
prev parent reply other threads:[~2016-06-02 5:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-15 6:08 Hong Xu
2016-05-15 11:50 ` Bart Schaefer
2016-05-19 21:14 ` Daniel Shahaf
2016-06-02 13:28 ` Daniel Shahaf
2016-05-19 21:14 ` Daniel Shahaf
2016-06-02 5:42 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=160601224256.ZM14537@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).