aboutsummaryrefslogtreecommitdiff
path: root/patches/terminal_velocity_sort_found_notes.patch
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-03-10 00:30:24 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-03-10 00:30:24 +0100
commitfcf18de4a44fcc496837fbb6eedcc01e5f6eb680 (patch)
tree8f65cdc607c7a41e5789eb3bd04c80ef732f6865 /patches/terminal_velocity_sort_found_notes.patch
parentc92933bfa2d95533ea5c8650ff4d40b6621e600f (diff)
downloadNix-fcf18de4a44fcc496837fbb6eedcc01e5f6eb680.tar.gz
Nix-fcf18de4a44fcc496837fbb6eedcc01e5f6eb680.tar.zst
Nix-fcf18de4a44fcc496837fbb6eedcc01e5f6eb680.zip
Upgrade packages to 19.03
Diffstat (limited to 'patches/terminal_velocity_sort_found_notes.patch')
-rw-r--r--patches/terminal_velocity_sort_found_notes.patch16
1 files changed, 11 insertions, 5 deletions
diff --git a/patches/terminal_velocity_sort_found_notes.patch b/patches/terminal_velocity_sort_found_notes.patch
index 8296d54..2bc563c 100644
--- a/patches/terminal_velocity_sort_found_notes.patch
+++ b/patches/terminal_velocity_sort_found_notes.patch
@@ -1,8 +1,14 @@
1commit 0f9df37046e58c8963aff93c649e5d3dbf2202bd
2Author: Ismaël Bouya <ismael.bouya@normalesup.org>
3Date: Sat Mar 9 20:11:46 2019 +0100
4
5 Add sorting option
6
1diff --git a/terminal_velocity/terminal_velocity.py b/terminal_velocity/terminal_velocity.py 7diff --git a/terminal_velocity/terminal_velocity.py b/terminal_velocity/terminal_velocity.py
2index db2eb05..bb77dc6 100755 8index a53eda3..5f0e213 100755
3--- a/terminal_velocity/terminal_velocity.py 9--- a/terminal_velocity/terminal_velocity.py
4+++ b/terminal_velocity/terminal_velocity.py 10+++ b/terminal_velocity/terminal_velocity.py
5@@ -75,6 +75,10 @@ the default default will be used""" 11@@ -90,6 +90,10 @@ the default default will be used"""
6 default=defaults.get("log_file", "~/.tvlog"), 12 default=defaults.get("log_file", "~/.tvlog"),
7 help="the file to log to (default: %(default)s)") 13 help="the file to log to (default: %(default)s)")
8 14
@@ -13,15 +19,15 @@ index db2eb05..bb77dc6 100755
13 parser.add_argument("-p", "--print-config", dest="print_config", 19 parser.add_argument("-p", "--print-config", dest="print_config",
14 action="store_true", default=False, 20 action="store_true", default=False,
15 help="print your configuration settings then exit") 21 help="print your configuration settings then exit")
16@@ -120,7 +124,7 @@ the default default will be used""" 22@@ -138,7 +142,7 @@ the default default will be used"""
17 try: 23 try:
18 urwid_ui.launch(notes_dir=args.notes_dir, editor=args.editor, 24 urwid_ui.launch(notes_dir=args.notes_dir, editor=args.editor,
19 extension=args.extension, extensions=args.extensions, 25 extension=args.extension, extensions=args.extensions,
20- exclude=args.exclude) 26- exclude=args.exclude)
21+ exclude=args.exclude, sort=args.sort) 27+ exclude=args.exclude, sort=args.sort)
22 except KeyboardInterrupt: 28 except KeyboardInterrupt:
23 # Silence KeyboardInterrupt tracebacks on ctrl-c. 29 # Run the shutdown hook
24 sys.exit() 30 shutdown()
25diff --git a/terminal_velocity/urwid_ui.py b/terminal_velocity/urwid_ui.py 31diff --git a/terminal_velocity/urwid_ui.py b/terminal_velocity/urwid_ui.py
26index 34cf4f6..caebcb9 100644 32index 34cf4f6..caebcb9 100644
27--- a/terminal_velocity/urwid_ui.py 33--- a/terminal_velocity/urwid_ui.py