shonenjump | faster way to change directory | Command Line Interface library
kandi X-RAY | shonenjump Summary
kandi X-RAY | shonenjump Summary
shonenjump is a lightweight autojump clone written in Go.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Main entry point
- printEntries prints a list of entries to stdout .
- Show options .
- calculateDiff returns the difference between two strings .
- parseCompleteOption parses a complete option string into path and path .
- GetCandidates returns a list of paths matching the given entries .
- ensureDataPath ensures the data directory exists .
- clearNotExistDirs removes entries that are not valid
- parseEntry parses s into an entry .
- BestGuess returns the first argument in the list of candidates .
shonenjump Key Features
shonenjump Examples and Code Snippets
Community Discussions
Trending Discussions on shonenjump
QUESTION
I am trying to set up Fish shell completion for my project.
Following some tutorials, I added the following line in my ~/.config/fish/config.fish
:
complete -x -c j -a '(shonenjump --complete (commandline -t))'
In which shonenjump
is the name of the executable of my project, and j
is a shell function wrapping the binary.
I can't get completion to work, but if I repeat this command in the newly created session, it works.
Any idea how to get it right?
...ANSWER
Answered 2020-Nov-27 at 17:30Setting up completions like this doesn't mark the completion file as loaded, so after, fish will still try to autoload the completion file.
And there is a completion file for a thing called "j", shipped with fish, and it explicitly erases the completions that are already set up, which ordinarily isn't necessary, but going by the commit message that tool sets broken completions, so this fixes them.
So once you press tab, fish loads that file, which erases your completions and installs its custom ones.
The way to set up completions in fish is to create your own completion file called "j.fish" in your ~/.config/fish/completions/ directory.
Or, since your tool isn't the same "j" that is apparently also known as "autojump", just call it something else.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install shonenjump
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page