Skip to content

[idea] Interactive checkbox/TODO toggling in orgview.lua (currently render-only) #315

Description

@stanfish06

What

lua/config/orgview.lua renders - [ ] / - [x] checkbox syntax as styled todo/done icons via extmarks (see icons.todo, icons.done, and the bullet branch in render()), but this is purely cosmetic — there is no keymap or command anywhere in the file (or elsewhere in the config) that actually flips a checkbox's state. Real org-mode's <C-c><C-c> cycling has no equivalent here.

Where

  • lua/config/orgview.luarender() / icons.todo / icons.done, matches the %[[ xX]%] pattern for display only, no write-back path

Why it matters

The orgview filetype currently looks interactive (styled checkboxes) but isn't — toggling state still requires manually editing the raw [ ]/[x] text underneath the extmark, which defeats the purpose of the styled rendering. Nothing in the existing open [idea] issues mentions org-mode, checkboxes, or task-state toggling.

Recommended action

Add a command/keymap (e.g. <leader>ox or similar, scoped to orgview filetype) that locates the [ ]/[X] span under the cursor or on the current line — reusing the same %[[ xX]%] pattern the renderer already matches — and toggles the literal underlying text between the two states, letting the existing render() extmark logic pick up the change on next redraw.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions