From 0ee6175869be199e29b4151bf4bd011b81661b0d Mon Sep 17 00:00:00 2001 From: Raymond Pasco Date: Fri, 6 Nov 2015 01:10:12 -0500 Subject: [PATCH] Implement and document ;set and ;unset interface --- ape/talk.hoon | 13 +++++++++++-- pub/docs/user/talk.mdy | 15 ++++++++++++++- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/ape/talk.hoon b/ape/talk.hoon index c5e8171f0..09b990931 100644 --- a/ape/talk.hoon +++ b/ape/talk.hoon @@ -1045,12 +1045,21 @@ ++ wo-set :: %set |= seg=span ^+ ..sh-work - ..sh-work + ?~ seg + %+ sh-fact %mor + %+ turn (~(tap in settings.she)) + |= s=span + [%txt (trip s)] + %= ..sh-work + settings.she (~(put in settings.she) seg) + == :: ++ unset :: %unset |= neg=span ^+ ..sh-work - ..sh-work + %= ..sh-work + settings.she (~(del in settings.she) neg) + == :: ++ target :: %target |= [lix=?((set partner) char) woe=(unit ^work)] diff --git a/pub/docs/user/talk.mdy b/pub/docs/user/talk.mdy index d0f1d7d2d..9424b5342 100644 --- a/pub/docs/user/talk.mdy +++ b/pub/docs/user/talk.mdy @@ -238,7 +238,7 @@ most recent; etc. ### Nicknames -Not yet implemented +Partially implemented Sometimes you know your Urbit friends by other names, on or offline. Use the `;nick` command to assign or look up @@ -255,6 +255,10 @@ someone you know by a nickname. Just type `~plato`, and `:talk` will replace it magically with `~fintud-macrep` (or beep if no `~plato` is bound). +If you would prefer to see nicknames instead of urbit names when +someone speaks, use `;set noob`. `;unset noob` disables this +setting. + ### Presence You'll see presence notifications when people enter or leave @@ -302,3 +306,12 @@ To ban from `%bizarre-board`: To appoint a coauthor of `%serious-journal`: ;author %serious-journal ~lagret-marpub + +### Settings + +To set a frontend option in your `talk` session, use `;set +[option]`, or `;unset [option]` to unset it. To see all currently +set options, just type `;set`. The options available are: + +- `noob` - Display user-defined nicknames instead of ship names + if available.