Closed mononoken closed 8 months ago
I am now thinking that doing this via markdown is not the way to go. It would be much more difficult to implement and not sure how likely a user would want an incrementable in the middle of their note.
More likely, they will want an incrementable at the top or bottom of their note. They may also want multiple incrementables in the same note. For example:
# Bag of holding
-/+ 10 Gold
-/+ 5 Silver
-/+ 1 Wand of magic missiles
-/+ 2 Cows
The above example also shows that user may just want incrementables in a note, without a body.
Label should null: false Validations for label name. Do we want long label names allowed?
f8a64ae2addf6d958e5674898ca43096e8fe62eb implements
Allow users to add a value + button combo that with clicks increments the number. This would allow users to have a nice interface for storing and incrementing stats, quantities, etc.
For example (Note: Not a final syntax system, just initial thoughts.):
Would be rendered as:
Clicking the number would update the number.
Just brainstorming this idea, I think what would have to happen is the function in the backend would have to read whatever number is provided given the syntax and update that number in the template every time the button would be clicked.
Some logic would also need to be considered. For example, would negative numbers ever be desired or should they be avoided?