aaronbieber/quicktask — Issue #10: Support external snips.
Author: aaronbieber
Created: 2012-02-02 19:59:23+00:00
State: open

There is extremely limited and "secret" support for what I call "snips," which are reference tags that attach a task to a larger piece of text. This could be used to take notes about a project, for example.

The way this works right now is clumsy for a few reasons:

1. Snips are referenced by UUIDs generated with the system "uuidgen" command, which contradicts my goal of 100% portable and platform-independent VimL. It would be a better idea to use a combination of characters from the current task's text and a timestamp that Vim can natively generate.
2. Physically inserting these freeform snips into the list has a couple of intrinsic problems:
1. It clutters the view and folding cannot operate based on the indent of the list AND a pattern, so hiding them in a fold is right out.
2. The carefully constructed syntax highlighting falls flat for content of snips.

Other Vim note-taking plugins handle this better by allowing each note file to have its own filetype and therefore its own syntax highlighting and editing rules. This seems a much better solution.

For the purposes of Quicktask there need not be any fancy-shmancy search, tagging, or other features. A snip is simply an auto-generated tag on a task that references an external file and a few functions for loading and unloading those.

This will be the biggest addition in Milestone 2.