]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - patches/terminal_velocity_sort_found_notes.patch
Upgrade packages to 19.03
[perso/Immae/Config/Nix.git] / patches / terminal_velocity_sort_found_notes.patch
index 8296d54a68f3c23a12cf39bdd6ef12dab4c57ef6..2bc563c6b942996071d0e110a818f04190c87ef0 100644 (file)
@@ -1,8 +1,14 @@
+commit 0f9df37046e58c8963aff93c649e5d3dbf2202bd
+Author: IsmaĆ«l Bouya <ismael.bouya@normalesup.org>
+Date:   Sat Mar 9 20:11:46 2019 +0100
+
+    Add sorting option
+
 diff --git a/terminal_velocity/terminal_velocity.py b/terminal_velocity/terminal_velocity.py
-index db2eb05..bb77dc6 100755
+index a53eda3..5f0e213 100755
 --- a/terminal_velocity/terminal_velocity.py
 +++ b/terminal_velocity/terminal_velocity.py
-@@ -75,6 +75,10 @@ the default default will be used"""
+@@ -90,6 +90,10 @@ the default default will be used"""
          default=defaults.get("log_file", "~/.tvlog"),
          help="the file to log to (default: %(default)s)")
  
@@ -13,15 +19,15 @@ index db2eb05..bb77dc6 100755
      parser.add_argument("-p", "--print-config", dest="print_config",
              action="store_true", default=False,
              help="print your configuration settings then exit")
-@@ -120,7 +124,7 @@ the default default will be used"""
+@@ -138,7 +142,7 @@ the default default will be used"""
      try:
          urwid_ui.launch(notes_dir=args.notes_dir, editor=args.editor,
                  extension=args.extension, extensions=args.extensions,
 -                exclude=args.exclude)
 +                exclude=args.exclude, sort=args.sort)
      except KeyboardInterrupt:
-         # Silence KeyboardInterrupt tracebacks on ctrl-c.
-         sys.exit()
+         # Run the shutdown hook
+         shutdown()
 diff --git a/terminal_velocity/urwid_ui.py b/terminal_velocity/urwid_ui.py
 index 34cf4f6..caebcb9 100644
 --- a/terminal_velocity/urwid_ui.py