Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 24, 2024. It is now read-only.

VSCode extension for Todo tracking based on "todo.txt" format.

License

NotificationsYou must be signed in to change notification settings

usernamehw/vscode-todo-md

Repository files navigation

VersionInstallsRating

Todo MD

❗ Extension does NOT conform to thetodo.txt spec.

demo

webview demo

By default works for files with namestodo.md,someday.md &todo.archive.md (Can be configured withtodomd.activatePattern setting).

Features

Projects

+Project

Nested projects are ok+Project\nested but at the same time they do not get treated differently in any way.

Context

@context

Tags

#tag1 #tag2

Priority

Priority is a single UPPERCASE letter surrounded by round brackets. It can be (A-Z). Only the first 6 (A-F) have unique colors though.

(A)

Special {tag:value} pairs

{due:2020-04-30}

List of special tags:

tagdescriptionexample
fFavorite{f}
dueDue date{due:2020-05-15}
overdueOldest overdue date (only for recurring tasks). Added automatically.{overdue:2020-05-15}
cmCompletion date{cm:2020-05-15}
crCreation date{cr:2020-05-15}
h(hidden) Task is not visible in Tree Views and webview (unless due){h}
c(collapsed) State of folding in Tree View or webview for nested tasks{c}
countInstead of completing the task increases count by 1. When the number matches the goal - the task is considered completed{count:0/3}
startDatetime when task was started{start:2021-04-08T16:17:15}
durationAfter completing task with{start} tag - calculate task duration{duration:1h2m}

Recurring due date

Recurring due dates should not be archived and their completion state should be reset every day.

# Recurring due date that is due every monday:{due:monday}# Short form:{due:mon}# Recurring date that is due every 2nd day (starting date required){due:2020-06-28|e2d}# Recurring date that is due every 2nd month at the 31th (or last day of the month if it has less than 31 days){due:2020-02-31|e2m}# Recurring date that is due every 2nd year at the last day of Feb{due:2020-02-31|e2y}

Multiple recurring due dates,

# Is due every Sunday and Monday{due:mon,sun}

Comments

Comment is not considered a task. It starts with a sharp sign# followed by a space.

# comment

Filter (In Tasks Tree View and Webview View)

  • #tag - tag
  • +project - project
  • @context - context
  • $A - Priority
  • >$C - Priority range (here it matches$A,$B,$C)
  • $done - Completed task
  • $due - Due or Overdue task
  • $overdue - Overdue task
  • $upcoming - Task with due date, that is not due (equal to this filter:-$noDue -$due)
  • $recurring - Recurring tasks
  • $hidden - Task with{h} special tag
  • $favorite - Task with{f} special tag
  • $started - Not completed task with{start:...} tag
  • $noDue - Due date is specified in any way
  • $noProject - Task with no projects
  • $noTag - Task with no tags
  • $noContext - Task with no contexts
  • TEXT_TO_SEARCH - Search in raw text (anything in the line)
  • "TEXT_TO_SEARCH" - Search only in task title (not in special entities, like tag or project)
  • -#tag - (Negation) Task doesn't contain tag#tag

Commands (44)

CommandDescription
todomd.toggleCommentTodo MD: Toggle comment.Ctrl/Cmd+/ (Only when in todo.md file)
todomd.toggleTagsTreeViewSortingTodo MD: Toggle Tags Tree View Sorting
todomd.toggleProjectsTreeViewSortingTodo MD: Toggle Projects Tree View Sorting
todomd.toggleContextsTreeViewSortingTodo MD: Toggle Contexts Tree View Sorting
todomd.showWebviewSettingsTodo MD: Show Webview Settings
todomd.webview.pickSortSort
todomd.webview.toggleShowRecurringUpcomingTodo MD: Toggle setting to show recurring upcoming tasks in webview.
todomd.focusTasksWebviewAndInputTodo MD: Supports arguments {"selectInputText": boolean, "fillInputValue": string}
todomd.collapseAllNestedTasksTodo MD: Collapse all nested tasks.
todomd.expandAllTasksTodo MD: Expand all tasks.
todomd.incrementPriorityTodo MD: Increment priority
todomd.decrementPriorityTodo MD: Decrement priority
todomd.toggleDoneTodo MD:Alt+D - Toggle Done (Completion)
todomd.hideTaskTodo MD: Hide the Task
todomd.deleteTaskTodo MD: Delete the Task
todomd.addTaskToDefaultFileTodo MD: Add a Task to DEFAULT file
todomd.addTaskToActiveFileTodo MD: Add a Task to ACTIVE file
todomd.sortByDefaultTodo MD: Sort by Due Date & Priority (default sort)
todomd.sortByPriorityTodo MD: Sort by Priority
todomd.sortByProjectTodo MD: Sort by Project
todomd.sortByTagTodo MD: Sort by Tag
todomd.sortByContextTodo MD: Sort by Context
todomd.sortByCreationDateTodo MD: Sort by Creation Date
todomd.sortByDueDateTodo MD: Sort by Due Date
todomd.sortByCompletionDateTodo MD: Sort by Completion Date
todomd.setDueDateTodo MD: Helper command to set due date relative to now.Docs
todomd.setDateTodo MD: Set date
todomd.archiveCompletedTasksTodo MD: Move completed tasks to Archive file
todomd.startTaskTodo MD: Start task (when completed adds{duration} special tag)
todomd.toggleFavoriteTodo MD: Toggle Favorite ({f} special tag).
todomd.openDefaultFileTodo MD: Open default file
todomd.openDefaultArchiveFileTodo MD: Open default Archive file
todomd.openSomedayFileTodo MD: Open Someday file
todomd.createSimilarTaskTodo MD: Create similar task (same tags, projects, contexts).
todomd.completeTaskTodo MD: Complete a Task
todomd.getNextTaskTodo MD: Get due task from main file. If none are due - get one with the highest priority.
todomd.getFewNextTasksTodo MD: Get several tasks. Due tasks are on top.
todomd.getRandomTaskTodo MD: Get random task
todomd.applyFilterToTreeViewTodo MD: Apply Filter
todomd.clearTreeViewFilterTodo MD: Clear Filter
todomd.resetAllRecurringTasksTodo MD: Reset all Recurring tasks
todomd.followLinkTodo MD: Follow link
todomd.removeOverdueTodo MD: Remove overdue
todomd.moveToSomedayTodo MD: Move to Someday file

