git@vger.kernel.org mailing list mirror (one of many)
 help / Atom feed
From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Igor Djordjevic <igor.d.djordjevic@gmail.com>
Cc: git-for-windows@googlegroups.com, git@vger.kernel.org
Subject: Re: [ANNOUNCE] Git for Windows 2.15.1
Date: Thu, 30 Nov 2017 02:44:05 +0100 (CET)
Message-ID: <alpine.DEB.2.21.1.1711300238520.6482@virtualbox> (raw)
In-Reply-To: <af169d17-708e-5ec0-53ee-b85df76e67c2@gmail.com>

Hi Buga,

On Thu, 30 Nov 2017, Igor Djordjevic wrote:

> On 29/11/2017 14:57, Johannes Schindelin wrote:
> > 
> >   * It is now possible to configure nano or Notepad++ as Git's
> >     default editor instead of vim.
> 
> This seems as a really nice option, as it could\should greatly help 
> Windows people in lowering friction in first encounter with Git (for 
> Windows).
> 
> Being pretty unfamiliar with Linux and its tools at the time, I 
> remember the initial frustration in trying to do what otherwise felt 
> as a no-brain, simple and trivial task - write the damn commit 
> message after `git commit`, lol. Even had to kill the bash window a 
> few times, not knowing what to do, where it was clear it was 
> expecting something from me :$
> 
> I later learned about vim, like getting started with Git wasn`t hard 
> enough... :) As soon as I found it being a possibility, I`ve set 
> Notepad++ as my default editor.

Thanks for this entertaining personal account!

And yes, you guessed it, I wanted this option for a long time, but never
got around to it (always hoping that somebody would beat me to it...). BTW
this installer page is probably far from done, there is a lot of room for
improvement, e.g. this up-for-grabs ticket:

	https://github.com/git-for-windows/git/issues/1356

(hint, hint ;-))

> That said, what is the Notepad++ as default editor option doing, just 
> setting:
> 
> [core]
> 	editor = 'F:/Install/Notepad++/notepad++.exe' -multiInst -notabbar -nosession
> 
> ... inside users` .gitconfig (`git config --global`)?

As you found out, it is set in the system config. There are two reasons
for that:

- the installer runs as administrator, so it cannot know for which user you
  want to configure Notepad++

- in case the user does not like the setting (as in your case), they can
  still override it in their $HOME forever.

Ciao,
Johannes

  reply index

Thread overview: 5+ messages in thread (expand / mbox.gz / Atom feed / [top])
2017-11-29 13:57 Johannes Schindelin
2017-11-30  0:06 ` Igor Djordjevic
2017-11-30  1:44   ` Johannes Schindelin [this message]
2017-11-30  1:50 ` [ANNOUNCE] Git for Windows 2.15.1(2), was " Johannes Schindelin
2017-11-30  7:57   ` stefan.naewe

Reply instructions:

You may reply publically 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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply to all the recipients using the --to, --cc,
  and --in-reply-to switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.21.1.1711300238520.6482@virtualbox \
    --to=johannes.schindelin@gmx.de \
    --cc=git-for-windows@googlegroups.com \
    --cc=git@vger.kernel.org \
    --cc=igor.d.djordjevic@gmail.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

git@vger.kernel.org mailing list mirror (one of many)

Archives are clonable:
	git clone --mirror https://public-inbox.org/git
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://ou63pmih66umazou.onion/inbox.comp.version-control.git
	nntp://czquwvybam4bgbro.onion/inbox.comp.version-control.git
	nntp://hjrcffqmbrq6wope.onion/inbox.comp.version-control.git
	nntp://news.gmane.org/gmane.comp.version-control.git

 note: .onion URLs require Tor: https://www.torproject.org/
       or Tor2web: https://www.tor2web.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox