summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-08-17fixup! fixup! fixup! Allow syntax inclusion, by going match → regiontopic/allow-embedcos
2024-08-17fixup! fixup! Allow syntax inclusion, by going match → regioncos
2024-07-09fixup! Allow syntax inclusion, by going match → regioncos
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.
2024-06-30Allow syntax inclusion, by going match → regioncos
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.
2020-12-24Merge branch 'expand_ftdetect' into 'master'David Beniamine
Detect based on directory name and env vars See merge request dbeniamine/todo.txt-vim!42
2020-12-24Detect based on directory name and env varsTyler Szabo
- 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)
2020-12-24Merge branch 'fix_donefile' into 'master'David Beniamine
Handle error when Done file is same file See merge request dbeniamine/todo.txt-vim!44
2020-12-24Merge branch 'dev-doc' into 'master'David Beniamine
Align recent updates to README.markdown with doc/todo.txt See merge request dbeniamine/todo.txt-vim!43
2020-12-24Merge branch 'dev-fold' into 'master'David Beniamine
Enable user to prevent fold method change after sorting See merge request dbeniamine/todo.txt-vim!40
2020-12-23Handle error when Done file is same fileTyler Szabo
2020-12-19Align recent updates to README.markdown with doc/todo.txtJason Lenz
2020-12-19Update folding related documentationJason Lenz
2020-12-19Merge branch 'dev-doc' into 'master'David Beniamine
Fix typos in todo list and formatting in hierarchical sort See merge request dbeniamine/todo.txt-vim!41
2020-12-17Fix typos in todo list and formatting in hierarchical sortJason Lenz
2020-12-17Enable user to prevent fold method change after sortingJason Lenz
2020-12-15Wrap `normal!` when commands contain CR characterTyler Szabo
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.
2020-12-13Fix sort with symbol of more than 1 letterDavid Beniamine
2020-08-03Merge branch 'dev' into 'master'David Beniamine
Adds syntax highlighting for tasks with threshold dates in the future See merge request dbeniamine/todo.txt-vim!37
2020-06-09Adds syntax highlighting for tasks with threshold dates in the futureRene Vergara
2020-03-12Merge branch 'fix_done_today_files' into 'master'David Beniamine
Fix generation of [Dd]one-[Td]oday.txt files See merge request dbeniamine/todo.txt-vim!36
2020-03-12Fix generation of [Dd]one-[Td]oday.txt filesManu Hernandez
2020-01-09Merge branch 'master' into 'master'David Beniamine
Use abbreviations instead of maps in insert mode See merge request dbeniamine/todo.txt-vim!35
2020-01-09Add g:TodoTxtUseAbbrevInsertMode documentations.Ricky Anderson
2020-01-07Add g:TodoTxtUseAbbrevInsertMode to control usage of abbreviations orRicky Anderson
mapping in insert mode
2019-12-10Use abbreviations instead of maps in insert modeRicky Anderson
2019-12-01Merge branch 'natema-master-patch-52990' into 'master'David Beniamine
Duplicated Recurrence section in README. See merge request dbeniamine/todo.txt-vim!34
2019-12-01The section Recurrence was duplicated in README. Emanuele Natale
2019-11-25Merge branch 'natema-master-patch-54181' into 'master'David Beniamine
Fixing double hashtag in README.markdown See merge request dbeniamine/todo.txt-vim!33
2019-11-23Fixing double hashtag (broken internal link)Emanuele Natale
in README.markdown
2019-11-17Merge branch 'natema-master-patch-23275' into 'master'David Beniamine
Fixing typo in README.md See merge request dbeniamine/todo.txt-vim!32
2019-11-17Fixing typo in README.mdEmanuele Natale
2019-11-12Make Readme more user friendlyDavid Beniamine
Fix #41
2019-07-18Add LICENSEDavid Beniamine
2019-07-10Update doc, fix #38David Beniamine
2019-07-10Update doc fix #39David Beniamine
2019-03-07Fix #37 : remove markDavid Beniamine
2019-02-13Document g:TodoTxtStripDoneItemPriorityRisto Saarelma
2019-02-12Fix #36David Beniamine
2019-02-11Fix #33David Beniamine
2019-02-10Release several bug fixDavid Beniamine
2019-02-10Silence all sortsDavid Beniamine
2019-02-10Add setting for dropping priority metadataRisto Saarelma
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
2019-01-23Revert "Change top repo command to fix CI"David Beniamine
This reverts commit cfc60009484fd795f6c1e391cac9792f124407dc.
2019-01-23Fix sheebangDavid Beniamine
2019-01-23Change top repo command to fix CIDavid Beniamine
2019-01-23Fix gitlab ciDavid Beniamine
2019-01-23Add gitlab ciDavid Beniamine
2019-01-23Keep cursor pos on sorting see #33David Beniamine
2018-12-23Save "/ buffer, fix #35David Beniamine
2018-05-25Move tasks without priority before done on sortDavid Beniamine
Closes #32