JeffreyBenjaminBrown / digraphs-with-text

BSD 3-Clause "New" or "Revised" License
66 stars 5 forks source link

Visually attach metadata to expressions #5

Open JeffreyBenjaminBrown opened 7 years ago

JeffreyBenjaminBrown commented 7 years ago

Within-expression decorators

The user might ask to prepend "NEW!" to any task that was created within the last week, and "URGENT!" to anything urgent. The result would be something like:

get a haircut
NEW! learn the charleston
URGENT! fix brakes
mow the lawn

Staircase columns

An example

Imagine the user wants to see, for every expression E on screen, a boolean indicating whether E is a task, and an integer indicating how many people enjoy E. This data could be displayed as:

/it #(is a) task
    /count #enjoy /it
---------------------
y       get a haircut
    4   turtles

In general

To attach staircase columns k1 through kn to expressions e1 through en, the data would present as:

k1
  k2
    k3
      ...
        kn
----------
          e1
      e2
      ...
      en

In a boolean column, "false" should present as the empty string, and in an integer column, 0 should presents as the empty string.