Sort snippets alphabetically before showing them in the list. Patch by Allait
This commit is contained in:
parent
07b3c797c6
commit
b46461bc07
@ -667,6 +667,9 @@ class SnippetManager(object):
|
||||
before, after = self._get_before_after()
|
||||
snippets = self._snips(before, True)
|
||||
|
||||
# Sort snippets alphabetically
|
||||
snippets.sort(key=lambda x: x.trigger)
|
||||
|
||||
if not snippets:
|
||||
return True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user