Commit graph

47 commits

Author SHA1 Message Date
Tomas Janousek
57a5c405ea completion: Add omni completion for new task modstrings 2020-12-26 20:52:04 -05:00
Tomas Janousek
6cedc13b58 completion: Add tab completion for TaskWikiMod 2020-12-26 20:52:04 -05:00
Tomas Janousek
a6907bac85 ftplugin: Avoid changing global viewoptions
As mentioned in an earlier commit, viewoptions is global, so it's
probably best to override it only temporarily for mkview.

(loadview is moved to autoload just for symmetry and in case we need to
do something more complex, like saving/restoring foldmethod, later)
2020-12-18 17:55:09 -05:00
Tomas Janousek
7b72ee47b9 syntax: Move setl foldtext to BufWinEnter autocmd
Vimwiki now resets fold{method,text} on BufWinEnter:

8d4cb7f11d/plugin/vimwiki.vim (L177)
8d4cb7f11d/plugin/vimwiki.vim (L325)

so we should do that as well otherwise we get overridden.

If the user actually configured vimwiki to use its folding, by setting
g:vimwiki_folding to something else than '' or 'custom', we should not
replace that. It would be nice if we could somehow augment
VimwikiFoldText and leave the rest intact, but we can't, so it's best to
keep off. Using foldmethod=syntax gets extremely laggy with just a few
hundreds of lines, so we must not force it.

Also, we now need to increase foldlevel in tests because the folding is
no longer being overridden in the default vimwiki configuration, so we'd
get closed folds in tests...
2020-12-18 17:55:09 -05:00
Tomas Janousek
2ab876a80a syntax: Move TaskwikiFoldText to autoload
Avoids useless reloading of the function. In practice, probably
harmless, but it doesn't belong there, and neither does setting
foldmethod/foldtext, and that is actually harmful (see further commits).
2020-12-18 17:55:09 -05:00
Tomas Babej
fb90391538 Restructure the whole plugin 2015-03-12 22:49:56 +01:00
Tomas Babej
17e7047565 VimwikiTask: Improve conversion to string 2015-01-11 19:18:09 +01:00
Tomas Babej
556f94a916 VimwikiTask: Do not update unsaved tasks from TW 2015-01-11 19:17:54 +01:00
Tomas Babej
bae56aa1c8 VimwikiTask: Refresh upon saving to accomodate changes done by hooks 2015-01-11 19:17:16 +01:00
Tomas Babej
6cfafdee5d VimwikiTask: Update for timezone aware timestamps 2015-01-11 19:16:43 +01:00
Tomas Babej
2544e9dbd2 VimwikiTask: Allow dates only for due times 2015-01-11 19:14:35 +01:00
Tomas Babej
574957ddde VimwikiTask: Fix error message if UUID not found 2015-01-11 14:01:55 +01:00
Tomas Babej
6448ad4a90 Rename project to taskwiki 2015-01-11 13:47:51 +01:00
Tomas Babej
e39d2b094f Vimwiki: Add project support 2015-01-02 11:27:05 +01:00
Tomas Babej
212f22e080 VimwikiTask: Fix missing parenthesis in TEXT regexp 2015-01-02 00:21:27 +01:00
Tomas Babej
ad86d93b14 VimwikiTask: Add due support 2015-01-02 00:21:27 +01:00
Tomas Babej
6f4efc53bd VimwikiTask: Fix improper task to string conversion 2015-01-01 15:42:54 +01:00
Tomas Babej
5e294d54b3 Regexp: Remove uused regexps 2015-01-01 15:41:32 +01:00
Tomas Babej
2046ddc81c Regexps: Refactor TEXT regexp 2015-01-01 15:41:02 +01:00
Tomas Babej
995d3f6037 VimwikiTask: Add priority handling 2014-12-31 19:43:02 +01:00
Tomas Babej
ddf3afbfd4 Rename plugin to vimwiki-pytasks 2014-12-31 05:34:12 +01:00
Tomas Babej
0741cac677 Do not allow space as part of text 2014-12-31 03:29:45 +01:00
Tomas Babej
241e4c5fdc Vimwiki: Warn about stale UUIDs and replace them 2014-12-31 03:29:03 +01:00
Tomas Babej
bd94f48bd6 update_to_tw: Add update_to_tw method 2014-12-29 10:45:36 +01:00
Tomas Babej
c28a468e1f update_from_tw: Use cache and GENERIC_TASK regexp 2014-12-29 10:45:11 +01:00
Tomas Babej
bbf6aa390a main: Rename load_update_incomplete_tasks to update_from_tw 2014-12-29 10:44:17 +01:00
Tomas Babej
cd05f83b49 VimwikiTask: Use GENERIC_TASK regex to look for the parent task 2014-12-29 10:43:40 +01:00
Tomas Babej
a8cbbb55df VimwikiTask: Add update_in_buffer method 2014-12-29 10:43:09 +01:00
Tomas Babej
3a3f466615 VimwikiTask: Refresh task when updating from TW only if forced to 2014-12-29 10:42:06 +01:00
Tomas Babej
e43c457d26 VimwikiTask: Mark as done upon saving only if not already marked done 2014-12-29 10:41:23 +01:00
Tomas Babej
9f23ec01d5 VimwikiTask: Do not refresh task when saving
It is not necessary, since task's UUID is refreshed upon saving
by tasklib.
2014-12-29 10:36:10 +01:00
Tomas Babej
837e4d87e7 VimwikiTask: Save task only if it differs from TW representation 2014-12-29 10:17:24 +01:00
Tomas Babej
24936aee5f VimwikiTask: Track dependency in a extra attribute, since Task object may not be saved yet 2014-12-29 10:02:16 +01:00
Tomas Babej
b32dc605f8 VimwikiTask: Create empty Task object in __init__, not at save time 2014-12-29 10:02:16 +01:00
Tomas Babej
a1fdd9f4d3 TaskCache: Add cache implementation so that tasks are not reloaded each time 2014-12-29 09:29:52 +01:00
Tomas Babej
62c853a0c2 Regexps: Pre-compile GENERIC_TASK 2014-12-29 09:29:20 +01:00
Tomas Babej
b4f83393ea VimwikiTask: Find the parent task and set proper dependencies 2014-12-22 14:11:36 +01:00
Tomas Babej
3f782fa391 Switch to inteligent block design 2014-12-20 01:51:26 +01:00
Tomas Babej
f85f7dc18e Require suffix for tasks that are being synced 2014-12-19 23:55:17 +01:00
Tomas Babej
3a289ce24b VimwikiTask: Differentiate between completed and completed mark 2014-12-19 22:24:06 +01:00
Tomas Babej
5dd5ceb440 Remove debug file write 2014-12-19 22:14:02 +01:00
Tomas Babej
26afa15783 regexp: Make sure TEXT does not contain UUID 2014-12-19 22:13:43 +01:00
Tomas Babej
e1e7b46d05 Add __init__.py 2014-12-19 20:56:59 +01:00
Tomas Babej
f2b490a72a gitignore: Ignore *.pyc 2014-12-19 20:56:46 +01:00
Tomas Babej
7cb574bb4c storage: Create VimwikiTask and refactor task loading 2014-12-19 20:55:25 +01:00
Tomas Babej
5401eb7b46 regexps: Define basic regular expressions 2014-12-19 20:54:22 +01:00
Tomas Babej
ab9c51af18 Initial commit 2014-12-04 23:58:17 +01:00