Code Monkey home page Code Monkey logo

Comments (7)

0rax avatar 0rax commented on May 17, 2024

It could be a good idea to overwrite default cheat by yours if it exist, and when your are trying to edit an existing one, copying it and modifying could be really good.

Will try to make the changes and ask for a merge.
Thanks for your contribution, I think this feature will be pleased by the users :)

from cheat.

orschiro avatar orschiro commented on May 17, 2024

Great to hear that you support the idea. Thanks 👍

from cheat.

0rax avatar 0rax commented on May 17, 2024

After a check, cheat mechanism already match the pattern that your cheat overwrite the "system" one.

Will just made the change to check if the file is writable and if its not the case ask if the user want to copy it before making the edit in his own cheat_dir

from cheat.

orschiro avatar orschiro commented on May 17, 2024

Does cheat then take precedence of the sheets in $HOME over the system-wide ones?

Because after copying there will be two cheat sheets for the same command.

from cheat.

0rax avatar 0rax commented on May 17, 2024

It seems like cheat takes your cheats in your $HOME/.cheat before the system-wide.

I will just make some test to be sure, but if its not the case, I will make a little change to be sure of that.
I am, at that time, working on the source code and will give you information about what can be done or have been done.
:)

from cheat.

chrisallenlane avatar chrisallenlane commented on May 17, 2024

Implemented!

from cheat.

orschiro avatar orschiro commented on May 17, 2024

Thanks @chrisallenlane!

from cheat.

Related Issues (20)

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.