From 84b53215b3522653ead0c77b6fca700107d6e303 Mon Sep 17 00:00:00 2001 From: Eric Bower Date: Thu, 23 Oct 2025 03:02:25 -0400 Subject: [PATCH] feat: `:J desc` short hand for `describe` (#12) --- README.md | 2 +- lua/jj/cmd.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 72836ec..0ab4f34 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ This plugin aims to be something like vim-fugitive but for driving the jj-vcs CL - Terminal-based output display for jj commands - Support jj subcommands including your aliases through the cmdline. - First class citizens with ui integration - - `describe` - Set change descriptions with a Git-style commit message editor + - `describe` / `desc` - Set change descriptions with a Git-style commit message editor - `status` / `st` - Show repository status - `log` - Display log history with configurable options - `diff` - Show changes diff --git a/lua/jj/cmd.lua b/lua/jj/cmd.lua index ed9e961..eaa57f9 100644 --- a/lua/jj/cmd.lua +++ b/lua/jj/cmd.lua @@ -912,7 +912,7 @@ function M.j(args) local cmd = string.format("jj %s", cmd_args) -- Handle known subcommands with custom logic - if subcommand == "describe" then + if subcommand == "describe" or subcommand == "desc" then local description = table.concat(remaining_args, " ") M.describe(description ~= "" and description or nil) return