jonas-pietzsch / golumbus Goto Github PK
View Code? Open in Web Editor NEWQuickly jump between bookmarked directories on your terminal with Golumbus.
Quickly jump between bookmarked directories on your terminal with Golumbus.
This issue collects all shells to be supported by the installer in #4
Any other shell proposals are welcome!
An installation mechanism that runs on global installation of the module is needed, which builds the shell-bridge to make possible directory jumping.
For the first version, it should support bash and fish.
It should support easy implementation of further strategies for all possible shells to make possible collaboration of interested users.
Currently the "go list " command only lists known locations which descriptions or names contain the query string.
This should be replaced with a less restrictive strategy in the future, e.g. "fuzzy matching" implemented in bripkens/fuzzy.js.
Given is the following folder structure:
~/A/
├── B/
├── C/
Also a location 'ALocation'
exists which references the A
folder. As a user when I type the following:
go 'ALocation'/B
I want to move directly into the B
folder which is located inside the A
folder.
go 'ALocation'/..
would move to the parent directory of A
.
go 'ALocation'/B/..
would be equivalent to
go 'ALocation'
Is this idea feasible or completely not possible to implement?
When using the goto.fish
function the user is not prompted to enter any description, which is strange behavior. When typing the following: goto add 'my-location'
nothing is shown in fish shell. When typing any letter and pressing enter afterwards, the following error message occurs:
cd: The directory 'Description: ' does not exist
When the goto
command is only for navigation a custom error message could be enough to tell the user to register locations with the go
command.
A command to edit a location (currently only 'description') is needed.
Hi, cool project. I didn't try this but to avoid the need of running two commands could you not add the additionalgol install
step to the postinstall
phase of the package?
I just found out that the go
command is already used by the Go programming language. https://golang.org
I hope this will become no problem. Golumbus and the respective goto
scripts will stop working as soon a user has installed a Go
compiler.
When typing goto location
and location
is not a registered location, the following error is thrown:
/usr/local/lib/node_modules/golumbus/index.js:51
console.log(config.entries[name].path.rainbow);
^
TypeError: Cannot read property 'path' of undefined
at Command.<anonymous> (/usr/local/lib/node_modules/golumbus/index.js:51:41)
at Command.listener (/usr/local/lib/node_modules/golumbus/node_modules/commander/index.js:301:8)
at emitOne (events.js:90:13)
at Command.emit (events.js:182:7)
at Command.parseArgs (/usr/local/lib/node_modules/golumbus/node_modules/commander/index.js:617:12)
at Command.parse (/usr/local/lib/node_modules/golumbus/node_modules/commander/index.js:458:21)
at Object.<anonymous> (/usr/local/lib/node_modules/golumbus/index.js:117:9)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
This tool could be tested by using Jasmine test runner for NPM.
When using multiple Node versions (e.g. with nvm) and having Golumbus installed on your default version (say 14.0.0) but use others for different projects (say 12.0.0 and 16.0.0), "goto" cannot resolve the "gol" command when Node 12, 14 or others are currently chosen as the linked binary "gol" is only on the path with Node 14 chosen.
The "gol" Node.js command inside the "goto" shell function should be referenced with its total absolute path so that no chosen Node.js version is required for context.
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.