mirror of
https://github.com/urbit/shrub.git
synced 2025-01-02 01:25:55 +03:00
Add ;sources command for displaying the active sources of circles.
This commit is contained in:
parent
19eb437f9c
commit
36b91c6425
@ -89,6 +89,7 @@
|
||||
{$number $@(@ud {@u @ud})} ::< relative/absolute
|
||||
{$who audience} ::< presence
|
||||
{$what (unit $@(char audience))} ::< show bound glyph
|
||||
{$sources circle} ::< show active sources
|
||||
:: ui settings ::
|
||||
{$bind char (unit audience)} ::< bind glyph
|
||||
{$unbind char (unit audience)} ::< unbind glyph
|
||||
@ -783,6 +784,8 @@
|
||||
(easy ~)
|
||||
==
|
||||
==
|
||||
::
|
||||
;~((glue ace) (perk %sources ~) circ)
|
||||
::
|
||||
;~((glue ace) (perk %show ~) circ)
|
||||
::
|
||||
@ -954,6 +957,7 @@
|
||||
$number (number +.job)
|
||||
$who (who +.job)
|
||||
$what (what +.job)
|
||||
$sources (list-sources +.job)
|
||||
:: ui settings
|
||||
$bind (bind +.job)
|
||||
$unbind (unbind +.job)
|
||||
@ -1254,6 +1258,24 @@
|
||||
(activate (snag (sub count +(msg)) grams))
|
||||
(sh-lame "…{(reap p.num '0')}{(scow %ud q.num)}: no such telegram")
|
||||
::
|
||||
++ list-sources ::< %sources
|
||||
::> display the active sources for our circle.
|
||||
::
|
||||
|= cir/circle
|
||||
^+ ..sh-work
|
||||
%+ sh-fact %mor
|
||||
%+ turn
|
||||
:: make sure to exclude {nom} itself.
|
||||
=- ~(tap in (~(del in src:-) [cir ~]))
|
||||
(fall (~(get by mirrors) cir) *config)
|
||||
|= s/^source
|
||||
^- sole-effect
|
||||
:- %txt
|
||||
%+ weld ~(cr-phat cr cir.s)
|
||||
%+ roll (range-to-path ran.s)
|
||||
|= {a/@ta b/tape}
|
||||
:(weld b "/" (trip a))
|
||||
::
|
||||
::> ||
|
||||
::> || %ui-settings
|
||||
::> ||
|
||||
|
Loading…
Reference in New Issue
Block a user