Commits

rablador committed efc0168

Temporarily fixed bug where missing setting in user's settings file results in QuickRef not leading. Proper fix in next update.

Comments (0)

Files changed (2)

 First release!
 
 Ver 1.05
-=======
+========
 
 Fixed bug that made alphabetical sorting not work as intended in all cases.
-Added setting to sort commands alphabetically or in the order that they are added to the settings file.
+Added setting to sort commands alphabetically or in the order that they are added to the settings file.
+
+Ver 1.06
+========
+
+Temporarily fixed bug where missing setting in user's settings file results in QuickRef not leading. Proper fix in next update.
   def __init__(self):
     self.command_list = None
     self.run_commands = None
-    self.hardcore_mode = False
-    self.sort_alphabetically = True
 
   def run(self):
     # If the command list has not be defined, run the plugin.
       try:
         self.command_list = []
         self.run_commands = []
-        self.hardcore_mode = settings['hardcore_mode']
-        self.sort_alphabetically = settings['sort_alphabetically']
+        self.hardcore_mode = settings['hardcore_mode'] if 'hardcore_mode' in settings else False
+        self.sort_alphabetically = settings['sort_alphabetically'] if 'sort_alphabetically' in settings else True
 
         for command in commands:
           # If there is a user added caption, display that in the list instead of the command.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.