zsh-users
 help / color / mirror / code / Atom feed
From: Sohron Viholainen <lokki1977@gmail.com>
To: zsh-users@zsh.org
Subject: Re: Zsh not completing redirection anymore
Date: Wed, 8 Jan 2014 10:56:55 +0200	[thread overview]
Message-ID: <36AC5DE3-2F13-4FD5-A5DE-C860937B8223@gmail.com> (raw)
In-Reply-To: <CAH+w=7Y3M4eGLksKSL-Av4Mz6UbByoPDoHP7G0uF+anhf42Yjg@mail.gmail.com>

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

Thank you :)

after disabling\x10 \x10~/.zsh/zshrc.d/121_environment.completions.additional.zsh redirection worked right. I looked inside the file and decided to comment out this part in the beginning of the file, as app completion has never worked after all:
----BEGIN----

    #######################################################
    ####  Make the "open -a" completion work faster  ######
    #######################################################

    # This is to make the "open -a" command completion snappier.
    # touching the file upon shell startup will trigger various launchd items
    # that in turn will ensure completions are up to date.  We run the command once 
    # now to establish a short-term SpotLight cache.

    if [[ -f /Library/LaunchAgents/zsh.refresh.completion.plist  || \
              -f /Library/LaunchAgents/zsh.refresh.completion.plist  ]];then
                        touch ~/.zsh/zrefresh 2>/dev/null
                        chmod 777 ~/.zsh/zrefresh  2>/dev/null
        fi
    
        # This seems to work better:
    
        if [[ -x /usr/bin/mdfind ]];then
            ( mdfind -onlyin /Applications -onlyin /Developer \
    \x10\x10        "kMDItemContentType == 'com.apple.application-*'" >| \
            /dev/null 2>&1 & ; );
        fi
----END----

I don’t really see what’s wrong with the above, but commenting it out and then re-enabling the file fixed my problem and now even the `open -a <TAB>’ works just fine and fast, so ~/.zsh/cache/<hostname>/Mac_applications got filled quickly and completely :D

On 08 Jan 2014, at 09:30, Bart Schaefer <schaefer@brasslantern.com> wrote:

> On Tue, Jan 7, 2014 at 9:31 PM, Sohron Viholainen <lokki1977@gmail.com> wrote:
>> 
>> I’m using zsh-templates-osx (https://code.google.com/p/zsh-templates-osx/) with vi- and zshall keybindings, but haven’t changed anything in it lately.
> 
> Nevertheless I think this must be where the problem lies.  I'm not
> going to pretend to have time or interest in poring over that, but I
> don't find anything in your pastebin'd .zshrc that is the culprit.
> 
>> For some reason redirection like, say `echo foo > file<TAB>’ or `echo foo >> file<TAB>’ doesn’t complete to file.txt or anything existing
> 
> Use <ctrl+x h> and <ctrl+x ?> (_complete_help and _complete_debug) to
> see if anything looks odd.  <ctrl+x h> should give you something very
> much like:
> 
> tags in context :completion::complete:-redirect-,>,echo::
>    all-files  (_files _redirect)
> 
> Output from <ctrl+x ?> goes to a file and can be difficult to
> interpret.  If completion after just "echo" (without redirection) is
> still working, capture one debug file that way and a second one with
> the redirect so the two can be compared.

-- 
Marko Vihoma
http://personal.inet.fi/koti/marko.vihoma/


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

  reply	other threads:[~2014-01-08  8:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-08  5:31 Sohron Viholainen
2014-01-08  7:30 ` Bart Schaefer
2014-01-08  8:56   ` Sohron Viholainen [this message]
2014-01-09  1:19     ` Bart Schaefer

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=36AC5DE3-2F13-4FD5-A5DE-C860937B8223@gmail.com \
    --to=lokki1977@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).