gitui icon indicating copy to clipboard operation
gitui copied to clipboard

Whether more editor options can be provided

Open alongnice opened this issue 3 years ago • 1 comments

When I try to edit a file, I use Vim by default. But the editor I'm more familiar with is Emacs, vim is very unfamiliar, but can't find the configuration parameters to switch. If you can ask the author to add this function, I wish Gitui can do better and better.

alongnice avatar Feb 28 '22 07:02 alongnice

The relevant source code is https://github.com/extrawurst/gitui/blob/006cdd63738db91e6c3074439bfd561eb0b5eb9c/src/components/externaleditor.rs#L72-L81

You have 4 options to set the editor used in gitui:

  1. Set the GIT_EDITOR environment variable
  2. Set the VISUAL environment variable
  3. Set the EDITOR environment variable
  4. Set the editor used by Git in your Git Configuration

kosayoda avatar Mar 20 '22 20:03 kosayoda

This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 28 '22 04:09 stale[bot]