sjl / z-fish Goto Github PK
View Code? Open in Web Editor NEWA fork of http://github.com/rupa/z to port it to the Fish shell.
A fork of http://github.com/rupa/z to port it to the Fish shell.
z-fish is my fork of z (http://github.com/rupa/z) that works with the fish shell. Tab completion is not working. If you can fix this that would be great, but I don't use it enough to bother. z's original readme with modified install instructions follows. --------------------------------------------------------------------------------- z is the new j First, there was j: http://github.com/rupa/j/. Then, there was j2: http://github.com/rupa/j2/, with some python added. Made it easier to experiment with some stuff I'd been thinking about. Now there's this, where I rewrote j2 back in bash. I like it. Sorry about all the repos , but it kind of grew this way. The biggest change from j is the use of 'frecency' for weighting. Directories that have low ranking but were accessed recently, will quickly have higher rank. The -r switch preserves the old behavior. # maintains a jump-list of the directories you actually use # # INSTALL: # * put something like this in your config.fish: # . /path/to/z.fish # * cd around for a while to build up the db # * PROFIT!! # # USE: # * z foo # goes to most frecent dir matching foo # * z foo bar # goes to most frecent dir matching foo and bar # * z -r foo # goes to highest ranked dir matching foo # * z -t foo # goes to most recently accessed dir matching foo # * z -l foo # list all dirs matching foo (by frecency)
I'm seeing the above error recently when navigating around with cd
, probably since a fish update. I updated z to the latest commit on master. Fish shell is on 3.3.1. z's frecency file doesn't seem to be updated either.
As the maintainer states in the README.md the tab completion in z-fish, z-is not working.
I personally would use tab completion a lot as I work as a web developer and have a lot of directories with the same name but a parent directory that have unique names.
With tab completion as it is in the Bash version of z I can start typing the unique parent directory, hit tab to complete, then add a slash and start on the subdiretory, hit tab to complete to quickly get to a folder.
Currently the non-functioning tab completion is all in the z.fish
file. After taking a look at how others have written completions in fish I have to wonder if this will require one or more files.
In fish the completions I have seen are in ~/.config/fish/completions/
. So, one of the need files could be a completion file ~/.config/fish/completions/z.fish
.
It is strange but I can't make it work when I launch a tmux session, it works perfect when used from normal shell.
It's since I updated fisher to last version, if it gives you any clue.
Thanks!
Would be nice to have this on homebrew or merged into the original repo
cheers :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.