Comments (7)
I will have to figure this out :) Will do quite soon.
from dotfiles.
Hi! Thanks a lot, I'm really pleased that you like it!
zoxide
completion is done here:
Lines 68 to 79 in ed0b29c
It is quite complex. First of all, take a look here, this is how z
is defined:
Lines 59 to 71 in ed0b29c
Then, redefine it to cd
(or use both). It should work.
from dotfiles.
Found the cause albeit a bit weird I think:
~ master ✔ 130 ⚠️
» z --version
zoxide: no match found
~ master ✔ 1 ⚠️
» zoxide --version
zoxide 0.9.4
Once I aliased z to zoxide then aliasing cd to z worked, I find weird that nothing was complaining when I did cd, and it even seemed to be triggering zoxide actually, but without it the completions didn't work.
Thanks!
P.S.: I tried cd
tab the window displays, I select one directory, enter then I try tab and it doesn't trigger the window, so how do I select further down the tree?
could you clarify how this work?
from dotfiles.
P.S.: I tried
cd
tab the window displays, I select one directory, enter then I try tab and it doesn't trigger the window, so how do I select further down the tree?could you clarify how this work?
Wait nvm, this now somehow works, but I lost the window pane on the right
Any idea?
Sorry to be bothering you with this.
EDIT: if I remove the
# alias z="zoxide"
# alas cd="z"
The window pane now appears again, but if I add them it doesn't work.
from dotfiles.
Just to recap for your ease whenever you look at this:
In dotfiles-rpi/.shell/.completions Line 13
alias cd="z"
If I keep the alias cd="z"
alias:
![image](https://private-user-images.githubusercontent.com/90320947/349950381-18873215-3806-4e89-b1a6-0e4dda12f531.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMDg5MDIsIm5iZiI6MTcyMjEwODYwMiwicGF0aCI6Ii85MDMyMDk0Ny8zNDk5NTAzODEtMTg4NzMyMTUtMzgwNi00ZTg5LWIxYTYtMGU0ZGRhMTJmNTMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI3VDE5MzAwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ5ZWExMjk0OGVkNTE2OThjYTNhYjU1ZDNjNGMxN2VmMjU3NTk3ZTc1ODU0NWNlNmRiYTYyZTZlYmE4ZDczMGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ZmhqNHyTLtpVdT2wjz1D-UUlW-ZFH23xZD2R3kZwDVM)
It also seems that:
cd .shell
error: unrecognized subcommand '.shell'
Usage: zoxide <COMMAND>
For more information, try '--help'.
cd
command no longer works.
If I remove the alias cd="z"
alias:
![image](https://private-user-images.githubusercontent.com/90320947/349949981-a0be0cb2-5ceb-4b64-8503-85eb1f0106fc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMDg5MDIsIm5iZiI6MTcyMjEwODYwMiwicGF0aCI6Ii85MDMyMDk0Ny8zNDk5NDk5ODEtYTBiZTBjYjItNWNlYi00YjY0LTg1MDMtODVlYjFmMDEwNmZjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI3VDE5MzAwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEwMWI3OTQxNjg2MjNjNGFjOGNkNjYwZDQyZWY3ZmQzOGEyZDNkYTkxMzU3MWJkNmJhYzQ2OTYzNWIwYzUwOTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.C7YVDdMEhnBh3ZRtVCZ3XjCXZBC3-SEtLAChzKOM2ws)
Also if I try directly with z
tab
It also shows that z
completions are not working.
The rest of the commands preserve the right pane in both cases
![image](https://private-user-images.githubusercontent.com/90320947/349951342-e1e645bf-368e-4c32-9670-dbae586f74d9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMDg5MDIsIm5iZiI6MTcyMjEwODYwMiwicGF0aCI6Ii85MDMyMDk0Ny8zNDk5NTEzNDItZTFlNjQ1YmYtMzY4ZS00YzMyLTk2NzAtZGJhZTU4NmY3NGQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI3VDE5MzAwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFmOGYyYTI5YzJhOTA5YzI5MmU1NzZmN2JiYjJiMDllOWI4YjA1YWZjMWZlYmIxMzExOGE5MzRkZjZjOGYwZWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.xRD99hFdkEgVRwURW1oUJr70E89N15VtJU3TsQax3y8)
from dotfiles.
@sobolevn found it, first, I think you use z
and cd
separately hence the 2 different flows, second, bat was always failing inside them causing further problems due the fact that in some systems, bat doesn't exists as is named batcat and when .zshenv loads it doesn't have the alias set, so I just aliased first line in .zshenv and is working fine :)
Is there any reason why you use both z and cd separately? isn't the point of zoxide that it learns your most visited directories when actually using it?
from dotfiles.
Yes, I use them separatelly. Because I am used to older z-jump
or something, which didn't have the same features as cd
does. So, my workflow is different for cd
and z
.
from dotfiles.
Related Issues (20)
- Did you symlink Sublime settings to dotfiles? HOT 8
- Add fac HOT 1
- Add `fd`
- Add bat
- Add vscode
- Add npm global deps
- Change how I store me virtualenvs
- Consider adding python plugin for vscode
- Add link from readme to the vscode packages list
- Inspirations
- Add gems
- Consider adding zsh-command-time
- sync ipython config
- Typo in file: install.conf.yaml HOT 1
- Add svn
- Add `oh-my-zsh` install
- quite succinct
- file `versions.sh` is absent HOT 2
- `git commit -m<tab>` raises an error
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 dotfiles.