zsh-users
 help / color / mirror / code / Atom feed
From: Ahmad Ismail <ismail783@gmail.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: show completion description in single line
Date: Mon, 19 Oct 2020 00:28:40 +0600	[thread overview]
Message-ID: <CAHAhJwK5x+Wt37ADeG1DsBhD7VWg=DyJop_RA+JV=SmpJd0w2A@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 710 bytes --]

Hi All,

I have few multiline aliases for git. The suggestion looks like the
following:
[image: r/zsh - show completion description in single line]
<https://preview.redd.it/u7i8t5pe9wt51.png?width=1920&format=png&auto=webp&s=6335ca5e6027cab470f5a56b2979ca7c4055b4ed>

These multiline descriptions are draining my cognitive resources. Is there
any way I can trim the description to single line.

I think the function is:

(( $+functions[__git_aliases] )) ||

__git_aliases () {

local -a aliases

__git_extract_aliases

_describe -t aliases alias aliases $*

}

However, I am not sure how to do it actually. Being said that, a zstyle
solution will be much better for me.

*Thanks and Best Regards,Ahmad Ismail*

[-- Attachment #2: Type: text/html, Size: 3018 bytes --]

             reply	other threads:[~2020-10-18 18:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-18 18:28 Ahmad Ismail [this message]
2020-10-18 21:59 ` Bart Schaefer
2020-10-19 10:24   ` Ahmad Ismail

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='CAHAhJwK5x+Wt37ADeG1DsBhD7VWg=DyJop_RA+JV=SmpJd0w2A@mail.gmail.com' \
    --to=ismail783@gmail.com \
    --cc=zsh-users@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).