jakeasmith / commit Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
It would be great if there was an option to intelligently sort the emoji options by usage. Could be as simple as a little json file with counts for each key. Displays are ordered by items with the most count and usages increment the count and update the file.
The terminal does weird bouncy things when the emoji options are taller than the current terminal window. Perhaps the window size could be detected to enable some sort of paging?
Interested in using this but not familiar with composer
that's required as a pre-install req. Can you provide a link?
Longer subject lines should not necessarily be restricted, but would be good to at least confirm and give the option to rewrite.
The mbstring extension need to be installed.
You may add this in the composer.json or the README.
Is there a way to prefix the git commit message with the ticket number? For instance [XXX-343] Commit message here
Instead of assuming PHP is always at /usr/bin/php
we should check the path to see where PHP is. Linux has a good tool which we can find at /usr/bin/env
. If we pass php
to this it be more portable.
Diff:
-#!/usr/bin/php
+#!/usr/bin/env php
<?php
use Smacme\Commit\EmojiList;
$ git commit -a
hint: Waiting for your editor to close the file... Use the commit builder? (y/n) [y]:
PHP Warning: array_map() expects parameter 1 to be a valid callback, function 'mb_strtolower' not found or invalid function name in /home/bochja/commit/vendor/league/climate/src/TerminalObject/Dynamic/Input.php on line 226
PHP Fatal error: Uncaught Error: Call to undefined function mb_strtolower() in /home/bochja/commit/vendor/league/climate/src/TerminalObject/Dynamic/Input.php:228
Stack trace:
#0 /home/bochja/commit/vendor/league/climate/src/TerminalObject/Dynamic/Input.php(259): League\CLImate\TerminalObject\Dynamic\Input->levelPlayingField('y')
#1 /home/bochja/commit/vendor/league/climate/src/TerminalObject/Dynamic/Input.php(281): League\CLImate\TerminalObject\Dynamic\Input->isAcceptableResponse('y')
#2 /home/bochja/commit/vendor/league/climate/src/TerminalObject/Dynamic/Input.php(65): League\CLImate\TerminalObject\Dynamic\Input->isValidResponse('y')
#3 /home/bochja/commit/bin/commit(17): League\CLImate\TerminalObject\Dynamic\Input->prompt()
#4 {main}
thrown in /home/bochja/commit/vendor/league/climate/src/TerminalObject/Dynamic/Input.php on line 228
error: There was a problem with the editor '/home/bochja/commit/bin/commit'.
Please supply the message using either -m or -F option.
$ php --version
PHP 7.2.7-0ubuntu0.18.04.2 (cli) (built: Jul 4 2018 16:55:24) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.7-0ubuntu0.18.04.2, Copyright (c) 1999-2018, by Zend Technologies ```
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.