- Pull-request "feat: insert created at on new task".
- Fixed issue on "Note tag hover shows note content more than once" where hovers would show note content more than once.
- Added
tagDatePattern
setting to allow specifying format of dates indue
tags. Addresses Extension Setting to Change Date Format.
- Fixed issue on "Increment/Decrement priority of selected tasks" apply for selected tasks where the selection was lost after a multi-line edit.
- Pull-request to "Allow projects and contexts to contain non-Latin characters".
- Fixed bug where some multi-task commands like
incrementPriority
,decrementPriority
andtoggleCompletion
were not working properly. It seems callingTextEditor.edit
multiple times in a loop no longer works as it used to. This fixes "Increment/Decrement priority of selected tasks" apply for selected tasks. Updated README.md to include all settings and commands.
- Added option to automatically replace note text with the resulting note tag when creating a note for a task. The new setting,
replaceNoteTextWithNoteTag
, defaults tofalse
so the old behavior remains the same (the text is just deleted).
- Added new extension setting to make the note filename pattern customizable.
The new settings,
noteFilenameFormat
, specifies the format for new note filenames when using thecreateTaskNote
command ("Create note for task"). The format can includestrftime
-style format specifiers and uses the strftime JavaScript port of the C library function. The filename format can also contain the string[Todo]
which will be selected in the prompt. The default format is[Todo]-Note-%Y%m%d-%H%M%S.md
to be consistent with previous versions.
-
Added option to remove priority indicator from completed tasks The spec suggests this to allow sorting completed tasks by date. I made an option in the extension settings so as not to change behavior in the past. The default is false/off. See
todotxtmode.removePriorityFromCompletedTasks
. -
Added feature to hover project file contents and link to file This behaves like the
note:xxx
tag field but for+project
tags. If there is a file namedproject.md
for the corresponding+project
field, the contents will be displayed when hovering over the project field and a link to open it is display in the hover box.
-
Fix todotxt-mode.toggleCompletion should not overwrite creation date with completion date Correct handling of creation date should be working now. There is an ambiguity in the spec where it says "Optional - Creation Date (must be specified if completion date is)" which doesn't really make sense since an incomplete task would never have a completion date. In any case, there is one ambiguity I don't handle: if you have a task with a creation date such as:
2020-05-17 a new task created today
and then you "complete" it by just inserting
"x "
at the beginning of the line, there is no way to tell if that is a completion date or a creation date. Since this extension always adds completion dates when using thetoggleCompletion
command, I assume in this case this date is also a completion date.Also added these related features:
- Highlighting of creation dates controlled by style
todotxtmode.creationDateStyle.light.color
andtodotxtmode.creationDateStyle.dark.color
. - Sort tasks by creation date via command
todotxt-mode: Sort by CreationDate
.
- Highlighting of creation dates controlled by style
- Fix Unable to figure out functionality of moveTasksToProject.
This feature was never fully implemented but is now complete. The behavior is as follows:
- If the current task is in a
todo
task file, the task will be removed from the current file and inserted into the appropriate project file. - If the task has a project tag and that tag is an exact match for a project file (excluding the leading
+
character and adding in the.md
extension), the task will be moved without prompting the user for a file. Case is sensitive so a tag of+Foo
will match the fileFoo.md
but notfoo.md
. - If the task does not have a project or the project tag is not an exact match with a filename, the user will be prompted to select a file.
- A side effect of this process is that the project file will be opened in VS Code. The project tab become active for a second because the VS Code API does not currently allow loading a document without making it active.
- The changes to both files are not saved. Thus if you make a mistake, you can easily undo both edits.
- Multiple tasks are not supported right now as prompting for a file in a loop is not ideal, but it's also not clear if assuming all the tasks should be moved to the same project file is the right behavior.
- If the current task is in a
- Fix move tasks to Someday file' moves tasks to incubate.txt instead. Changing any of the filenames requires restarting the extension, though.
- Add support for leading whitespace in tasks. Addresses Whitespace at beginning of line throws of syntax highlighting although I'm not sure if this is valid
todo.txt
syntax. But it could be useful at times.
- Fix for Task completion format is wrong when used with priority.
- Fix for Sort by due date doesn't sort
- Added two new commands
incrementPriority
anddecrementPriority
bond toCtrl+Shift+A
andCtrl+Shift+Z
, by default, to increment or decrement the priority on a task. If the task has no priority, it is initially set to(A)
.
- Fix for "Open note" link not properly rendered. Thanks to @xgid
- Fix for Unable to open 'file': File is a directory. Thanks to @jdckr
- Fixed date decoration bug where only worked if tag was
due
- Allow archive tasks from any todo text file, not just the main
todo.txt
one
- Remove redundant code
- Handle no file in
ensureEndsWithEOL
- Support decoration in sections of Markdown files bracketed by
markdownDecorationBeginPattern
andmarkdownDecorationEndPattern
- Renamed
commandFilePattern
setting totodoFilePattern
- Fix for priority highlighting issue. Thanks to @jgoulet1994
- Added support for note files and hover preview of the link (e.g.
note:<file.md>
) - Added styles for different priority levels
- Added styles for past, present and future due dates
- Added all settings and styles to package.json to support as User Preferences
- Added commands to move tasks between files
- Wrote README.md documentation file
- Initial release with basic decoration functionality