vim-taskpaper icon indicating copy to clipboard operation
vim-taskpaper copied to clipboard

Change icon of TODO item

Open KapilRakh opened this issue 2 years ago • 1 comments

I would like to use a custom icon for a TODO item, replacing - (dash) with ☐. How do I configure this option?

KapilRakh avatar Jun 17 '22 03:06 KapilRakh

I would like to use a custom icon for a TODO item, replacing - (dash) with ☐. How do I configure this option?

It's a font glyph, not an icon, and I only say this because the plugin isn't creating that but recognizing it based on pattern matching. I'm not positive but I think this line in the syntax definition tells the plugin what to assume is a task item.

You could try changing that line from syn match taskpaperListItem /^\t*-\s\+/

to syn match taskpaperListItem /^\t*☐\s\+/

Of course, I expect you'd need to write tasks using rather than defining them with -, which may be a pain.

muraii avatar Jun 17 '22 23:06 muraii