usernamehw / vscode-todo-md Goto Github PK
View Code? Open in Web Editor NEWVSCode extension for Todo tracking based on "todo.txt" format.
Home Page: https://marketplace.visualstudio.com/items?itemName=usernamehw.todo-md
License: MIT License
VSCode extension for Todo tracking based on "todo.txt" format.
Home Page: https://marketplace.visualstudio.com/items?itemName=usernamehw.todo-md
License: MIT License
{start:2021-02-16T19:30:43} {end:2021-02-16T19:30:43}
Start
duration
calculating the difference between end and start.$active
or $started
Any command that works only in file from todomd.activatePattern
should not be available in Command Palette.
Allow for nesting tags and contexts by detecting character like ">" or "/"
TODO:
\
\
in different color ???\
and different autocomplete itemssettings.json
:
"todomd.decorations": {
"project": {
"border": "1px dashed",
"borderColor": "#fade41ca",
"letterSpacing": "7px",
"fontWeight": "bold",
"backgroundColor": "#ffa03410",
"borderRadius": "5px",
},
"context": {
"fontStyle": "italic",
"outline": "thick double",
"outlineColor": "#32a1ce"
},
"comment": {
"backgroundColor": "#0001"
}
}
My use case is that I already use .ipynb file for my todo lists, and more precisely I use markdown cell inside ,ipynb files.
The formatting of ipynb files put the content of my todo inside double mark quotes, see example below. Todo MD does not parse the text inside quotes.
Example of a todo,ipynb file with the following content inside the markdown cell :
# Todo
- todo1
- todo2
Content of the todo.ipynb file :
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Todo\n",
"- todo1\n",
"- todo2"
]
}
],
"metadata": {
"interpreter": {
"hash": "916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1"
},
"kernelspec": {
"display_name": "Python 3.8.10 64-bit",
"name": "python3"
},
"language_info": {
"name": "python",
"version": "3.8.10"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}
I was suprised to see that, as far as I can tell, there is no way to filter the webview or any other view to only show the tasks that aren't marked as done. You can filter by "done", but not by "not done", or did I miss a feature?
As I go through the tasks and mark them as done, I would like them to not appear in the list, hence the need for this filter.
Would it be possible to add?
Thanks!
This could be nitpicky, but I like to use @context
, #tag
and +project
attributes within the body text of my todo items. However the extension automatically moves any attributes to the end of the line.
For example, the todo item: Move +Project items to other #buckets
would render as: Move items to other #buckets +Project
(which admittedly, while not perfect, is comprehensible).
But, since I like to use the @context
attribute for colleagues' names, the item: Speak to @Context about +Project #issue
. becomes; Speak to about #issue +Project @Context
, which is a bit harder to parse than the original.
Is it possible to override this automatic attribute repositioning? It's probably a trivial change if you know CSS (or JS?) but unfortunately I don't.
If not, is it possible to have an override option added?
Hello @usernamehw ,
Current behavior requires us to select text before sort or archive.
Could you consider to move this behavior to "Sort/archive selected tasks" then make "Sort/archive tasks" apply to all the texts in active file?
Best regards,
Huka
When I use SSH to open remote vscode.
TodoMD can not show tasks and can not mark task as complete.
can not access file by vscode-remote://ssh-remote
uri
Hello,
would it be possible to consider the feature "sorting by Project", where Project would be sorted alphabetically, and tasks within project by priority ?
It would be great.
Thanks !
please add support to ignore markdown frontmatter
Soon it will be possible to put webview in place of a Tree (Sidebar / Panel) microsoft/vscode#104601
Currently to get "follow link" context menu in the Tree View you have to wrap links in special tags:
google {link:https://www.google.com}
It would be nice to get that ability without wrapping.
VSCode already has api to get all parsed links from the document (vscode.executeLinkProvider
).
const links = await vscode.commands.executeCommand<vscode.DocumentLink[]>('vscode.executeLinkProvider', window.activeTextEditor?.document.uri);// 6-7ms :(
1️⃣ & 2️⃣ tasks will have the #html
tag
## #html
1️⃣ first task
2️⃣ second task
# Any comment stops it
3️⃣ third task
Example of sorting by priority:
Before sorting:
(C) parent
(A) nested 1
(B) nested 2
After sorting:
(A) nested 1
(B) nested 2
(C) parent
file:///
scheme should open the file in default app?
Please clarify (in doc?) all recurrent options.
I could not find how to :
Hello,
Could you consider support [ ] and [x] prefix for each task?
Example:
Best regards,
Huka
It would be good to have possibility of setting current task as completed or as active by the command(s). Now there is a command Complete a Task which is not useful (especially for many active tasks) because it displays a list of active tasks. It is completely unnecessary and not homogeneous with other commands which operate on current task - so there is already an algorithm which obtains current tasks from cursor position. Also there should be symmetrical command which removes completed element from current task and make it as active.
Having a command to sort items in the task:
${priority} ${text} ${project} ${tag} ${context}
wow (A) +Proj @home #first more text #second
After running the command:
(A) wow more text +Proj #first#second @home
{c}
that would track collapsed state?I wanna make a custom priority like (A) or (B).
It should be (BUG) and (FEATURE).
Can i implement this in settings.json? If I do, then how?
When using "Add Task to Default file", provide option to insert at current line, rather than end
Hi,
Not sure if this is an issue with Todo MD or something else - but I can't seem to get syntax highlighting to work?
I set todo.md
as my default file, and it shows up in the webview/changes are synced, but there's no syntax highlighting at all in the text file.
Also, not sure if this is related, But the webview doesn't update when I edit the default file also, I've opened a separate ticket for that
#29
+project
can be retired. Currently I have to manually mark almost every task with proper 'project', hope using nested task can save us a lot of time.Clicking on items in Archived Tree View opens active file instead of Archived default file.
I've encountered a bug in this extension that causes any contexts, tags, or projects to not render correctly in the Tasks view.
Here is a screenshot of the problem:
Here is the same Task view rendered correctly.
Everything looks fine in the Webview on both distros.
As mentioned in my previous issue, I'm not very well versed in CSS/JS etc. I have Googled the issue extensively, and tried some of the various fixes I've found, but haven't found a solution yet.
Any help would be appreciated.
"todomd.tags"
, "todomd.projects"
and "todomd.contexts"
are deprecated and removed. Instead, new setting:
"todomd.suggestItems": {
"#asdf": "### ASDF TAG",
"+asdf": "### ASDF PROJECT",
"@asdf": "### ASDF CONTEXT",
},
Setting value is a markdown description that is rendered on entity hover:
"todomd.suggestItems": {
"+todomd": "Todo MD project\n\n[$(github) GitHub](https://github.com/usernamehw/vscode-todo-md)",
},
When I edit todo.md, the webview correctly shows a nested treeview with all the tasks. However, when editing some other file the view is rendered incorrectly with all projects/contexts/tags being shown at the top and then all the tasks being shown without any nesting at all. The tasks view seem to follow a similar pattern with nesting and indentation of subitems being disabled when switching to a different file.
as a convert from todotxt , I miss some of the sorting choices. Here are some of the ideas I'd request being able to configure
When editing the default file's text directly, the WebView doesn't update.
Closing/Opening the Webview won't update either, but Toggling a task's completion (in the WebView) will force a refresh.
Repro:
first 🟥
nested
second ✅
nested
If you try to use the command to set due date, all other 3 letter month abbreviations work, but "jul" (for July) does not.
Is it possible to add common text to the file without the extension parsing every new line as a separate task? Even comments are parsed as tasks.
(A) ☐ task such and such
this task is about ....
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.