Giter Club home page Giter Club logo

chd's People

Contributors

zacharyedwardsdowns avatar

chd's Issues

Adding directories such as 'help', 'list', etc needs fixing.

Currently if you use the directory names 'help', 'list', 'add', and 'delete' they wont be able to be chd to, but will be listed under supported directories.

A simple fix would be to ban these names.

A more complex but robust fix would be to make the commands flags.

Handle no longer existing directories.

If a directory in the supported directories list no longer exists then give the user a proper error, rather than a cd error, when they attempt to chd to it.

Also add a function to list where upon usage of 'chd list' it will notify the user of any directories in the list that no longer exist.

Add support for '.' and '..'

Taking dots as input and getting+saving the absolute directory path would be a good quality of life improvement.

Add support for changing directories under the named directory.

Example:
'chd doc' changes directory to ~/Documents.
~/Documents has a directory called 'folder' in it.
'chd doc/folder' should take you to ~/Documents/folder.

Would be useful for skipping the cd step after using chd if that directory isn't frequently used enough to be added to chd itself.

*EDIT: See comments.

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.