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

Plus characters not recognized in unordered lists #112

Closed
leesoh opened this issue Jan 3, 2023 · 11 comments
Closed

Plus characters not recognized in unordered lists #112

leesoh opened this issue Jan 3, 2023 · 11 comments
Assignees
Labels
enhancement New feature or request

Comments

@leesoh
Copy link

leesoh commented Jan 3, 2023

First off, thanks for all the work you've put into this extension! I really like the approach; it does almost everything I need and nothing I don't!

I've noticed some unexpected behaviour with lists. Both GitHub Flavoured and CommonMark%20.&text=Use%20any%20of%20*%20%2C%20%2B%20or,consistently%20use%20the%20same%20character.) specify that -, *, and + are all valid characters for a list, but + doesn't appear to be detected as such when using the <C-Space> shortcut to work with To Dos.

Reproduction Steps

Option 1

  1. Open a new markdown file.
  2. Enter + To do item on a new line.
  3. In Normal mode, press <C-Space>. Note that a to do item does not get created.

Option 2

  1. Open a new markdown file.
  2. Enter - [ ] To do item on a new line.
  3. Press enter to create a new to do item.
  4. Press <C-t> to indent, and update the nested list item from - to +.
  5. In Normal mode, press <C-Space>. Note that the to do item does not progress, nor does the parent task.

Hopefully this is sufficient to reproduce (and hopefully I haven't missed something obvious in the documentation!). If not, please let me know and I'd be happy to provide additional information.

@jakewvincent jakewvincent self-assigned this Jan 5, 2023
@jakewvincent jakewvincent added the enhancement New feature or request label Jan 5, 2023
@jakewvincent
Copy link
Owner

Hi @leesoh, this is right--currently, only - and * are supported as unordered list markers. However, it'll be very easy to include +. I'll add this in tomorrow.

@leesoh
Copy link
Author

leesoh commented Jan 5, 2023

Thank you!!

@jakewvincent
Copy link
Owner

Just added this! Let me know if you have any issues with it--I think I got all the necessary regex patterns updated.

@leesoh
Copy link
Author

leesoh commented Jan 6, 2023

Hi Jake! I just updated my the plugin and tried this out. It seems that <C-space> on a bulleted list adds [ ], but so does every additional press of <C-space>, rather than toggling list completion.

@jakewvincent
Copy link
Owner

I forgot a couple of patterns. Can you pull the latest update and try this again?

@jakewvincent
Copy link
Owner

If you're interested in seeing the patterns I needed to update for this fix, by the way, you can check out the diffs in these commits:

6f56ec8
8a88e70

@leesoh
Copy link
Author

leesoh commented Jan 6, 2023 via email

@jakewvincent
Copy link
Owner

Thanks for testing it! I'll try to fix the remaining issues today.

@jakewvincent
Copy link
Owner

All right, I've made some additional tweaks and everything appears to be working as expected on my end. Can you confirm?

@leesoh
Copy link
Author

leesoh commented Jan 6, 2023 via email

@jakewvincent
Copy link
Owner

Great! No problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants