From 48924c662faeaafb024ffc821698918d7c954fd2 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Sat, 21 Nov 2020 13:57:12 -0500 Subject: Update editor list for Linux/Mac - add joe and change order of various graphical editors --- cmd2/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd2/utils.py') diff --git a/cmd2/utils.py b/cmd2/utils.py index 06dd69b5..b58cdb96 100644 --- a/cmd2/utils.py +++ b/cmd2/utils.py @@ -368,7 +368,7 @@ def find_editor() -> Optional[str]: if sys.platform[:3] == 'win': editors = ['code.cmd', 'notepad++.exe', 'notepad.exe'] else: - editors = ['vim', 'vi', 'emacs', 'nano', 'pico', 'gedit', 'kate', 'code', 'subl', 'geany', 'atom'] + editors = ['vim', 'vi', 'emacs', 'nano', 'pico', 'joe', 'code', 'subl', 'atom', 'gedit', 'geany', 'kate'] paths = [p for p in os.getenv('PATH').split(os.path.pathsep) if not os.path.islink(p)] for editor, path in itertools.product(editors, paths): -- cgit v1.2.1