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

Re: --interactive mode: readline support ⌨⬆

From
Marcel Partap <mpartap@gmx.net>
Date
Jul 20, 2017, 09:20 UTC
Message-ID
<59370040-020f-a5b0-fbd1-677e46d382b3@gmx.net>
In-Reply-To
<CAN0heSoJVf4A=92GPwFGUL0uoqWK3eY89+uCTirVzSYHHhfwwg@mail.gmail.com>

Ok very good point Martin ; ) I nefariously hid one obvious use case as trailing emoji™ in the subject, but a better way to make a point is to properly explain. So the readline library powers the advanced line editing capabilities behind f.e. the bash or the ipython shell. Besides navigating with the cursor keys, it provides a history function accessible by the up cursor key ⌨⬆ . At the moment, git interactive mode seems (?) not to make use of it, so there's no line editing at all. A typo at the beginning of a line must be corrected by reverse deleting up to it, then retyping the rest unchanged. With readline, the home/end keys for jumping to beginning or end work, as do the left/right keys in a familiar way. The history function comes in handy when f.e. repeatedly using `git clean -i` and feeding the "filter by pattern" command a string like "*.patch". Like, that's the use case that prompted me to write to this list. : )

#Best Regards/Marcel
Previous: Martin ÅgrenNext: Martin Ågren
Message 3 of 6 in “--interactive mode: readline support ⌨⬆”
  1. Marcel PartapJul 20, 2017
  2. Martin ÅgrenJul 20, 2017
  3. Marcel PartapJul 20, 2017
  4. Martin ÅgrenJul 20, 2017
  5. Marcel PartapJul 20, 2017
  6. Leah NeukirchenJul 20, 2017

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.