extrawurst / gitui

Blazing 💥 fast terminal-ui for git written in rust 🦀
MIT License
18.51k stars 571 forks source link

Whether more editor options can be provided #1152

Closed alongnice closed 2 years ago

alongnice commented 2 years ago

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.

kosayoda commented 2 years ago

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
stale[bot] commented 2 years ago

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.