diff options
Diffstat (limited to 'patches/terminal_velocity_sort_found_notes.patch')
-rw-r--r-- | patches/terminal_velocity_sort_found_notes.patch | 16 |
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 @@ | |||
1 | commit 0f9df37046e58c8963aff93c649e5d3dbf2202bd | ||
2 | Author: Ismaƫl Bouya <ismael.bouya@normalesup.org> | ||
3 | Date: Sat Mar 9 20:11:46 2019 +0100 | ||
4 | |||
5 | Add sorting option | ||
6 | |||
1 | diff --git a/terminal_velocity/terminal_velocity.py b/terminal_velocity/terminal_velocity.py | 7 | diff --git a/terminal_velocity/terminal_velocity.py b/terminal_velocity/terminal_velocity.py |
2 | index db2eb05..bb77dc6 100755 | 8 | index 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() |
25 | diff --git a/terminal_velocity/urwid_ui.py b/terminal_velocity/urwid_ui.py | 31 | diff --git a/terminal_velocity/urwid_ui.py b/terminal_velocity/urwid_ui.py |
26 | index 34cf4f6..caebcb9 100644 | 32 | index 34cf4f6..caebcb9 100644 |
27 | --- a/terminal_velocity/urwid_ui.py | 33 | --- a/terminal_velocity/urwid_ui.py |