-
Notifications
You must be signed in to change notification settings - Fork 0
Syntax Reference
This documentation describes the Lua configuration for .
Some values are typed. Specify types with built-in unary functions which take the value to be typed. For example, to place a dog in field animal, write dog { name = "fido" }
. Types are indicated in the documentation as a word in parentheses.
Note that types only need to be specified where indicated.
Also, if a type only has one required field, the field can be filled directly, so:
repeat { count = 4 }
may be shortened to:
repeat 4
The root element of the document is:
A tag that indicates editor state, such as "modified" when the document has unsaved changes.
The value of the tag.
Values | Any string |
Required | yes |
A tag that indicates an atom state, such as "compact".
The value of the tag.
Values | Any string |
Required | yes |
Include the type of the atom.
Values |
|
Required | no |
Default value | true |
Include the type of the atom part.
Values |
|
Required | no |
Default value | true |
Separation between the symbol and the converse edge of the screen.
Values | Any integer |
Required | no |
Default value | 0 |
If true, show the symbol by the near converse edge of the screen. Otherwise, the far.
Values |
|
Required | no |
Default value | true |
Show a floating indicator symbol based on the current global and selection tags.
Values | List of: |
Required | yes |
Separation between the symbol and the transverse edge of the screen.
Values | Any integer |
Required | no |
Default value | 0 |
If true, show the symbols at the start of the gutter. Otherwise, the end.
Values |
|
Required | no |
Default value | true |
The symbol will have this type tag when shown.
Values | Any string |
Required | yes |
The symbol to show.
Values | Any of (specify type): |
Required | yes |
Show the symbol when these tags are present.
Values | Set of: Any of (specify type): |
Required | yes |
A mapping of action names to Lua functions. Each function takes a single
contextargument and returns a boolean, true if the action modified the application state.
contextis an object with the following functions:
act.
acttakes a string, the name of another action, and runs it, and returns true if the action modified the application state.
Values | Nested: |
Required | yes |
Text keys that don't match a hotkey are passed to the selected primitive.
Values |
|
Required | no |
Default value | true |
Hotkeys to use when the tags match.
Values | Nested: List of: Any of (specify type): |
Required | yes |
These tags must be present.
Values | Set of: Any of (specify type): |
Required | yes |
These tags must be absent.
Values | Set of: Any of (specify type): |
Required | no |
A list of hotkey rules.
Values | List of: |
Required | no |
Show the current input sequence and possible actions when an input is received in an incomplete sequence.
Values |
|
Required | no |
Default value | true |
-
mouse1
-
mouse2
-
mouse3
-
mouse_scroll_up
-
mouse_scroll_down
-
enter
-
backspace
-
tab
-
cancel
-
clear
-
shift
-
control
-
alt
-
pause
-
caps
-
escape
-
space
-
page_up
-
page_down
-
end
-
home
-
left
-
up
-
right
-
down
-
comma
-
minus
-
period
-
slash
-
0
-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
semicolon
-
equals
-
a
-
b
-
c
-
d
-
e
-
f
-
g
-
h
-
i
-
j
-
k
-
l
-
m
-
n
-
o
-
p
-
q
-
r
-
s
-
t
-
u
-
v
-
w
-
x
-
y
-
z
-
open_bracket
-
back_slash
-
close_bracket
-
numpad0
-
numpad1
-
numpad2
-
numpad3
-
numpad4
-
numpad5
-
numpad6
-
numpad7
-
numpad8
-
numpad9
-
multiply
-
add
-
separator
-
subtract
-
decimal
-
divide
-
delete
-
num_lock
-
scroll_lock
-
f1
-
f2
-
f3
-
f4
-
f5
-
f6
-
f7
-
f8
-
f9
-
f10
-
f11
-
f12
-
f13
-
f14
-
f15
-
f16
-
f17
-
f18
-
f19
-
f20
-
f21
-
f22
-
f23
-
f24
-
printscreen
-
insert
-
help
-
meta
-
back_quote
-
quote
-
kp_up
-
kp_down
-
kp_left
-
kp_right
-
dead_grave
-
dead_acute
-
dead_circumflex
-
dead_tilde
-
dead_macron
-
dead_breve
-
dead_abovedot
-
dead_diaeresis
-
dead_abovering
-
dead_doubleacute
-
dead_caron
-
dead_cedilla
-
dead_ogonek
-
dead_iota
-
dead_voiced_sound
-
dead_semivoiced_sound
-
ampersand
-
asterisk
-
quotedbl
-
less
-
greater
-
braceleft
-
braceright
-
at
-
colon
-
circumflex
-
dollar
-
euro_sign
-
exclamation_mark
-
inverted_exclamation_mark
-
left_parenthesis
-
number_sign
-
plus
-
right_parenthesis
-
underscore
-
windows
-
context_menu
-
final
-
convert
-
nonconvert
-
accept
-
modechange
-
kana
-
kanji
-
alphanumeric
-
katakana
-
hiragana
-
full_width
-
half_width
-
roman_characters
-
all_candidates
-
previous_candidate
-
code_input
-
japanese_katakana
-
japanese_hiragana
-
japanese_roman
-
kana_lock
-
input_method_on_off
-
cut
-
copy
-
paste
-
undo
-
again
-
find
-
props
-
stop
-
compose
-
alt_graph
-
begin
-
undefined
-
softkey_0
-
softkey_1
-
softkey_2
-
softkey_3
-
softkey_4
-
softkey_5
-
softkey_6
-
softkey_7
-
softkey_8
-
softkey_9
-
game_a
-
game_b
-
game_c
-
game_d
-
star
-
pound
-
power
-
info
-
colored_key_0
-
colored_key_1
-
colored_key_2
-
colored_key_3
-
eject_toggle
-
play
-
record
-
fast_fwd
-
rewind
-
track_prev
-
track_next
-
channel_up
-
channel_down
-
volume_up
-
volume_down
-
mute
-
command
-
shortcut
The input that is being pressed or released.
Values | |
Required | yes |
Inputs that must be active for this rule to match.
Values | Set of: |
Required | no |
True if the input is pressed, false if the input is released.
Values |
|
Required | no |
Default value | true |
Values | Nested: Any of (specify type): |
Required | yes |
Values |
|
Required | no |
Default value | false |
If this type is a suggestion and there are less than this many choices, auto-choose this type.
Values | Any integer |
Required | no |
Default value | 1 |
This describes the format of the data on disk. Modifiable back parts must have a corresponding middle part.
Values | List of: Any of (specify type): |
Required | yes |
When calculating depth for windowing, this is the value the atom increases the depth score by.
Values | Any integer |
Required | no |
Default value | 0 |
This describes how the atom is represented in the editor. Modifiable must have a corresponding middle part.
Values | List of: Any of (specify type): |
Required | yes |
Values | Any string |
Required | yes |
Values | Nested: Any of (specify type): |
Required | yes |
Values | Any string |
Required | yes |
When filling a suffix or prefix gap, the resultant atom will be raised up the tree
Values | Any integer |
Required | no |
Default value | 2147483647 |
Values | Set of: Any string |
Required | yes |
Values | List of: |
Required | yes |
Values | List of: |
Required | yes |
Values | Set of: Any string |
Required | yes |
Padding around source content (not banner, details, indicators, etc).
Pad the converse end by this many pixels.
Values | Any integer |
Required | no |
Default value | 0 |
Pad the converse start by this many pixels.
Values | Any integer |
Required | no |
Default value | 0 |
Pad the transverse end by this many pixels.
Values | Any integer |
Required | no |
Default value | 0 |
Pad the transverse start by this many pixels.
Values | Any integer |
Required | no |
Default value | 0 |
Values | List of: |
Required | no |
Values | List of: |
Required | no |
Values | List of: |
Required | no |
Values | Set of: Any string |
Required | yes |
Values | Nested: Any of (specify type): |
Required | yes |
Values | List of: Any of (specify type): |
Required | yes |
Values | List of: Any of (specify type): |
Required | yes |
Values | Nested: Any of (specify type): |
Required | yes |
Values | Set of: Any string |
Required | yes |
Values | List of: |
Required | no |
Values | List of: |
Required | no |
Values | List of: |
Required | no |
Values | Set of: Any string |
Required | yes |
Values |
|
Required | no |
Default value | false |
Values |
|
Required | no |
Default value | false |
The background color of the document.
Values | Any of (specify type): |
Required | no |
Pad the banner pane.
Values | |
Required | no |
The direction of text flow in a line. For English, this will be RIGHT. Note that values other than RIGHT may not work, since JavaFX has limited text direction support.
Values | |
Required | no |
Default value | right |
Pad the detail pane.
Values | |
Required | no |
The max transverse span for details panes, excluding padding.
Values | Any integer |
Required | no |
Default value | 300 |
Limit the window to this depth span.
Values | Any integer |
Required | no |
Default value | 2147483647 |
The gap type is used when editing the document, for new data whose type is not yet known.
Values | |
Required | no |
Style of the gap choice selection box.
Values | |
Required | no |
Placeholder for text in gap choice previews.
Values | Any of (specify type): |
Required | no |
Pseudo-types representing groups of types. Group ids can be used anywhere a type id is required.
Values | Nested: List of: Any string |
Required | no |
Generate bricks in this batch size when jumping, scrolling, and editing.
Values | Any integer |
Required | no |
Default value | 10 |
A list of modules to activate. Listed are modules bundled with this distribution, but addional modules may be installed and used.
Values | List of: Any of (specify type): |
Required | no |
Pad the document.
Values | |
Required | no |
Character to substitute for non-printing characters in primitives.
Values | Any string |
Required | no |
Default value | ▢ |
The prefix gap type is similar to the gap type, but is used when enclosing an existing atom in a new atom, where the new atom visually precedes the existing atom.
Values | |
Required | no |
Values |
|
Required | no |
Default value | false |
Retry course expansion when converse deficit has increased by this factor.
Values | Any decimal value |
Required | no |
Default value | 1.25 |
The type of the root array in a document. This is not used when pasting code; in that case the context is used to determine the paste's potential root type.
Values | |
Required | yes |
Values | Any decimal value |
Required | no |
Default value | 0.8 |
Values | Any decimal value |
Required | no |
Default value | 0.1 |
Values |
|
Required | no |
Default value | false |
Values | List of: |
Required | no |
The suffix gap type is similar to the gap type, but is used when enclosing an existing atom in a new atom, where the new atom visually succeeds the existing atom.
Values | |
Required | no |
The direction of successive lines. For English, this will be DOWN.
Values | |
Required | no |
Default value | down |
Values | |
Required | no |
Default value | luxem |
The definitions of all distinct element types in a document.
A type with the id '__gap' and a single middle primitive element named 'value' must exist. This will be used as a placeholder when entering text before it is distinguishable as any other defined element.
Values | List of: |
Required | yes |
-
luxem
Back parts and source files are in luxem format. -
json
Back parts and source files are in JSON format.
Values |
|
Required | no |
Default value | false |
Values | |
Required | yes |
Values | Any string |
Required | yes |
How to visualize the ellipsis.
Values | Any of (specify type): |
Required | no |
Values | Any string |
Required | yes |
Values | List of: |
Required | no |
Values | List of: |
Required | no |
Values | List of: |
Required | no |
Values |
|
Required | no |
Default value | false |
Values |
|
Required | no |
Default value | false |
Values | Set of: Any string |
Required | yes |
How to visualize the ellipsis.
Values | Any of (specify type): |
Required | no |
Values | Nested: Any of (specify type): |
Required | no |
Values | Any string |
Required | yes |
Values | Set of: Any string |
Required | yes |
Values | Nested: Any of (specify type): |
Required | no |
Values | Any string |
Required | yes |
Values | Set of: Any string |
Required | yes |
Values | Set of: Any string |
Required | yes |
How to visualize the ellipsis.
Values | Any of (specify type): |
Required | no |
Values | List of: |
Required | no |
Values | List of: |
Required | no |
Values | List of: |
Required | no |
Values |
|
Required | no |
Default value | false |
Values |
|
Required | no |
Default value | false |
Values | Set of: Any string |
Required | yes |
Values | Any of (specify type): |
Required | no |
Use this string as a key for matching the atom when filling a gap. A text symbol by default uses the shown text.
Values | Any string |
Required | no |
Default value |
|
Values | Set of: Any string |
Required | yes |
Values | Any of (specify type): |
Required | yes |
Values |
|
Required | no |
Values | Any of (specify type): |
Required | no |
Values |
|
Required | no |
Values | Any of (specify type): |
Required | no |
Values | Any decimal value |
Required | no |
Values | Any integer |
Required | no |
Values |
|
Required | no |
Values |
|
Required | no |
Values | Any integer |
Required | no |
Values |
|
Required | no |
Values | Any decimal value |
Required | yes |
Values | Any decimal value |
Required | yes |
Values | Any decimal value |
Required | yes |
Values | Any decimal value |
Required | yes |
Values | Any decimal value |
Required | yes |
Values | Any decimal value |
Required | yes |
Values | Any decimal value |
Required | yes |
Values |
|
Required | no |
Values | Any of (specify type): |
Required | no |
Values |
|
Required | no |
Values | Any of (specify type): |
Required | no |
Values | Any decimal value |
Required | no |
Values | Any integer |
Required | no |
Values |
|
Required | no |
Values |
|
Required | no |
Values |
|
Required | no |
Values |
|
Required | no |
Values | Any integer |
Required | no |
Values |
|
Required | no |
Values | Any string |
Required | no |
Values | |
Required | no |
Values | Any of (specify type): |
Required | no |
Values | Any integer |
Required | no |
Values | Any string |
Required | no |
Values | Any integer |
Required | no |
Values | Any string |
Required | no |
Values | |
Required | no |
Values | Any integer |
Required | no |
Values | Any integer |
Required | no |
Values | Any integer |
Required | no |
Values | Any integer |
Required | no |
Values | Any integer |
Required | no |
Values | Any integer |
Required | no |
Values |
|
Required | no |
Values | Any integer |
Required | no |
These tags must be present.
Values | Set of: Any of (specify type): |
Required | yes |
A style will apply to a brick if both the brick and the global tags contain none of these.
Values | Set of: Any of (specify type): |
Required | no |