New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Best practice for cd (path)
#1969
Comments
I did play with this a while ago, https://github.com/joelthelion/autojump but didn't find it super intuitive. |
I actually cannot get autojump to work right now under fish, It just fails with an exit status of 1. I wonder if it is because autojump tries to use the cd command and something wonky is going on with the Fish cd command. update: opened issue here wting/autojump#357 |
Nothing against |
Right but you need to type quite a bit with Fish to take you there (as compared to an alias or abbreviation), even if you skip |
cd (path}
cd (path)
cd (path)
cd (path)
What I do is: I create symlinks in my home directory so everytime I open a terminal I just have to type the name of the folder I want to go to. |
See also #45. |
I've mostly relied on When I recently proposed a |
So, after playing with the filename autocomplete support that is offered by fish's git support I really like the ability to just type I have been using I personally see this as something fish should provide by default but maybe it should stay in the contrib space? |
@ElijahLynn: Have you looked whether the $CDPATH variable would address some, if not most, of your needs? You simply set it to an array of directories whose subdirs you wan't to be able to
It's one shortcoming is that the first subdir of a given name in that path is the only one you can select. For example, |
Just tried that out and while it is interesting, the ability to not have to specify the directories I want is the key here. I jump around a lot and I want it to be smart about the directories I have been to in the past. It needs to just know. I also want to be able to enter a few letters of the directory. With $CDPATH I have to still enter the full name, and while the tab completion is nice, the enter key is faster. |
The |
Thanks, I subscribed to #2805. |
Okay, I'm going to close this since I think we've exhausted the possible solutions that don't involve an enhancement to the core fish code and those enhancements are already being discussed in other issues. |
Deal! |
I have a bunch of aliases that I am converting to abbreviations. While doing so I wondering if I may be fundamentally missing something.
My use case and I am sure many others have this too is that I have like 10 common folders I cd into all the time. So I make an abbreviation called
web=cd ~/websites
and thencdff=cd ~/.config/fish/functions
and so on. Is there a better way to go about this then making an abbr everytime I want to do this?Thanks!
The text was updated successfully, but these errors were encountered: