Commit graph

570 commits

Author SHA1 Message Date
Tomas Babej
5cd1b71f47 Licence: Update licence copyright and explicitly state MIT 2015-08-14 19:00:57 +02:00
Tomas Babej
17478cc7ae README: Update install instructions 2015-08-14 19:00:09 +02:00
Tomas Babej
5f4f48eb71 tests: Fix broken import 2015-08-13 23:15:03 +02:00
Tomas Babej
77becb294f cache: Remove redundant guards for None, cache no longer retains None values 2015-08-13 23:14:56 +02:00
Tomas Babej
2592967333 tests: Amend expected default sort order settings 2015-08-13 23:14:54 +02:00
Tomas Babej
12feed77b1 TaskSorter: Append line_number as the end of any used sort order 2015-08-13 23:14:53 +02:00
Tomas Babej
c185cf3a80 constants: Change default sort order to not include fine-grain precision attributes 2015-08-13 23:14:49 +02:00
Tomas Babej
3641ac227e taskwiki: Add TaskWikiSort command 2015-08-13 23:14:48 +02:00
Tomas Babej
0b1705280b CustomNodeComparator: Allow access to the VimwikiTask's attributes too 2015-08-13 23:14:46 +02:00
Tomas Babej
dcfd95b7c3 TaskSorter: Fall back to default sort order 2015-08-13 23:14:44 +02:00
Tomas Babej
aaa08c6472 constants: Add constants module 2015-08-13 23:14:41 +02:00
Tomas Babej
abcd58f0e0 sort: Move sorting capabilities to a separate module 2015-08-13 23:14:39 +02:00
Tomas Babej
fc0e9ea4be tests: Move MockCache to base module 2015-08-13 23:14:37 +02:00
Tomas Babej
0b3b1719c5 VimwikiTask: Improve error message when UUID not found 2015-08-13 23:14:36 +02:00
Tomas Babej
19993f9aae VimwikiTask: Remove debug print statement 2015-08-13 23:14:34 +02:00
Tomas Babej
e1f42fcdd1 VimwikiTask: Use buffer as authority if the task is not yet saved 2015-08-13 23:14:33 +02:00
Tomas Babej
e09035d79c ShortUUID: Raise valueError if ShortUUID is initialized with incorrect type 2015-08-13 23:14:31 +02:00
Tomas Babej
45f547ae7c viewport: Properly detect matching tasks in the viewport if they have not been saved yet 2015-08-13 23:14:29 +02:00
Tomas Babej
8054bbd423 ftplugin: Execute TaskWikiBufferSave instead of direct call 2015-08-13 23:14:26 +02:00
Tomas Babej
bb472dbaf1 util: Just use default TW to determine the version of TW 2015-08-13 02:15:25 +02:00
Tomas Babej
6edfa0a79b refactor: Rename variable 2015-08-13 02:14:48 +02:00
Tomas Babej
86d2e60e20 commands: Add TaskWikiBufferSave and TaskWikiBufferLoad commands 2015-08-13 02:11:46 +02:00
Tomas Babej
ff69d61489 VimwikiTask: Use data from Vim as authoritative only if buffer_has_authority flag is set 2015-08-13 02:07:54 +02:00
Tomas Babej
d32fb5a250 cache: Build filter for uuids present in the file properly 2015-08-12 14:25:58 +02:00
Tomas Babej
f6677a4188 ViewPort: Add sort order to the inspection output 2015-08-11 20:40:36 +02:00
Tomas Babej
82da710fd6 tests: Properly setup mocked vim instance 2015-08-11 20:36:07 +02:00
Tomas Babej
5b5069eac7 tests: Add tests for ViewPort parsing 2015-08-11 19:45:07 +02:00
Tomas Babej
bd43412254 tests: Add tests for per-viewport sorting 2015-08-11 19:45:01 +02:00
Tomas Babej
814402f99d tests: Rename test 2015-08-11 19:44:59 +02:00
Tomas Babej
35dcf8f6d0 tests: Do not skip empty lines 2015-08-11 19:44:58 +02:00
Tomas Babej
859a4488ce viewport: Change default sort order 2015-08-11 19:44:56 +02:00
Tomas Babej
533e995c1e viewport: Support taskwiki_sort_orders for per-viewport configurable sort ordering 2015-08-11 19:44:54 +02:00
Tomas Babej
7a033df669 regexp: Do not use greedy matching in viewport regexp 2015-08-11 19:44:53 +02:00
Tomas Babej
30236f0675 tests: Add tests for multilevel-sorted generation 2015-08-11 19:44:51 +02:00
Tomas Babej
eb287e60c5 tests: Add Test for checking viewport task generation in reversed order 2015-08-11 19:44:49 +02:00
Tomas Babej
7c610176c6 viewport: Accept TW-style sort definition as taskwiki_sort_order config variable 2015-08-11 19:44:48 +02:00
Tomas Babej
dfa1017ff2 viewport: Create CustomNodeComparator and use it to sort tasks 2015-08-11 19:44:46 +02:00
Tomas Babej
62dbd9b5b4 tests: Fix typo in IntegrationTest setup 2015-08-11 19:44:45 +02:00
Tomas Babej
b0f0d4b578 tests: Add tests for generation of sorted dependency tree 2015-08-11 19:44:43 +02:00
Tomas Babej
d73ead1bf7 tests: Add sanity check for fill_uuid matching only one task 2015-08-11 19:44:40 +02:00
Tomas Babej
17d977cdc5 regexp: Drop forbidden suffixes, use non-greedy description matching instead 2015-08-11 19:44:37 +02:00
Tomas Babej
8251be5e17 tests: Add tests for parsing VimwikiTasks from lines 2015-08-11 19:44:33 +02:00
Tomas Babej
ff2983267f ViewPort: Add initial implementation of the sorted dependency tree construction 2015-08-10 20:50:28 +02:00
Tomas Babej
f24bf8dfc4 viewport: Add TaskCollectionNode object
This object wraps the VimwikiTask for purpose of building a dependency
tree which is sorted according to custom requirements.
2015-08-10 20:49:21 +02:00
Tomas Babej
ec00c961b4 tests: Allow unicode character ä in the task description 2015-08-10 14:30:12 +02:00
Tomas Babej
24e43fecd1 Viewport: Add simple sorting by the due date after task generation 2015-08-10 13:30:46 +02:00
Tomas Babej
8ed412cce6 Cache: Do not bother to decrease the line_number of the removed task 2015-08-10 13:30:02 +02:00
Tomas Babej
7132b98b22 Cache: Add capability of swapping lines 2015-08-10 13:24:59 +02:00
Tomas Babej
5f7814edd9 ViewPort: Add newly matched tasks to the cache and viewport set container properly 2015-08-10 13:22:05 +02:00
Tomas Babej
15fd8ae46d cache: Do not store None as a value in the vimwikitask_cache 2015-08-10 13:22:05 +02:00