Code Monkey home page Code Monkey logo

Comments (5)

mattcargile avatar mattcargile commented on August 24, 2024

Are you using z + <TAB>? I've never seen it auto complete files. Maybe you can manually remove an entry by looking through output from z -l?

from zlocation.

glenncarr avatar glenncarr commented on August 24, 2024

Here's what I'm seeing:
zlocation-files

from zlocation.

mattcargile avatar mattcargile commented on August 24, 2024

Oh I see what you mean now. I think there is a collision between the native PSReadline autocompletion and the z autocompletion. I usually don't begin my autocomplete with a PathSeparator and then I get the preferred behavior. When I began the autocompletion with a .\ then I think the PSReadLine autocompleter picks up.

Not sure how they could coexist or how to turn off the native autocompleter if user is using z.

from zlocation.

mattcargile avatar mattcargile commented on August 24, 2024

Could a solution be to Push-Location to the directory of the file? So there could be an added check of the string passed in and then Split-Path or the like to get the directory?

I also wonder if adding [ArgumentCompleter()] on the function itself instead of using Register-ArgumentCompleter would produce similar behavior. Looks like it is probably the exact same behavior.

I did more searching online digging into how the path autocompletion is working and I'm not sure if that is configurable. Maybe the Register-ArgumentCompleter could be used to pick up \s somehow to override the default behavior.

from zlocation.

mattcargile avatar mattcargile commented on August 24, 2024

I also wonder if adding [ArgumentCompleter()] on the function itself instead of using Register-ArgumentCompleter would produce similar behavior. Looks like it is probably the exact same behavior.

from zlocation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.