Skip to content

feature: avoid inline text for checkboxes to maintain cursor position #378

@sand4rt

Description

@sand4rt

Neovim version (nvim -v)

0.10.4

Neovim distribution

N/A

Operating system

Any

Terminal emulator / GUI

Any

Describe the bug

The cursor does not keep the correct position when moving down a list of checkboxes:

- [ ] boop
- [ ] boop
- [ ] boop
- [ ] boop
- [ ] boop
  1. place the cursor inside [ ]
  2. move down a line with j

the cursor is at [ instead of inside [ ]

Expected behavior

To keep the correct cursor position when moving down the list of checkboxes

Healthcheck output

N/A

Plugin configuration

{
        "MeanderingProgrammer/render-markdown.nvim",
        opts = {
            checkbox = {
                unchecked = {
                    icon = "󰄱",
                },
                checked = {
                    icon = "󰱒",
                },
            },
        },
        ft = { "markdown", "norg", "rmd", "org", "codecompanion" },
        config = function(_, opts)
            require("render-markdown").setup(opts)
        end,
    },

Plugin error log

N/A

Confirmations

  • I have updated this plugin to the latest version using my plugin manager
  • I have provided the text contained in all screenshots as raw text in this issue. This means if there is a screenshot below it is the copy pasted contents of the file in the screenshot. I understand that my issue will be closed if I have not.

Additional information

No response

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