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

Re: [PATCH] git-gui: allow closing console window with Escape

From
Pratyush Yadav <me@yadavpratyush.com>
Date
Dec 8, 2019, 19:40 UTC
Message-ID
<20191208194046.csf35b7rgycst2vc@yadavpratyush.com>
In-Reply-To
<nycvar.QRO.7.76.6.1912071723010.31080@tvgsbejvaqbjf.bet>
On 07/12/19 05:24PM, Johannes Schindelin wrote:
Show 10 quoted lines
> Hi,
> 
> On Sat, 7 Dec 2019, Pratyush Yadav wrote:
> 
> > It is often expected that popup windows like the console window be
> > close-able with Esc.
> 
> Seeing as the console windows is not your regular popup window with an
> "OK" button, I could see how it would be all too easy to close the window
> via the Esc button all too easily, annoying users.
I'm not sure why it is "too easy" to hit Escape. If you're hitting Esc 
(which for most people is pretty far from other more frequently used 
keys) you expect _something_ to happen. People don't just spam Esc for 
no reason, do they?
 
> For windows like the console one, I would expect Ctrl+W a much more
> natural keyboard shortcut to close it.

But, that "something" the user expects to happen could also be "stop the command". AFAIK, Esc is often expected to stop commands. But closing the console window won't actually stop the command. It will keep running in the background, and when the command is done, the window will open again showing the final output.

So all in all, I do think Ctrl-W would be a better idea. Will re-roll.
 
> Ciao,
> Dscho
-- 
Regards,
Pratyush Yadav
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 9 in “git-gui: allow closing console window with Escape”
  1. git-gui: allow closing console window with EscapePratyush Yadav, Dec 6, 2019
  2. Johannes SchindelinDec 7, 2019
  3. Pratyush YadavDec 8, 2019
  4. Johannes SchindelinDec 9, 2019
  5. Vasili NovikovDec 9, 2019
  6. Pratyush YadavDec 10, 2019
  7. Vasili NovikovDec 10, 2019
  8. Pratyush YadavDec 10, 2019
  9. Johannes SchindelinDec 13, 2019

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.