Commit graph

861 commits

Author SHA1 Message Date
Bodo Graumann
a95efa91f2 VimwikiTask: dont remove recur from recur instance
If a task is an instance of a recurring task prototype, it will
currently not be marked as recurring with [R]. Thus its completed_mark
can be ' '. In that case taskwiki tried to set 'recur' to None, which is
equivalent to `task 42 modify recur:` and causes an error:
> You cannot remove the recurrence from a recurring task.

Setting the status of a parent recurring task to 'pending' will be
ignored as well, so the removed line was useless.
2017-01-25 22:00:45 +01:00
Bodo Graumann
99939b6b66 VimwikiTask: Stop parent search at smaller indent
Fix issue #120
2017-01-24 19:01:55 +01:00
Tomas Babej
4b55082413 tests: Test proper precise detection of vimwiki links 2017-01-11 11:17:39 +01:00
Tomas Babej
8a5306e4c2 main: Perform more precise wiki link detection 2017-01-11 11:17:17 +01:00
Tomas Babej
43213766a6 util: Add method to determine column number 2017-01-11 10:43:38 +01:00
Tomas Babej
1de1835eff tests: Extend coverage of the redo command 2017-01-11 10:22:40 +01:00
Tomas Babej
20e89cf77b SelectedTasks: Simplify the implementation of last action tracking 2017-01-11 09:58:55 +01:00
Tomas Babej
1dd6d45016 tests: Add initial test coverate for TaskWikiRedo 2017-01-11 09:53:27 +01:00
Tomas Babej
886b90df67 ftplugin: Add vim command and mappings for the redo method 2017-01-11 09:52:36 +01:00
Tomas Babej
e9601a8a55 SelectedTasks: Add redo method that re-executes last modification command 2017-01-11 09:50:08 +01:00
Tomas Babej
d759434d46 viewport: Remove unused import 2017-01-09 02:27:54 +01:00
Tomas Babej
3a38e595ce util: Remove unused variable 2017-01-09 02:27:05 +01:00
Tomas Babej
a3e0f47ad2 syntax: Allow wiki links inside task descriptions 2017-01-09 01:29:50 +01:00
Tomas Babej
dfc91101cb docs: Explicitly mention the NeoVim support 2017-01-09 01:21:30 +01:00
Tomas Babej
21b766134f coverage: Explicit coverage tracking no longer needed 2017-01-09 00:38:24 +01:00
Tomas Babej
1889ee5e1e travis: It is necessary to run directly in the plugin dir for coverage
The coverage plugin does not mark the lines in the files executed
directly by vim otherwise.
2017-01-09 00:34:15 +01:00
Tomas Babej
35bdae5a05 tests: test_util: Use MockVim from tests.base instead of redefining 2017-01-08 21:00:13 +01:00
Tomas Babej
4f15f8a8fc util: Allow specifying other than global var store for get_var 2017-01-08 19:11:59 +01:00
Tomas Babej
61d0d89be9 util: Implement and use get_var helper instead of manually decoding variables 2017-01-08 18:58:14 +01:00
Tomas Babej
bbdf73fe22 travis: Upgrade to trusty, support testing on Python 3 2017-01-08 18:21:08 +01:00
Tomas Babej
6ca9255a39 tests: Fix invalid expectation with regard to the viewport inspection output 2017-01-08 18:06:46 +01:00
Tomas Babej
048a1c8327 viewport: Make sure to strip unicode literal symbols from the inspection output 2017-01-08 18:06:28 +01:00
Tomas Babej
2e402bf721 tests: base: Allow more unicode characters in the description during uuid matching 2017-01-07 23:35:21 +01:00
Tomas Babej
9586549eed tests: Add more sanity checks for new unicode tests 2017-01-07 23:35:00 +01:00
Tomas Babej
207cf8e317 tests: Remove eluded debug statement 2017-01-07 23:19:17 +01:00
Tomas Babej
3ecb997f00 travis: Speed up and support testing with libshared-dependant builds 2017-01-07 23:13:52 +01:00
Tomas Babej
edaebb9fb4 tests: Add tests for selection of unicode projects and tags 2017-01-07 19:37:40 +01:00
Tomas Babej
5e601bcf97 main: Support unicode tag selection 2017-01-07 19:37:24 +01:00
Tomas Babej
6c70cdcecc tests: Fix invalid expectations 2017-01-07 19:03:27 +01:00
Tomas Babej
42d7579126 util: Fix variable lookup error 2017-01-07 19:03:27 +01:00
Tomas Babej
ea6faa923f util: Make decode_bytes work correctly with neovim
Neovim with python3 behaves differently than vim with python3 (former
returns str for variable queries, latter bytes).
2017-01-07 19:03:27 +01:00
Tomas Babej
c1d1dcd1f1 ChooseSplitProjects: Support utf-8 projects 2017-01-07 19:03:27 +01:00
Tomas Babej
d055dcacf4 viewport: Support utf-8 friendly definitions 2017-01-07 18:58:05 +01:00
Tomas Babej
fa40752ceb CallbackSplitMixin: Result to rather hackish approach to pickling SelectedTasks due to py2/py3/nvim differences 2017-01-07 18:56:48 +01:00
Tomas Babej
590749d1aa ftplugin: Default to python3 for neovim 2017-01-07 18:53:53 +01:00
Tomas Babej
2d591a0964 tests: Add tests for unicode viewport definitions 2017-01-07 13:38:34 +01:00
Tomas Babej
18be46d641 viewport: Support unicode sort complain error 2017-01-07 13:30:55 +01:00
Tomas Babej
0a1ed1964c viewport: Support unicode literals in viewport definition 2017-01-07 13:29:48 +01:00
Tomas Babej
5886f84b32 travis: Test with 2.6.0 branch of TaskWarrior 2017-01-06 16:54:20 +01:00
Tomas Babej
889c4f7518 travis: Do not test with python3 on master 2017-01-06 15:21:05 +01:00
Tomas Babej
eff390fe62 tests: Add test for current line preservation 2017-01-06 12:09:46 +01:00
Tomas Babej
eff9d2164c tests: Provide more details when regex search fails 2017-01-06 12:09:30 +01:00
Tomas Babej
0c7b5a0494 cache: Preserve line number during buffer push operation 2017-01-06 11:44:11 +01:00
Tomas Babej
f2c9324fe8 tests: Add test case for empty filter in the viewport 2017-01-04 20:54:45 +01:00
Tomas Babej
dfdfcfbf57 viewport: Prevent generation of empty parentheses in the filterstring 2017-01-04 20:50:57 +01:00
Tomas Babej
f7d453456b docs: Explicitly mention python3 support 2017-01-04 20:32:18 +01:00
Tomas Babej
20a39a1003 tests: Fix incorrect test expectation 2017-01-04 03:39:05 +01:00
Tomas Babej
05f37e7dfe main: Replace string literals with unicode literals 2017-01-04 01:33:52 +01:00
Tomas Babej
b51a72cc70 LICENCE: Update copyright 2017-01-04 01:29:19 +01:00
Tomas Babej
b60d590d8f viewport: Use filter in a python3 compatible way 2017-01-04 01:28:43 +01:00