Skip to content
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

Multi-line support? #10

Open
redstreet opened this issue Mar 26, 2011 · 2 comments
Open

Multi-line support? #10

redstreet opened this issue Mar 26, 2011 · 2 comments

Comments

@redstreet
Copy link

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.

@davidoc
Copy link
Owner

davidoc commented Mar 28, 2011

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

@redstreet
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants