Comments (6)
Regardless of the code I mean how the third state should be displayed in markdown. Maybe we could introduce a "-" inside the brackets to mark it as partially checked, like an intermediate state of the checkbox:
- [-] this point is unconsidered yet
from vscode-markdown-checkbox.
@chmac adding [d]
seems reasonable, instead of tri-state this feature could be custom-state-for-any-single-char, where [ ]
and [x]
are just two of many?
But the question of using a different markdown syntax - ( )
belongs in a different issue
from vscode-markdown-checkbox.
Sounds interesting, do you've any idea how this could look like, I mean syntactically?
from vscode-markdown-checkbox.
I looked into your code and I'm afraid that this is probably not the easiest thing to achieve because of the fundamental changes it would mean. Instead of just toggling between checked/True and unchecked/False a third state would be needed. Without knowing the extension code in detail I guess that the necessary changes would be anywhere, from the model in checkbox.js
to the command markCheckbox.js
and the status bar in checkboxStatus.ts
. It also effects the customizable options "Type of checkmark", "Italic", "Strikethrough" and "Date when checked" - there would not be a simple "checked" state anymore but a "x-checked" and a "tick-checked" state, and the need to configure each of these states.
from vscode-markdown-checkbox.
In the manual "pencil and a sheet of paper" world I would probably just skip a checkbox to leave it unsonsidered. I would accept items by "tick-check" and reject items by "x-check".
In the current release, "x-checks" in the markdown code are rendered to "tick-checks" in my markdown preview. So obviously my manual habits are not working very well here ;-)
I think "-" sounds good to mark an item as unconsidered. With the advantage of leaving the current meaning of "unchecked" as "undone" which is perfect for todo lists.
from vscode-markdown-checkbox.
I'm also interested in multiple states for checkboxes. Dendron uses different characters inside the brackets. So they have states like "dropped" which is [d]
. I use these quite a lot.
Personally, I'm also interested in finding an extension which supports alternatives to the square brackets. I'd like to be able to track repeating checklists as - ( )
for example, and have them rendered as a checkbox in the preview. Then I can grep for - [ ]
while not finding my checklists!
@PKief Would adding these esoteric cases be a bit over the top for your plugin?
from vscode-markdown-checkbox.
Related Issues (20)
- Option for lower-/uppercase checkbox mark
- I would like to change the datestamp format HOT 2
- Operational Procedure Checklist Features
- Add timestamp if checkbox is created HOT 4
- Recently started adding checkboxes without user intervention HOT 3
- feature request: toggle `create checkbox`
- Multi-line operations HOT 2
- Date string regex matches to-do item description in certain scenarios HOT 1
- Keyboard shortcut on Mac not working. HOT 1
- Slow! HOT 2
- Bullet is added when with Bullet Point is not selected
- Timestamp causes "No link definition found" warning HOT 2
- Command 'Markdown: Pick checkboxes' resulted in error
- Keybinding Issue HOT 1
- Флажок не отображается HOT 2
- Option to support alternate brackets
- `Mark checkbox` removes bold Markdown formatting HOT 2
- [FR] have option to remove the ~~*
- Update checkboxes when changed from Markdown preview
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-markdown-checkbox.