From: Lars Schneider <larsxschneider@gmail.com>
To: Stefan Beller <sbeller@google.com>
Cc: git <git@vger.kernel.org>
Subject: Re: [RFC] Indicate that Git waits for user input via editor
Date: Wed, 15 Nov 2017 19:07:26 +0100 [thread overview]
Message-ID: <7CF0CF44-3772-48D9-A2EF-E501645A6211@gmail.com> (raw)
In-Reply-To: <CAGZ79kaqyRTaj6=-7Jmb1K6_aSH5-BaEhm7PPyRgJLsHuDF-tw@mail.gmail.com>
> On 15 Nov 2017, at 18:51, Stefan Beller <sbeller@google.com> wrote:
>
> On Wed, Nov 15, 2017 at 7:08 AM, Lars Schneider
> <larsxschneider@gmail.com> wrote:
>> Hi,
>>
>> Git gathers user input via text editor in certain commands (e.g. "git commit").
>> If you configure a text based editor, such as vi, then this works great as the
>> editor is opened in your terminal window in the foreground and in focus.
>>
>> However, if you configure an editor that runs outside your terminal window then
>> you might run into the following problem:
>> Git opens the editor but the editor is the background or on another screen and
>> consequently you don't see the editor. You only see the Git command line
>> interface which appears to hang.
>>
>> I wonder if would make sense to print "Opening editor for user input..." or
>> something to the screen to make the user aware of the action. Does this sound
>> sensible to you? Am I missing an existing solution to this problem?
>
> Can this be put in a wrapper that opens the text editor?
> The wrapper would print these lines and then open the text editor;
> depending on the operating system, there might even be a command to
> focus on that editor window.
Yeah, that would be a workaround. However, in order to take these steps (write the
wrapper, enable the focus command) the users needs to understand the problem.
That's quite a leap especially for new Git users. They just get the feeling "Git
is broken because it hangs".
Can you imagine any downside for an "Opening editor for user input..." message?
> Regarding Git, maybe improve the documentation for how to set the editor
> variable?
The sad truth is that 98% of the users do not read the documentation
(made up number but close to my observed reality).
- Lars
next prev parent reply other threads:[~2017-11-15 18:07 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-15 15:08 [RFC] Indicate that Git waits for user input via editor Lars Schneider
2017-11-15 17:51 ` Stefan Beller
2017-11-15 18:07 ` Lars Schneider [this message]
2017-11-15 18:37 ` Stefan Beller
2017-11-15 22:32 ` Junio C Hamano
2017-11-16 0:06 ` Stefan Beller
2017-11-16 0:33 ` Junio C Hamano
2017-11-16 0:37 ` Stefan Beller
2017-11-16 5:37 ` Junio C Hamano
2017-11-16 6:04 ` [PATCH] launch_editor(): indicate that Git waits for user input Junio C Hamano
2017-11-16 10:25 ` Lars Schneider
2017-11-16 14:58 ` Junio C Hamano
2017-11-16 15:24 ` Lars Schneider
2017-11-17 1:09 ` Junio C Hamano
2017-11-18 17:47 ` Kaartic Sivaraam
2017-11-19 1:07 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7CF0CF44-3772-48D9-A2EF-E501645A6211@gmail.com \
--to=larsxschneider@gmail.com \
--cc=git@vger.kernel.org \
--cc=sbeller@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox