From e9b9e616b9c8747723a5dbf6292373b27a74edc9 Mon Sep 17 00:00:00 2001 From: "pablo.mint" Date: Thu, 19 Jul 2018 18:39:08 -0300 Subject: [PATCH] Select the first file entry on the 'Add...' command panel Since the first two options available on the panel are there for edge cases, and most of the selections will go to individual files, it makes sense to have the default selected index skip those first two --- git/status.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/git/status.py b/git/status.py index a039c0ab..417045d1 100644 --- a/git/status.py +++ b/git/status.py @@ -21,9 +21,16 @@ def status_done(self, result): sublime.status_message("Nothing to show") def show_status_list(self): + # selects the first actual entry on the list of modifications, + # instead of the 'all files' one + selected_index = 0 + if len(self.results) > 2: + selected_index = 2 + self.quick_panel( self.results, self.panel_done, - sublime.MONOSPACE_FONT + sublime.MONOSPACE_FONT, + selected_index ) def status_filter(self, item):