on master help sign in
Merge pull request #56 from joemfb/talk-examples

adds line activation to :talk docs

commit76bad7b3301596772aea73e552d10a3c318b03d6 authorGalen Wolfe-Pauly <galen@office-for.com> dateThu 23 Jun 2016, 22:38 (10 years ago) parent6822d322f6cc8b
1 file changed+45−1
docs/using/messaging.md+45−1
docs/using/messaging.md+45−1
@@ -27,7 +27,9 @@ For the most part we use `:talk` as a single-instance of Slack: one main channel
2727
2828Let's join `/urbit-meta`:
2929
30− ~your-urbit: ;join ~doznec/urbit-meta
30+Use `ctrl-x` to switch from `:dojo` to `:talk`, then:
31+
32+ ~your-urbit:talk> ;join ~doznec/urbit-meta
3133
3234You'll see:
3335
@@ -95,14 +97,56 @@ insert a Unicode bullet-point character in an appropriate space
9597in your post, to show you the prospective linebreak. Your essay
9698will be posted in multiple lines.
9799
100+ ~your-urbit:talk> this is a long message, so it will by truncated right at this•spot
101+
102+will print as
103+
104+ ~your-urbit; this is a long message, so it will by truncated right at this
105+ ~your-urbit; spot
106+
98107#### URLs
99108
100109A URL is any valid URL.
101110
111+ ~your-urbit:talk> http://example.com
112+
102113### Commands
103114
104115A command is a hoon expression, prefaced by '#'.
105116
117+ ~your-urbit:talk> #(add 2 2)
118+
119+### Activating Lines
120+
121+A line number identifying the *subsequent* line is displayed every 5 lines.
122+
123+ ---------[0]
124+ ~your-urbit; this is my message
125+ ~your-urbit@ this is an @ message
126+ ~your-urbit; this is a long message, so it will by truncated right at this
127+ ~your-urbit; spot
128+ ~your-urbit/ http://example.com/
129+ ---------[5]
130+ ~your-urbit# (add 2 2) 4
131+
132+You can use a line number to *activate* a line:
133+
134+ ~your-urbit:talk> ;0
135+
136+which prints the number, line identifier, timestamp, sender, audience,
137+and contents:
138+
139+ ? 0
140+ 0v3.hl51p.jhege.amhec.vb37r.3rejr at ~2016.6.24..04.48.21..a235
141+ ~your-urbit to ~another-urbit
142+ this is my message
143+
144+Activating a URL will print the full URL (it could have been truncated),
145+and activating a command will evaluate it.
146+
147+You can activate the most recent line with `;`, the second-most recent with
148+`;;`, and so on.
149+
106150### Creating and managing stations
107151
108152`;create journal %serious-journal 'description'` - Creates a `%journal`, a privately writable publicly readable station.