diff --git a/Commands.py b/Commands.py index 3dbcdd5..6f6c14b 100644 --- a/Commands.py +++ b/Commands.py @@ -74,7 +74,10 @@ def mode_list(self, z): try: directory_list = z.getList() if directory_list: - self.show_directories(directory_list) + if len(directory_list) == 1: + self.open_directory(directory_list[0]) + else: + self.show_directories(directory_list) else: sublime.message_dialog('No matches for {}'.format(z.directory_regex)) except Exception as e: