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

Multi-line support?

Open redstreet opened this issue 14 years ago • 2 comments

I find taskpaper very useful. The only feature I sorely miss is the ability to support multi-line task items. Occasionally, my items run on to two or more lines. In these cases, the second line (either @done or @cancelled or just a regular item) is not recognized.

If an expert can do this easily, that'd be great. If not, if you can give me pointers, that would be awesome too. I just spent the past few hours trying to figure out how to get this to work in syntax highlighting, but failed, because I'm unfamiliar with this part of vim.

redstreet avatar Mar 26 '11 09:03 redstreet

Does TaskPaper deal with multi-line task items? I thought the format required one line per item.

Would Vim's linewrapping help? e.g. in your .vimrc

set wrap set linebreak

davidoc avatar Mar 28 '11 09:03 davidoc

Vim's linewrapping is of limited use. First, my vim window size is not constant, and varies. If I happen to have a wide vim window, 'set wrap/linebreak' will use up most of the entire width, which is not good. Second, vim's wrapping will put the second and subsequent lines on the absolute first column, as opposed to the first indented column. Third, I can't easily 'less' the file or cat it if it has long lines.

I assume you're talking about a Mac application called TaskPaper. I have no idea what it demands or does. But I do find your simple taskpaper plugin very useful, and use it all the time. I do use multi-line items, but they don't work. Regardless of whether TaskPaper can handle multi-line items, this vim-plugin could support it, no?

For now, I use a workaround for multi-line "completed" items, using:

syn region multLineDoneItem start="{" end="}" fold HiLink multLineDoneItem NonText

But this requires me to wrap up these items in {}, and they don't work for non-completed items. If you happen to know how to get this to work with multi-line items, and could share, I would appreciate it very much.

Thanks for writing this plugin and sharing it in the first place---as I said, I find it very useful!

redstreet avatar Mar 28 '11 10:03 redstreet