Comments (5)
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.
from zlocation.
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.
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.
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)
- It would be great to see a list of most recent HOT 2
- [Feature Request] Allow installation via Chocolatey
- Set-ZLocation and Update-ZLocation break for PS 7 if the user has defined an alias for 'find' HOT 1
- How to exclude a directory from tracking? HOT 1
- Exception calling "Add" with "2" argument(s) - issue after updating powershell to 7.1 HOT 2
- [Feature Request] z partial/path/to/dir? HOT 1
- Doesn't work with posh-git's error reporting (DollarQuestion) HOT 3
- how can I unsinstall it?thanks. HOT 1
- Database has duplicate entries differing in case only
- Cannot z to network drives HOT 1
- Invoke-ZLocation doesn't work with oh-my-posh + posh-git + ZLocation HOT 2
- Question: possible to prefer child directories? HOT 1
- Duplicate Unc Paths in Database Where Only One Is Updated
- ZLocation not working as intended. HOT 6
- profile file flood
- Can't jump a folder with `[` or `]` in it
- Get-FrequentFolders in ssh session is very slow HOT 3
- Unable to uninstall Zlocation HOT 1
- Path resolution is not picking the best option
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zlocation.