Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle checkboxes via preview #193

Closed
Splike opened this issue May 31, 2018 · 8 comments
Closed

Toggle checkboxes via preview #193

Splike opened this issue May 31, 2018 · 8 comments
Labels
Area: Preview The Markdown preview is owned by VS Code. We have nearly no control. Area: Task list GitHub Flavored Markdown task list. Res: External Outside of our control/codebase. Upstream Pertaining to an upstream component, or blocked by an upstream issue.

Comments

@Splike
Copy link

Splike commented May 31, 2018

When I've made my task list, I like to only have the preview open. Would it be possible to implement the ability to click checkboxes in the preview, so the code is updated as well? The source file should save itself upon checking/unchecking via the preview.

@yzhang-gh
Copy link
Owner

It seems not feasible. Maybe you need a more powerful Markdown editor like Typora or Caret.

@nesl247
Copy link

nesl247 commented Oct 3, 2018

I came to look for this. What is the limitation? I've seen this work in PhpStorm for example.

@yzhang-gh
Copy link
Owner

It is somehow possible but complicated to implement because of vscode extension APIs.

@nesl247
Copy link

nesl247 commented Oct 4, 2018

Is there an open issue on VSCode for what would make it easier to implement?

@yzhang-gh
Copy link
Owner

I'm afraid no 😳

Markdown is rendered to HTML and then previewed in a new tab (done by vscode)

What we can contribute now is

  • providing some Mardown engine (markdown-it) plugins e.g. markdown-it-task-lists
  • providing some stylesheets or scripts

To implement this feature, we need to

  • add eventListener to each checkbox, which means we probably need to write a markdown-it plugin to change the output HTML
  • communicate with vscode to change the Markdown source code, which I am not sure how to do. Although I know some extensions can do it.

@benthillerkus
Copy link

Has the situation changed, 2 years later? I'd love to work through a ToDo-list that way.

@yzhang-gh
Copy link
Owner

Not feasible as a plugin. But you may be interested in microsoft/vscode#84520.

@yzhang-gh yzhang-gh added the Upstream Pertaining to an upstream component, or blocked by an upstream issue. label May 9, 2020
@Lemmingh Lemmingh added the Needs Tag fix Does not meet label requirements. label Nov 25, 2020
@Lemmingh Lemmingh added Area: Task list GitHub Flavored Markdown task list. Res: External Outside of our control/codebase. Area: Preview The Markdown preview is owned by VS Code. We have nearly no control. and removed Needs Tag fix Does not meet label requirements. labels Aug 24, 2021
@Bludator
Copy link

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Preview The Markdown preview is owned by VS Code. We have nearly no control. Area: Task list GitHub Flavored Markdown task list. Res: External Outside of our control/codebase. Upstream Pertaining to an upstream component, or blocked by an upstream issue.
Projects
None yet
Development

No branches or pull requests

6 participants