Coder Social home page Coder Social logo

dylangiesberts / obsidian-table-checkboxes Goto Github PK

View Code? Open in Web Editor NEW
19.0 3.0 4.0 71 KB

Obsidian plugin. Allows for the usage of checkboxes inside markdown tables.

License: MIT License

JavaScript 26.90% TypeScript 70.21% CSS 2.89%
obsidian obsidian-md obsidian-notes obsidian-plugin obsidianmd

obsidian-table-checkboxes's People

Contributors

bithead2k avatar dylangiesberts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

bithead2k innhyu

obsidian-table-checkboxes's Issues

Doesn't work

I'll keep it short. I did everything as you described but when i print - [ ], normal checkbox appears and it is not readable with reading mode. The problem is i print - , okey [,okey, i press two spaces so now i have [ , allright, but when i close bracket html code doesn't appear. It continues as usual and i can't use checkbox with tables. I use the latest version both obsidian and plugin. Do you think where is the error?

Might it be having trouble with other plugins?

plugin does not work, tried things to solve it.

The plugin does not seem to work

  • either the error lies with me (but where??? Just installed the plugin via Obsidian.)
  • there is a bug

Things I have tried:

  • OS: Windows 11
  • Obsidian version 1.4.13
  • disabled all plugins, except: obsidian-table-checkboxes and arrows (to test with arrows the functionality of keyboard input and automatic conversion to other code)
  • arrows works, but obsidian-table-checkboxes does not, I have no explanation for this.

Are there any dependencies in the plugin regarding OS or other plugins or Obsidian versions?
grafik

Checkbox State Not Maintained?

First off, thank you for making this plugin! It is a relief that I can now have checkboxes in my tables.

I am having an issue related to the state of the checkbox, i.e. whether it is checked or not. It seems like the html is not getting updated when the box becomes checked? This is causing an issue with being able to sync the tables - if I check off a box on one device, the box still shows as unchecked on another device.

Is this intentional?

Seems Broken

Tried any possible style to create a checkbox inside a table. Tried to create a table around it... nothing seems to work.

  • Table HTML Checkboxes Version: 1.0.1
  • Obsidian Version: 1.1.9

issues when using obisdian table editor core plugin

first issue: obsidian autocompletes the ] of - [ ] after you type - [, so it's unintuitive to have to type ] when it's already there.
second issue: even when you type ], the checkbox gets inserted but the ] stays there:

Capture_2024_m02.d17_21.11.mp4

Broken attribute

Hey! I really need this thing. But for some reason it doesn't work. I can put a checkbox in the table and it changes to HTML, but when I click on it the unchecked attribute doesn't change to checked. Maybe I did something wrong, or is it a bug at the moment

Unnecessary return statement (?)

In Line 23 of main.ts, a return statement is applied on this.handleCheckboxReplacement, while in line 32, it isn't. Line 23 is the only place in the entire main.ts, where a return is applied on a non-returning function.

I suggest using void return types for all for this.handleCheckboxReplacement and all other non returning functions, since the compile will throw an error.

Bildschirmfoto vom 2024-04-23 20-17-29 +0200

Checkboxes now functioning properly, but not inside of admonitions/quotes.

Thank you again for the recent update, I'm happy to say it's working in almost all cases now. However, when trying to create tabled checkboxes inside of an admonition/callout/quote, it no longer will convert the - [ ] into the HTML tag. If the tabled checkbox is written outside of the callout and then cut-and-pasted into the admonition, it functions as expected, but it can't be written directly in the callout.

Cannot Install Repository

I tried using BRAT to install the plugin, but it repeatedly says "this isn't an Obsidian plugin as it does not contain a manifest.json file". I've tried using both links, [email protected]:bithead2k/obsidian-table-checkboxes.git and also the github-provided one, https://github.com/DylanGiesberts/obsidian-table-checkboxes.git. Has the same issue with both. I tried manually installing the repository in the Obsidian plugins file and it still fails to load the plugin in Obsidian, without giving a reason.

Auto check box

On both my Mac (14.1) and iPhone (iOS 17.0.3) using v2.04 of Markdown table checkboxes, with all checkboxes checked, unchecking a box automatically unchecks the one above or below. At any given time, I can only have one unchecked.

I used an editor and changed all the "checked" to "unchecked." On both now, checking the second one unchecks the first (first and second chronologically, not order in the file). At any given time, I can only have one checked. And so on.

Well, that's not strictly true, sometimes on the iPhone, the previous box stays checked when I check any other. I haven't figured out a pattern to get more than two boxes checked at the same time.

Using an editor outside Obsidian, I checked four (random, not sequential) boxes in a table of about 50 items. When opening Obsidian and that file from either Mac or iPhone, I still get the effect of checking a box unchecks another nearby. So now I can only have exactly four checked. And so on.

I used sort -u to verify that the ids in the file are unique, no duplicates.

Not worked

I don't know what's the reason, but the plugin isn't working for me.

I installed it through the store, restarted Obsidian, tried to test it, and... nothing.

I only have 4 plugins installed and only one of them is active (besides the checkbox in the table).

There's no substitution of HTML tags in the table.

Obsidian version 1.5.11.


01
02

Checkboxes generated with template not functional?

After much frustration with checkboxes in tables, I finally found your plugin, and thought all my prayers were answered.

I confirmed that the plugin worked when I type in a checkbox in a table manually.

I then proceeded to write a template that loops over a DataviewJS query to generate table rows for each found item, and adding checkboxes to two cells in each row.

I figured I'd need to add IDs to the checkboxes for the plugin to work, so I wrote a little function to generate random 10-character IDs.

I've now got things mostly where I want them, and to my horror I've discovered that my checkboxes don't seem to work; the state is not retained between document loads, or view type switching.

I tried hand-typing a new checkbox into some of the cells, and they work as intended.

Am I right in assuming that the plugin only works with checkboxes it's converted to HTML itself? Or is there some way to make "existing" HTML checkboxes work?

If not, could that be a thing? Let the plugin scan a given page for checkboxes with an ID assigned, and manage their states?

Edit: Another option could be a shortcut for something like "parse document checkboxes", which could look for either markdown- or html checkboxes and "log/index" them (or whatever it is that the plugin needs to do to work).

Even better, maybe some sort of tag in the frontmatter to tell the plugin to parse the page? That way, it can be added directly in the template, and any pages genereated by said template would work right off the bat, without having to call the proposed shortcut.

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.