Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
Our substitution commands would save the search pattern into search
history, intervening with user search history. Use the `keeppatterns`
command to prevent this.
|
|
|
|
|
|
|
|
I put these in the normal mode conditions for ease of testing and
implementation. Now check the mappings properly.
|
|
I don't really use visual mode, and don't feel like trying to make these
work.
|
|
Learned that `search()` accepts an `s` flag to mark the previous cursor
location, so figured we should take advantage of that and remove the
manual mark line.
|
|
|
|
|
|
The xmaps don't really work. Going to the next/previous TODO works, but
extending the selection doesn't because of the way I set it up with the
mark system. We'd probably need a more involved function here to do what
we want.
Currently doesn't support counts. I'll have to add that in.
|
|
`[u` and `]u` for "unfinished".
|
|
Add a help file with a description, example, mappings list, and list of
colours to customise.
|
|
Include a description and screenshot as part of the README. The
`example.todo` file was used as a base for the screenshot.
Add a license file for the GNU GPLv3.
|
|
|
|
Define the `todo#Escalate()` function which does the opposite of
`todo#Descalate()` and add a mapping to invoke the function.
|
|
|
|
Some URLs to look into to override cursorline syntax highlighting.
|
|
A function that descalates the priority of the TODO on the current line.
|
|
|
|
|
|
To build on 625c653d281716a19b5f16e4146a33d7962e22ac.
|
|
|
|
Fixed by 429a26e68f863afb306d6b7ea24892b6f580b384.
|
|
Previously you could only mark `-`-type TODOs as [Complete, Partially
Complete, Deleted]. Now you can mark any type of TODO (`-`, `_`, `!`,
`x`, `S`, `v`) as any of the above three states.
|
|
Include some annoyances.
|
|
Show them in Ignore so that they're not as prominent.
|
|
Use the `Ignore` highlight group to colour completed tasks. This makes
them less visible and get out of the way.
|
|
Have low priority tasks start with `_` instead of `-`. Highlight these
separately with the `Ignore` group to visually de-emphasize them.
|
|
Important tasks start with a `!` instead of a `-`. Highlight them
separately from normal tasks so that they can be visually distinguished.
Here we use the Error highlight group for them because it's red (at
least in my colour scheme).
|
|
When invoking the <leader>R command to remove old todos, only remove
completed and deleted ones. Partially completed tasks should stick
around and be reverted to uncomplete.
|
|
Don't highlight matches from our `:substitute` calls. It looks weird
when search matches are highlighted but the user didn't explicitly
initiate a search.
|
|
Create some useful mappings for creating and marking TODO items. These
will be buffer-local to *.todo files, which is why we're defining them
in the ftplugin file.
|
|
Subtasks get indented. This will highlight undone tasks even if there's
whitespace in front of them.
|
|
These lines were copied from my manual highlighting of TODO files
created a few days ago. They served as a guide while creating the
highlighting in the syntax file.
|
|
Based on Ch. 45 of Learn Vimscript the Hard Way
(http://learnvimscriptthehardway.stevelosh.com/chapters/45.html).
Highlights undone TODOs as Vim `Statement`s.
|
|
Set *.todo files to the `todo` filetype.
|