Settings (62)

Todo MD extension settings start withtodomd.

SettingDefaultDescription
webview.showCompletedtrueWhether completed tasks are shown or not in the webview.
webview.completedStrikeThroughfalseWhether completed tasks should have a line drawn on them in the webview.
webview.showRecurringCompletedtrueWhether recurring completed tasks are shown or not in the webview.
webview.showRecurringUpcomingtrueWhether recurring upcoming (not due) tasks are shown or not in the webview.
webview.showPrioritytrueControls whether priority is shown in the webview.
webview.showCheckboxtrueControls whether checkbox is shown in the webview.
webview.showNestedTaskCountfalseControls whether nested tasks indicator (like0/10) is shown in the webview.
webview.showTaskDetailsfalseWhen true - show box on the bottom of the webview that shows selected task details.
webview.notificationsEnabledfalseWhen true - show notification after some actions (like task completion) in a webview.
webview.fontSize"15px"Controls font size in the webview.CSS Units
webview.fontFamily"..."Controls font family in the webview.CSS Units
webview.lineHeight1.4Controls line height in the webview.
webview.padding"2px"Controls top & bottom padding.CSS Units
webview.indentSize"1.8em"Controls visual indent of nested elements in a webview.
webview.customCheckboxEnabledtrueWhether checkbox is rendered as native input element or a custom styled element.
webview.autoShowSuggesttrueShow autocomplete when typing. (When disabled suggest can be called byCtrl+Space)
webview.focusFilterInputOnClicktrueFocus filter input after clicking(selecting) any task.
webview.customCSSPath""Absolute path to custom CSS for the webview.
webview.tagStyles{}Set different color for any tag in a webview.
defaultFile""Absolute path to file that Tree Views or commands use when no editor is open that matches#todomd.activatePattern#.
Pick default file. Supports using${workspaceFolder} variable substitution.
defaultArchiveFile""Absolute path to file that all archived tasks will be moved to.
Pick archive file. Supports using${workspaceFolder} variable substitution.
defaultSomedayFile""Absolute path to file that is used as the "someday" file.
Pick someday file
durationIncludeSecondsfalseWhen enabled - duration (editor, hover) includes seconds.
autoArchiveTasksfalseWhen enabled - will move tasks to archive file (on completion).
confirmTaskDelete"always"Show confirmation when deleting task from Tree View or Webview.
activatePattern"**/{todo,someday,todo.archive}.md"Choose files that extension will operate on. By default activated on 3 files (todo.md, someday.md & todo.archive.md). UsesGlob. Examples:
Activate on any (.txt) file -**/*.txt.
Activate only on single file (todo.txt) -**/todo.txt
Activate on 2 files (todo.txt or task.txt) -**/{todo,task}.txt
getNextNumberOfTasks5Number of tasks returned bygetFewNextTasks command.
sortTagsView"alphabetic"Controls tags Tree View sorting.
sortProjectsView"alphabetic"Controls projects Tree View sorting.
sortContextsView"alphabetic"Controls contexts Tree View sorting.
sortNestedTasks"default"Controls nested tasks sorting in Tree Views.
suggestItems{}This extension will only autocomplete tags/projects/contexts located in1 file. This setting allows you to add items and their description(markdown) to autocomplete in all files (where extension is active). Examples:#tag,+project,@context.
counterBadgeEnabledfalseShows small badge to show a number of times the tag/project/context is present in the active document.
progressChartEnabledtrueControls whether editor nested task decoration (pie chart) is shown or not.
progressBackground"#c6cdd3"Editor decoration for nested tasks progress (pie chart) background.
progressForeground"#0077AA"Editor decoration for nested tasks progress (pie chart) foreground.
mainStatusBarItem{...}Configure appearance/behavior of main status bar item (shows next task to complete).
progressStatusBarItem{...}Configure appearance/behavior of the progress status bar item (shows only when active text editor matches#todomd.activatePattern#) with text format:1/3 33%.
addCreationDatefalseWhen creating a task add creation date to it:{cr:2020-04-30}
completionDateIncludeDatetrueWhether to include date when completing a task:{cm} vs{cm:2020-04-30}
completionDateIncludeTimefalseWhen completing a task add date and time:{cm:2020-04-30T09:11:17}
creationDateIncludeTimefalseWhen creating a task add date and time:{cr:2020-04-30T09:11:17}
closestDueDateIncludeWeekdayfalseWhen enabled - editor decoration that shows number of days to the due date adds the weekday name.
autoBumpRecurringOverdueDatefalseWhen completing overdue recurring task - replace the starting date with today's date.
isDevfalseFor emulating dev mode. Most likely of no use to anyone, except the extension author.
tabSize4Number used for parsing nested tasks when indentation cannot be guessed (file is not opened in editor).
savedFilters[]Filters that you can pick when applying a filter.
treeViews[]Add more tree views with predefined filters.
treeView.showBadgetrueWhether or not to show due tasks counter badge for tree view container.
treeView.useVscodeCheckboxApitrueWhen checked - will use vscode api to show checkboxesmicrosoft/vscode#116141.
labelDueSymbol"📗 "Prefix for task that is due in labels (tree view, notification, modal, quick pick).
labelNotDueSymbol"📅 "Prefix for task that that is not due in labels (tree view, notification, modal, quick pick).
labelOverdueSymbol"📕 "Prefix for task that is overdue in labels (tree view, notification, modal, quick pick).
labelInvalidDueSymbol"🟣 "Prefix for task that has invalid due date in labels (tree view, notification, modal, quick pick).
labelFavorite" ❤️ "Label shown when task has favorite{f} special tag. (tree view, notification, modal, quick pick)
labelShowItemstrueShow projects/tags/contexts in labels (tree view, notification, modal, quick pick).
useBoldTextInLabelstrueShow projects/tags/contexts in labels inBOLD.
completedStrikeThroughtrueShow strike-through text decoration for completed tasks in editor.
setDueDateThisWeekDay"Friday"Week day when using set due date command or suggestSET_DUE_THIS_WEEK.
setDueDateNextWeekDay"Friday"Week day when using set due date command or suggestSET_DUE_NEXT_WEEK.
commentFormat{"start":"# ", "end":""}Choose comment symbols (only works at the beginning of the line).
decorations{...}Advanced text editor decoration tweaking.docs

Colors (21)

Can be specified insettings.json (workbench.colorCustomizations section)

ColorDarkLightHCDescription
todomd.favoriteTaskBackground#f62caf18#f62caf18#f62caf18Entire line background color for favorite tasks{f}.
todomd.commentForeground#b4b4b4#b4b4b4#b4b4b4Color of comments# Comment
todomd.priorityAForeground#ec4f47#ec4f47#ec4f47(A)
todomd.priorityBForeground#fd9f9a#fd9f9a#fd9f9a(B)
todomd.priorityCForeground#ffb039#ffb648#ffb648(C)
todomd.priorityDForeground#e2cb00#f1d900#f1d900(D)
todomd.priorityEForeground#97c500#ace000#ace000(E)
todomd.priorityFForeground#00cfad#00cfad#00cfad(F)
todomd.tagForeground#1abaff#029cdf#1abaffTag color#Tag
todomd.contextForeground#7284eb#7284eb#7284ebContext color@Context
todomd.specialTagForeground#c3ccfc#7e8081#c3ccfcColor of special tags{h}
todomd.projectForeground#36cc9a#36cc9a#36cc9aProject color+Project
todomd.notDueForeground#c3ccfc#7e8081#c3ccfcNot due
todomd.dueForeground#35c03a#01c208#37df3dDue
todomd.overdueForeground#d44343#d44343#f64f4fOverdue
todomd.invalidDueDateForeground#ffffff#ffffff#ffffffDue date that is either has an invalid format2020-05 or an invalid date2020-12-35
todomd.invalidDueDateBackground#7284eb#7284eb#7284ebDue date that is either has an invalid format2020-05 or an invalid date2020-12-35
todomd.nestedTasksCountBackground#e0d971#f7f3c099#e0d971Nested tasks counter editor decoration background.
todomd.nestedTasksCountForeground#000000#000000#000000Nested tasks counter editor decoration foreground.
todomd.nestedTasksCountBorder#fff0#dfd987bd#fff0Nested tasks counter editor decoration border.
todomd.treeViewCompletedTaskIcon#7cc54b#7cc54b#7cc54bColor of completed task icon in Tree View.

More Documentation

https://github.com/usernamehw/vscode-todo-md/tree/master/docs/docs.md

Please upvote the following upstream vscode issues:

About

VSCode extension for Todo tracking based on "todo.txt" format.

Topics

Resources

License

Stars

Watchers

Forks

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp