Commit graph

32 commits

Author SHA1 Message Date
Nikolaos Kakouros
f9a1e6ab9f Removes whitespace from urgency marker highlighting
Co-authored-by: Tomáš Janoušek <tomi@nomi.cz>
2021-06-26 20:16:46 -04:00
Jonathan Dowland
67e5444cdf Only adjust conceallevel if taskwiki_disable_concealcursor unset
`g:taskwiki_disable_concealcursor` is used to control whether or not
Taskwiki sets `concealcursor`. Move the setting of `conceallevel` to
also dpend upon `g:taskwiki_disable_concealcursor`, the reasoning
being that if the user does not want Taskwiki to set `concealcursor`,
they most likely don't want `conceallevel` changed either.

Fixes #325.
2021-04-02 22:37:28 -04:00
Tomas Janousek
57a5c405ea completion: Add omni completion for new task modstrings 2020-12-26 20:52:04 -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
792ca80a2b syntax: Move setl viewoptions to ftplugin
Doesn't belong in syntax, and shouldn't be set unless we need it for
mkview, so move it next to that mkview.

(BTW, it's a bit confusing that we use setlocal for a global option. Are
we hoping it's going to be made local one day? If not, we may as well
change it to `set` to avoid confusion.)
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 Janousek
9d7d90192b syntax: Highlight priority in TaskWikTask{Active,Completed,…} as well
The more straightforward `containedin=@TaskWikiTaskContains`
unfortunately doesn't work as it actually means
`containedin=VimwikiListTodo,VimwikiTag,VimwikiEmoticons,…` and that
isn't what we want.
2020-08-02 17:56:21 -04:00
Tomas Janousek
8a8d22cd7a syntax: Allow regular vimwiki syntax in TaskWikTask{Active,…} as well 2020-08-02 17:56:21 -04:00
Tomas Janousek
3b72535707 settings: Remember cursor position in the view
Commit 9f3a52e73b meant to only disable remembering options, but it
ended up disabling remembering of cursor position as well. The cursor is
still restored by last-position-jump (see usr_05.txt) if one has that in
their vimrc, but whenever there are any folds in the view, restoring
these folds resets the cursor again.

Not disabling saving of cursor position fixes this in the default
configuration and lets the user tweak viewoptions however they like.
2020-08-02 17:20:32 -04:00
Tomas Babej
a3e0f47ad2 syntax: Allow wiki links inside task descriptions 2017-01-09 01:29:50 +01:00
Alex
68558119ca Add option to disable concealcursor changes (#107)
* Add option to disable concealcursor changes

* option `taskwiki_disable_concealcursor`
* fixes #106

* Set `conceallevel=3` regardless of `taskwiki_disable_concealcursor`
2016-12-13 00:17:28 +01:00
Tomas Babej
5572b4f359 syntax: Define syntax elements from waiting and recurring tasks 2016-05-23 21:20:18 +02:00
Tomas Babej
cf140bbbc0 syntax: Allow regular vimwiki syntax elements inside TaskWikITask 2016-05-23 10:24:59 +02:00
Tomas Babej
3b7f4cf6b0 syntax: Support knowledge-like headers in fold text captions 2016-05-12 15:56:06 +02:00
Tomas Babej
9f3a52e73b settings: Do not remember options in the view and explicitly set foldmethod 2015-09-19 11:31:54 +02:00
Tomas Babej
e36aef34d4 Add custom FoldText function 2015-09-18 06:06:30 +02:00
Tomas Babej
13177a92e3 taskwiki: Add taskwiki_disable variable check that allows for a quick flexible taskwiki turnoff 2015-04-22 20:16:56 +02:00
Tomas Babej
48ae1556fb syntax: Actually enforce syntax matching inside containedin elements 2015-04-21 19:08:26 +02:00
Tomas Babej
f773a5119d syntax: Require whitespace following the TaskWikiPriority mark 2015-04-10 17:00:00 +02:00
Tomas Babej
f3e7b6b42d syntax: Do not require trailing whitespace after priority indicator 2015-04-10 16:58:18 +02:00
Tomas Babej
7c1656d33b taskwiki: Do not source colors for priority values, color uniformly exclamation marks instead 2015-04-09 19:10:46 +02:00
Tomas Babej
7f146c55cb syntax: Further syntax improvements 2015-04-09 17:05:53 +02:00
Tomas Babej
5440d21e83 syntax: Improve color handling 2015-04-08 22:14:41 +02:00
Tomas Babej
6d5407720a syntax: Remove now redundant highlight definitions 2015-04-08 17:05:46 +02:00
Tomas Babej
1ec33cd496 syntax: Add highlighting for the deleted tasks 2015-04-06 22:46:07 +02:00
Tomas Babej
3654c3fb46 syntax: Amend UUID concealment syntax rules to accomodate data sources 2015-04-05 21:53:22 +02:00
Tomas Babej
9df904c98f syntax: Amend UUID concealment to match short uuids too 2015-03-27 02:19:04 +01:00
Tomas Babej
b12540cd57 syntax: Correct active task highlighting to work with indented tasks 2015-03-26 00:40:22 +01:00
Tomas Babej
31d5b718c1 syntax: Improce concealment 2015-03-23 12:50:49 +01:00
Tomas Babej
57f1321729 syntax: Add conceal settings only as local to the buffer 2015-03-23 11:49:18 +01:00
Tomas Babej
087bfa7f7e syntax: Add syntax highlightning for active tasks 2015-03-23 11:44:25 +01:00
Tomas Babej
9fe5e523e1 Syntax: Add concealment for UUIDs 2014-12-31 03:30:37 +01:00