git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] help: prompt user to run corrected command on typo

From
Justin Tobler <jltobler@gmail.com>
Date
Jun 19, 2026, 16:24 UTC
Message-ID
<ajVatJzQ0L5WAOUh@denethor>
In-Reply-To
<6a34dc40.2c570c9e.381c97.203f@mx.google.com>
On 26/06/18 11:05PM, Jishnu C K wrote:
> If the consensus is that the default should remain non-interactive,
> we are happy to rework this as an improvement to the existing
> `autocorrect=prompt` mode (showing args in the prompt) with
> documentation updates to make the option more discoverable.

I'm not sure what the current consensus is here, but as it would be a change to the existing behavior it would need its merits discussed accordingly. Personally, I think requiring users to opt-in to autocorrect isn't a significant barrier itself. It does require that users know that the option is available in the first place though. So if discoverablility of this feature is lacking and can be improved in documentation, that certainly seems like a reasonable change.

Regarding changing the prompt to display command arguments, I'm relatively indifferent towards it. I'm not sure it adds a ton of value, but maybe other folks will have a different opinion.

-Justin
Previous: Jishnu C KNext: Junio C Hamano
Message 4 of 8 in “help: prompt user to run corrected command on typo”
  1. help: prompt user to run corrected command on typocalicomills, Jun 18, 2026
  2. Justin ToblerJun 18, 2026
  3. Jishnu C KJun 19, 2026
  4. Justin ToblerJun 19, 2026
  5. Junio C HamanoJun 19, 2026
  6. help: include arguments in autocorrect=prompt messageJishnu C K, Jun 19, 2026
  7. Jishnu C KJun 23, 2026
  8. Junio C HamanoJun 23, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.