zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: [solved] Re: _gnu_generic for aliases
Date: Fri, 3 Jun 2016 01:05:40 -0700	[thread overview]
Message-ID: <160603010540.ZM22519@torch.brasslantern.com> (raw)
In-Reply-To: <57500882.6090900@mathphys.fsk.uni-heidelberg.de>

On Jun 2, 12:20pm, Paul Seyfert wrote:
}
} defaultprompt > fancy -<TAB><TAB><TAB>
} 
} nothing.

Aha.

The _set_command utility doesn't attempt to do anything with aliases,
so it never finds a command to pass to _call_program as the thing to
run to generate the --help listing, so there's nothing for _arguments
to parse even though it *is* being called via _gnu_generic.

} > This might work a lot of the time:
} > 
} > _expand_alias_and_complete() {
[...]
} > }
} > zstyle ':completion:*' completer _complete __expand_alias_and_complete

Typo, should only be one leading underscore in _expand_alias_and_complete
(my error).

} I have that block commented out in testrc. Once I include it, it works!

That has to be accidental, because _expand_alias_and_complete should work
almost exactly like completion with complete_aliases NOT set.  I don't
think this is an actual solution.

I think _set_command needs tweaking to handle [[ -o complete_aliases ]]
but I can't look at this myself for a while.


      reply	other threads:[~2016-06-03  8:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-19  8:50 Paul Seyfert
2016-06-02  5:30 ` Bart Schaefer
2016-06-02 10:20   ` [solved] " Paul Seyfert
2016-06-03  8:05     ` 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=160603010540.ZM22519@torch.brasslantern.com \
    --to=schaefer@brasslantern.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).