Giter Site home page Giter Site logo

coreyberla / commit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sonnyp/commit

0.0 0.0 0.0 2.43 MB

Commit message editor

Home Page: https://apps.gnome.org/app/re.sonny.Commit/

License: GNU General Public License v3.0

Shell 0.20% JavaScript 89.30% CSS 2.33% Makefile 2.50% Meson 5.67%

commit's Introduction

Commit

Commit is an editor that helps you write better Git and Mercurial commit messages.

screenshot

https://apps.gnome.org/app/re.sonny.Commit/

Download on Flathub

Installation

Setup flatpak then

flatpak install re.sonny.Commit
flatpak run re.sonny.Commit # Follow instructions

Tips and trick

Emojis

right-click โžž Insert Emoji or use the shortcut Ctrl+. ๐ŸŽ‰๏ธ The Emoji picker works in any GNOME app ๐Ÿ‘ฃ๏ธ

Open Commit in the center of the screen

On GNOME you can make all new windows open in the center using

gsettings set org.gnome.mutter center-new-windows true

See https://gitlab.gnome.org/GNOME/mutter/-/issues/246

or set and use the move-to-center keybinding

gsettings set org.gnome.desktop.wm.keybindings move-to-center "['<Super><Control><Shift>Space']"

Translation

If you'd like to help translating Commit into your language, please head over to Weblate.

Translation status

Thank you for your help!

Development

cd Commit
git submodule update --init --recursive
./src/local.js --readonly test/fixtures/with-body/COMMIT_EDITMSG

Make changes and hit Ctrl+Shift+Q on the Commit window to restart it.

To pass the tests you have to install a few dependencies

# Install development dependencies
sudo dnf install --assumeyes npm flatpak make desktop-file-utils gjs gtk4-devel libadwaita
npm install
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install --user --assumeyes --noninteractive flathub org.freedesktop.appstream-glib

# Run tests
make test

Flathub builds https://flathub.org/builds/#/apps/re.sonny.Commit

Maintainer

i18n
# To update the pot file
# xgettext -f po/POTFILES -o po/re.sonny.Commit.pot --no-wrap -cTRANSLATORS --from-code=UTF-8
# sed -i "s/Project-Id-Version: PACKAGE VERSION/Project-Id-Version: re.sonny.Commit/" po/re.sonny.Commit.pot
meson compile re.sonny.Commit-pot -C _build


# To create a translation
# msginit -i po/re.sonny.Commit.pot -o po/fr.po -l fr_FR.UTF-8
echo -n " fr" >> po/LINGUAS
meson compile re.sonny.Commit-update-po -C _build

# To update translations
# msgmerge -U po/*.po po/re.sonny.Commit.pot
meson compile re.sonny.Commit-update-po -C _build

See sonnyp#14 (comment)

Publish new version
  • meson compile re.sonny.Commit-update-po -C _build
  • Update version in meson.build
  • git tag
  • flathub

Building

host
cd Commit
meson --prefix $PWD/install build
ninja -C build install
Flatpak

Use GNOME Builder or

cd Commit
flatpak-builder --user --force-clean --repo=repo --install-deps-from=flathub flatpak re.sonny.Commit.json
flatpak --user remote-add --no-gpg-verify --if-not-exists Commit repo
flatpak --user install --reinstall --assumeyes Commit re.sonny.Commit

Credits

Commit is a fork of Gnomit wich was inspired by Komet.

Many thanks to its original author Aral Balkan of Small Technology Foundation.

Contributors

Copyright

License

GPLv3 or later. Please see COPYING file.

commit's People

Contributors

sonnyp avatar aral avatar weblate avatar milotype avatar fmuellner avatar lumingzh avatar oscfdezdz avatar antonpaidoslalin avatar vistaus avatar phaerrax avatar vanadiae avatar realiis avatar pervoj avatar bertob avatar tcitworld avatar bugaevc avatar rafaelmardojai avatar rffontenelle avatar martiniiot avatar j-teijeiro avatar urgau avatar xfgusta avatar fkinoshita avatar chrisb9 avatar brainblasted avatar bigmenpixel0 avatar almet avatar

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.