Giter VIP home page Giter VIP logo

Comments (7)

ShanTulshi avatar ShanTulshi commented on May 18, 2024 1

You should be able to use shuf to pick a random line out of the commit_messages.txt file as shown here:

shuf -n 1 commit_messages.txt

On MacOS, shuf is available as gshuf through brew install coreutils.

For Powershell, my (probably not great) solution:

Get-Content commit-messages.txt | Select -Index (Get-Random (Get-Content commit_messages.txt).Count)

from commitment.

Gaardsholt avatar Gaardsholt commented on May 18, 2024 1

If you are using vscode, you could use my extension :)
https://github.com/Gaardsholt/vscode-whatthecommit

Offline version will come later ;)

from commitment.

janraasch avatar janraasch commented on May 18, 2024 1

My npm package does the trick as well: https://github.com/janraasch/javascript-commitment

And there's a package for Atom: https://atom.io/packages/commitment

Both work offline.

from commitment.

TinaRussell avatar TinaRussell commented on May 18, 2024

Okay! (Iā€™m on Linux, BTW.) How would I get it to interpret forms like XNAMEX, XUPPERNAMEX, XLOWERNAMEX, XNUMX, XNUM30X, XNUM2,5X etc. correctly?

from commitment.

ShanTulshi avatar ShanTulshi commented on May 18, 2024

I'm not sure whether the easiest way to do that is with a bash find-replace or by refactoring the application so it can be run locally, to be quite honest.

from commitment.

TinaRussell avatar TinaRussell commented on May 18, 2024

All right, thanks! Feel free to mark this as a feature request.

from commitment.

ngerakines avatar ngerakines commented on May 18, 2024

There are some great alternatives, so I'm going to close this.

from commitment.

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.