jessegrosjean / foldingtext-for-atom

Outline editor with productivity features (No longer in development)
Other
40 stars 10 forks source link

key-value pairs #12

Open derekvan opened 9 years ago

derekvan commented 9 years ago

One feature from the previous version of FoldingText (and Taskpaper) that I'd love to see in this project soon is the key-value pair tags. In other words: @due(2015-05-14)

Hoping these will continue to work with the new tagging system and the search mechanism.

jessegrosjean commented 9 years ago

@derekvan Hi and thanks for the suggestion. I'm thinking about this.

First key-value pairs is of course already deep in FoldingText's model layer, but I haven't yet figured out how I'll present them in the view layer.

I have a few goals:

  1. In the underlying file format I want all data to be stored in HTML attributes, extractable without the need for any additional parsing.
  2. In the outline view I don't want to tie an attributes value to it's visual representation. For example I want to allow for long and accurate date/time stamps. But I want the dates to display as short localized dates.

So far I've thought the solution to this is to build a specialized UI for each attribute that also needed a value. So for example add a new command to "set due date" and it will popup a calendar for picking a due date value.

And for cases where the attribute didn't need a value you could store it as a tag, using the tag editing UI.

But I'm beginning to change my mind. I still like building in a specialized UI for some cases (such as calendar). But for general attribute editing I think I'll add an "edit attributes" command the presents the attributes in a TaskPaper style tag syntax. Internally they will be represented by html attributes, but the UI for editing those attributes will be syntax highlighted.

If that last paragraph doesn't make sense to you don't worry about it, mostly a note for myself for when I start implementing this.