Age | Commit message (Collapse) | Author |
|
|
|
|
|
Without this commit, the reimplemented syntax works for lines which are
done or have priorities. It however failed to match lines on lines
lacking those things. This commit fixes that.
|
|
Restructure syntax highlighting, using context aware `syntax region`
rather `syntax match` statements requiring to match on line start
anchors. This should be functionally identical when editing ordinary
todo.txt files. The advantage is that this also allows reusing this
syntax file within other file formats.
Without this commit, attempting to embed todo.txt snippets in other file
formats might result in only partial syntax highlighting. With TodoCol0
marking the start of each line, the grammar allows full syntax
highlighting in case the snippet starts or ends on a non-line
boundaries.
Consider for example these four lines of prio/syntax.vim, for my purely
personal `prio` file format:
syntax include @Todo syntax/todo.vim
hi! def link prioLabel Label
sy region prioLabel start="^\s*TODO:" end="\s*" nextgroup=prioTodo
sy region prioTodo contained start=/./ end=/$/ contains=@TodoStart
This commit and the above configuration allows syntax highlighting of
any todo.txt row prefixed by `TODO:` in those files. Making actionable
items standing out from otherwise free-form natural language.
Given the ease of configuration, one can imagine similarly embedding
todo.txt directly in any text based file format. Thus improving many
use cases where todo.txt files might be generated from other canonical
sources.
|
|
Detect based on directory name and env vars
See merge request dbeniamine/todo.txt-vim!42
|
|
- Detect .todo/*.txt and $TODO_DIR/*.txt
- Detect $TODO_FILE and $DONE_FILE
Based on variables and defaults in [todo.cfg](https://github.com/todotxt/todo.txt-cli/blob/master/todo.cfg)
|
|
Handle error when Done file is same file
See merge request dbeniamine/todo.txt-vim!44
|
|
Align recent updates to README.markdown with doc/todo.txt
See merge request dbeniamine/todo.txt-vim!43
|
|
Enable user to prevent fold method change after sorting
See merge request dbeniamine/todo.txt-vim!40
|
|
|
|
|
|
|
|
Fix typos in todo list and formatting in hierarchical sort
See merge request dbeniamine/todo.txt-vim!41
|
|
|
|
|
|
Git can become confused when a single line ends with a carriage return wrapping with `execute` and escaping control characters works around Git end-of-line nuances.
|
|
|
|
Adds syntax highlighting for tasks with threshold dates in the future
See merge request dbeniamine/todo.txt-vim!37
|
|
|
|
Fix generation of [Dd]one-[Td]oday.txt files
See merge request dbeniamine/todo.txt-vim!36
|
|
|
|
Use abbreviations instead of maps in insert mode
See merge request dbeniamine/todo.txt-vim!35
|
|
|
|
mapping in insert mode
|
|
|
|
Duplicated Recurrence section in README.
See merge request dbeniamine/todo.txt-vim!34
|
|
|
|
Fixing double hashtag in README.markdown
See merge request dbeniamine/todo.txt-vim!33
|
|
in README.markdown
|
|
Fixing typo in README.md
See merge request dbeniamine/todo.txt-vim!32
|
|
|
|
Fix #41
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The default behavior of todo.txt is to add priority metadata to done
items with priority tags so that the priority can be restored when the
item is marked as undone. If you want to have cleaner done items and
just remove the priority information when the item is set as done, set
let g:TodoTxtStripDoneItemPriority=1
|
|
This reverts commit cfc60009484fd795f6c1e391cac9792f124407dc.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Closes #32
|