Code Monkey home page Code Monkey logo

commit's People

Contributors

jakeasmith avatar shashikreddy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

commit's Issues

Add intelligent sorting

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.

Odd behavior in small windows

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?

Requirements

The mbstring extension need to be installed.

You may add this in the composer.json or the README.

Prefix with ticket number

Is there a way to prefix the git commit message with the ticket number? For instance [XXX-343] Commit message here

Assuming path to PHP on Linux.

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;

bug: array_map() expects parameter 1 to be a valid callback

$ 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                 ```

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.