Commit graph

826 commits

Author SHA1 Message Date
Tomas Babej
40b4f2c28a Mappings: Fix wrong indentation
Thanks to BonarBeavis.
2017-02-06 16:04:27 +01:00
Bodo Graumann
0225b44e53 tests: Add regression test for multiple caches 2017-01-27 22:23:33 +01:00
Bodo Graumann
0c06e02a0e BufEnter: load cache of current buffer
This fixes issue #116.
2017-01-27 22:23:33 +01:00
Bodo Graumann
8f51f2f4c2 main: Use one cache object for each buffer 2017-01-27 22:23:33 +01:00
Bodo Graumann
d324265001 TaskCache: Allow passing buffer number on __init__ 2017-01-27 22:23:33 +01:00
Tomas Babej
6dab73a06e docs: Remove old-style date representation 2017-01-27 20:31:59 +01:00
Bodo Graumann
32a1c45685 VimwikiTask: Omit 00:00 time from due date 2017-01-27 20:24:34 +01:00
Tomas Babej
323f7e79e2 Mappings: Add missing return statements 2017-01-27 16:24:02 +01:00
canaaerus
ea99329448 README: Add guide for running tests (#127) 2017-01-27 14:53:44 +01:00
Tomas Babej
51e5810fa7 Mappings: Delegate to VimwikiFollowLink for link creation 2017-01-27 14:43:25 +01:00
Tomas Babej
0eedf6f3ef Revert "Mappings: Delegate to VimwikiFollowLink for link creation"
This reverts commit 0ac7da0fde.
The commit contained code that was included by mistake.
2017-01-27 14:43:25 +01:00
Bodo Graumann
7e70ba9935 tests: Test invalid parent-child task relation 2017-01-27 10:55:01 +01:00
Bodo Graumann
a22ad7e3cb tests: Allow running tests with en_GB locale 2017-01-27 10:55:01 +01:00
Bodo Graumann
ab4c7646a4 IntegrationTest: correctly retry start_client 2017-01-27 10:55:01 +01:00
Tomas Babej
0ac7da0fde Mappings: Delegate to VimwikiFollowLink for link creation 2017-01-27 10:29:34 +01:00
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