zsh-users
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Ray Andrews <rayandrews@eastlink.ca>
Cc: zsh-users@zsh.org
Subject: Re: completion is over thinking things.
Date: Sun, 29 Sep 2019 15:09:24 +0200	[thread overview]
Message-ID: <CAHYJk3Qs1yzH+YEXvVfCRAX=_1ErxUX0VFEwRQTLho0w=p-Geg@mail.gmail.com> (raw)
In-Reply-To: <8ef96620-e762-d52c-207f-c3ac5620879f@eastlink.ca>

On 9/28/19, Ray Andrews <rayandrews@eastlink.ca> wrote:
> On 2019-09-28 10:13 a.m., Roman Perepelitsa wrote:
>> On Sat, Sep 28, 2019 at 7:06 PM Ray Andrews <rayandrews@eastlink.ca>
>> wrote:
>>>      $ ls inst.deb
>>>      inst.deb
>>>
>>>      $ apt-get install inst. [TAB]
>>>      Completing package
>>>      libapt-inst2.0
>>>      libmono-system-configuration-install4.0-cil
>>>      libmono-system-runtime-durableinstancing4.0-cil
>>>
>>> How can I get completion to stop looking and finding files God knows
>>> where and just expand filenames in the current directory?
>> This doesn't answer your question but `apt-get install inst.deb` won't
>> install ./inst.deb. Instead, it'll install all packages that partially
>> match regex `inst.deb`.
> Yeah thanks, I remembered that just after posting.  But my issue
> remains,  I almost always want completion to stop trying to be clever
> and just give me local file completions.
>
> and:
>
> 	Installing packages from local .deb files is not the task for apt-get.
> 	You should use `dpkg -i` instead.
>
> Actually I know, but I just wanted to demonstrate the issue with completion
> and that showed the issue.

Claiming that completion not completing invalid arguments for your
command is an "issue" seems pretty far fetched to me. If you always
want to complete files, don't run compinit in your startup files.

-- 
Mikael Magnusson

  parent reply	other threads:[~2019-09-29 13:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-28 17:05 Ray Andrews
2019-09-28 17:13 ` Roman Perepelitsa
2019-09-28 17:36   ` Ray Andrews
2019-09-29  4:47     ` dana
2019-09-29 15:29       ` Ray Andrews
2019-09-29 16:44         ` Bart Schaefer
2019-09-29 18:41           ` Ray Andrews
2019-09-29 19:06             ` Bart Schaefer
2019-09-29 19:35               ` Ray Andrews
2019-09-29 13:09     ` Mikael Magnusson [this message]
2019-09-29 15:11       ` Ray Andrews
2019-09-29 15:19         ` Pier Paolo Grassi
2019-09-28 17:14 ` gmail

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='CAHYJk3Qs1yzH+YEXvVfCRAX=_1ErxUX0VFEwRQTLho0w=p-Geg@mail.gmail.com' \
    --to=mikachu@gmail.com \
    --cc=rayandrews@eastlink.ca \
    --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).