From 68080cf80c3c78249ed591d21b25672a8c1096bb Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Fri, 16 Aug 2019 00:09:36 +0200 Subject: [PATCH] Sort notes and drop Emacs backup files --- jan-pona-mute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jan-pona-mute.py b/jan-pona-mute.py index fe4db85..773a8f7 100755 --- a/jan-pona-mute.py +++ b/jan-pona-mute.py @@ -607,7 +607,7 @@ Use the 'edit' command to edit notes.""" def get_notes(self): """Get the list of notes.""" - return os.listdir(get_notes_dir()) + return sorted([dir for dir in os.listdir(get_notes_dir()) if not dir.endswith("~")]) def get_note_path(self, filename): """Get the correct path for a note.""" -- 2.25.1