mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-13 20:04:35 +03:00
eb40e2feed
Make the marks produce json arrays where the (list @c) type is used. On the frontend, transform the semantic (character-based) cursor position into a byte-based one, in order to ensure the cursor gets rendered at the correct location, even if the presence of multi-byte characters like emoji.
30 lines
439 B
Plaintext
30 lines
439 B
Plaintext
:: belt: runtime belt structure
|
|
::
|
|
|_ =belt:dill
|
|
++ grad %noun
|
|
:: +grab: convert from
|
|
::
|
|
++ grab
|
|
|%
|
|
++ noun belt:dill
|
|
++ json
|
|
^- $-(^json belt:dill)
|
|
=, dejs:format
|
|
%- of
|
|
:~ aro+(su (perk %d %l %r %u ~))
|
|
bac+ul
|
|
ctl+(cu taft so)
|
|
del+ul
|
|
met+(cu taft so)
|
|
ret+ul
|
|
txt+(ar (cu taft so))
|
|
==
|
|
--
|
|
:: +grow: convert to
|
|
::
|
|
++ grow
|
|
|%
|
|
++ noun belt
|
|
--
|
|
--
|