Merge pull request #2524 from urbit/m/chat-cli-shortcode

chat-cli: absolute parity wrt "shortcodes"
This commit is contained in:
Fang 2020-03-17 00:38:27 +01:00 committed by GitHub
commit be53e26d15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,7 +185,9 @@
:: ::
^- state-1 ^- state-1
?- -.u.old ?- -.u.old
%1 u.old(bound (~(gas by *(map target glyph)) ~(tap by bound.u.old))) %1
=? width.u.old =(0 width.u.old) 80
u.old(bound (~(gas by *(map target glyph)) ~(tap by bound.u.old)))
:: ::
?(~ ^) ?(~ ^)
:- %1 :- %1
@ -632,12 +634,19 @@
++ tag |*(a=@tas (cold a (jest a))) ::TODO into stdlib ++ tag |*(a=@tas (cold a (jest a))) ::TODO into stdlib
++ ship ;~(pfix sig fed:ag) ++ ship ;~(pfix sig fed:ag)
++ path ;~(pfix net ;~(plug urs:ab (easy ~))) ::NOTE short only, tmp ++ path ;~(pfix net ;~(plug urs:ab (easy ~))) ::NOTE short only, tmp
:: +mang: un/managed indicator prefix
::
++ mang
;~ pose
(cold %| (jest '~/'))
(cold %& (easy ~))
==
:: +tarl: local target, as /path :: +tarl: local target, as /path
:: ::
++ tarl (stag our-self path) ++ tarl (stag our-self path)
:: +tarx: local target, maybe group :: +tarx: local target, maybe managed
:: ::
++ tarx ;~(plug (fuss 'group ' '') path) ++ tarx ;~(plug mang path)
:: +tarp: sponsor target, as ^/path :: +tarp: sponsor target, as ^/path
:: ::
++ tarp ++ tarp
@ -648,7 +657,8 @@
++ targ ++ targ
;~ pose ;~ pose
;~ plug ;~ plug
(fuss 'group ' '') mang
::
;~ pose ;~ pose
tarl tarl
tarp tarp
@ -1263,7 +1273,7 @@
++ full ++ full
^- tape ^- tape
;: weld ;: weld
?:(in-group.one "g " "") ?:(in-group.one "" "~/")
(scow %p ship.one) (scow %p ship.one)
(spud path.one) (spud path.one)
== ==
@ -1276,7 +1286,7 @@
++ phat ++ phat
^- tape ^- tape
%+ weld %+ weld
?:(in-group.one "g " "") ?:(in-group.one "" "~/")
%+ weld %+ weld
?: =(our-self ship.one) ~ ?: =(our-self ship.one) ~
?: =((sein:title our.bowl now.bowl our-self) ship.one) "^" ?: =((sein:title our.bowl now.bowl our-self) ship.one) "^"