mirror of
https://github.com/urbit/shrub.git
synced 2025-01-01 17:16:47 +03:00
mar/sole: add %tab conversion
Our mark definitions for sole actions and effects pre-date our tab completion work. This commit adds tab completion actions and effects to the definition, so they can be sent and received as JSON.
This commit is contained in:
parent
2a1e0971f2
commit
c39d887415
@ -15,7 +15,7 @@
|
||||
|= jon/^json ^- sole-action
|
||||
%- need %. jon
|
||||
=> [dejs-soft:format ..sole-action]
|
||||
|^ (fo %ret (of det+change ~))
|
||||
|^ (fo %ret (of det+change tab+ni ~))
|
||||
++ fo
|
||||
|* {a/term b/fist}
|
||||
|=(c/json ?.(=([%s a] c) (b c) (some [a ~])))
|
||||
|
@ -63,6 +63,10 @@
|
||||
$pro
|
||||
%+ frond %pro
|
||||
(pairs vis+b+vis.sef tag+s+tag.sef cad+(tape (purge cad.sef)) ~)
|
||||
::
|
||||
$tab
|
||||
%+ frond %tab
|
||||
a+(turn p.sef |=([=cord tan=^tank] (pairs match+s+cord info+(tape ~(ram re tan)) ~)))
|
||||
::
|
||||
?($bel $clr $nex)
|
||||
(frond %act %s -.sef)
|
||||
|
Loading…
Reference in New Issue
Block a user