Giter VIP home page Giter VIP logo

Comments (6)

PKief avatar PKief commented on September 26, 2024 3

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.

darthwalsh avatar darthwalsh commented on September 26, 2024 1

@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.

PKief avatar PKief commented on September 26, 2024

Sounds interesting, do you've any idea how this could look like, I mean syntactically?

from vscode-markdown-checkbox.

fabwi avatar fabwi commented on September 26, 2024

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.

fabwi avatar fabwi commented on September 26, 2024

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.

chmac avatar chmac commented on September 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.