Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 957 Bytes

File metadata and controls

40 lines (25 loc) · 957 Bytes

Commit Message Editor

A small and simple tui editor to create and edit commit messages fast.

A screen recording of cme in action using jj desc

Usage

Set core.editor to cme in your Git configuration:

git config --global core.editor "cme"

For jujutsu, set ui.editor to cme in your configuration:

jj config set --user ui.editor "cme"

Configuration

Configuration is done via command-line arguments. Notably, there is:

  • cme --fullscreen: Opens the editor in fullscreen mode.
  • cme --title <title>: Adds a title bar to the editor with the text <title>.
  • cme --height <lines>: Sets the editor height to <lines> lines.

Run cme --help to see all the available options.

In the example above, cme --title "Enter commit description" --fullscreen is used.

Installation

This repo has a nix flake that can be used to install cme.

nix profile add github:guibi1/cme