mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-21 16:05:02 +02:00
Add helix to the list of editors to search for
This commit is contained in:
@@ -667,7 +667,7 @@ def get_editor_from_env_vars(opts: Optional[Options] = None) -> List[str]:
|
|||||||
shell_env = read_shell_environment(opts)
|
shell_env = read_shell_environment(opts)
|
||||||
editor = get_editor_from_env(shell_env)
|
editor = get_editor_from_env(shell_env)
|
||||||
|
|
||||||
for ans in (editor, 'vim', 'nvim', 'vi', 'emacs', 'kak', 'micro', 'nano', 'vis'):
|
for ans in (editor, 'vim', 'nvim', 'vi', 'emacs', 'hx', 'kak', 'micro', 'nano', 'vis'):
|
||||||
if ans and which(shlex.split(ans)[0], only_system=True):
|
if ans and which(shlex.split(ans)[0], only_system=True):
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user