-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Orgmode + Treesitter error on ORG_TOGGLE_CHECKBOX #609
Comments
@jgollenz Nevertheless the error message should not occur in this form, that's a bug. Either we throw an error "checkboxes in titles are not allowed" or we just swallow the attempt to toggle the checkbox silently. What do you think? Actually I would prefer the silent solution and as an enhance version some context specific mapping of org-toggle-checkbox to something, which makes sense, e.g. refreshing a |
Yes, I agree that the error message is ugly and not helpful to users 👍 I'm wondering what the use case for manually refreshing the edit: but of course, if emacs has this behavior, we should try to replicate it |
It happens (in case of headlines) if you add the cookie afterwards. It
doesn't appear automatically in Emacs if I recall correctly.
Am 11. September 2023 17:27:29 schrieb Jonas Gollenz
***@***.***>:
…
Yes, I agree that the error message is ugly and not helpful to users 👍 I'm
wondering what the use case for manually refreshing the [/] is, because
this should™ happen automagically whenever changes that justify a
cookie-update occur. The only thing I can come up with is "something about
my progress-cookies is broken, so let's refresh them manually". That
certainly may be the case sometimes, but I would rather people report that
the progress-cookies are broken (so we can go fix them) than just update
them manually out of convenience (which means we might not learn about the
bug).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID:
***@***.***>
|
Yes I do and I actually recall this abandoned PR.
You mean updating statistic cookies during |
No. I meant doing it like we do for
Understandable. Having both a mapping for
From the docs it seems that emacs orgmode offers both the edit: 4. we could do 3., but don't have them be the same. A dedicated mapping that is adjustable by the user AND a edit 2: I'm not sure if edit 3: yeah, it updates all statistics cookies of the current heading |
Before you start, please drop me a message. I started working on this myself a while ago and I'd like to discuss some things first 👍 thanks for you contributions 🙂 |
@jgollenz I think option 2 seems to be viable while not being too complicated. I'm referring to Do you have an entry-point to your implementation attempt - some branch on your fork or something? |
I started implementing it 👍 we can add a dedicated mapping for
Yes, somewhere 😁 Are you in the nvim-orgmode matrix channel by any chance? |
No, I wasn't aware of that. Actually I have to admit, that I haven't used Matrix in the past, but if you can help me joining the channel I would be happy to do so. |
Describe the bug
I have an item like
If I want to mark the checkbox, I would normally do
<Leader>Space
. Now that generates this errorOccurs regardless if
org
is configured for treesitter.Steps to reproduce
orgmode config
treesitter config
Expected behavior
Box gets checked
Emacs functionality
No response
Minimal init.lua
-- Enter your minimal_init.lua here
Screenshots and recordings
No response
OS / Distro
Debian 11
Neovim version/commit
0.9.1
Additional context
No response
The text was updated successfully, but these errors were encountered: