Skip to content

Commit e441475

Browse files
committed
Work on key value feature issue
1 parent 978ed15 commit e441475

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

straw/open/archived/dunno.txt

Whitespace-only changes.

straw/open/support_key_value_feature.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,34 @@
22

33
In the issue you can define key value things to later query on them.
44

5+
We'll use the `?` at the start of a key value. This is inspired by url query params.
6+
7+
`?author=@bas080`
8+
9+
Here we can see that it is allowed to use other special tokens as the value.
10+
11+
The underlying markup created is.
12+
13+
```html
14+
<span class="straw-keyvalue">
15+
<a ?author=</a><a>@bas080</a>
16+
</span>
17+
```
18+
19+
The user can either interact with the key value token by clicking the first anchor;
20+
or by clicking on the mention token.
21+
22+
Note
23+
24+
- The anchors are not nested in eachother.
25+
- The class on the span is how the code interops with browser code.
26+
27+
These changes require both #browser and #cli changes. For the cli changes
28+
we could ?assign=@rage.
29+
30+
31+
## Older suggestsions
32+
533
**Candidates**
634

735
- key:value
@@ -13,3 +41,4 @@ In the issue you can define key value things to later query on them.
1341
- priority:1
1442

1543
\#feature
44+
?assign=@bas080

0 commit comments

Comments
 (0)