summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2020-11-21 13:57:12 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2020-11-21 13:57:12 -0500
commit48924c662faeaafb024ffc821698918d7c954fd2 (patch)
tree475a7ec4e7c5d625416697f0ed37b5caa810fbca
parent5dc5c694712a63ed5cd0063c67a99b5c0838f2f9 (diff)
downloadcmd2-git-48924c662faeaafb024ffc821698918d7c954fd2.tar.gz
Update editor list for Linux/Mac - add joe and change order of various graphical editors
-rw-r--r--cmd2/utils.py2
1 files changed, 1 insertions, 1 deletions
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):