Giter Site home page Giter Site logo

golumbus's People

Contributors

dependabot[bot] avatar jonas-pietzsch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

golumbus's Issues

Build installer for the "goto" command in various shells

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.

  • For fish, create a goto.fish command in the users functions directory like referenced in the README
  • For bash, create a goto shell script and add it to the users path like mentioned in the README

It should support easy implementation of further strategies for all possible shells to make possible collaboration of interested users.

Support subdirectories & manipulation syntax

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.

Jumping to parent

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?

cd: The directory 'Description: ' does not exist

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.

Post-install script for goto?

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?

"go" naming collision

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.

TypeError: Cannot read property 'path' of undefined

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)

Keep "goto" working when using multiple Node versions

Problem

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.

Solution

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.