Page 1 of 1

List functions assignable to keybindings?

Posted: 10 Oct 2018 11:47
by ecodjtal
First of all a quick hello to the community, i'm a new radium user/subscriber from france, i still have a lot to learn but i love it so far, a big thanks to the devs, or anyone who makes this tool possible.

i would like to assign functions like "Insert existing block", "clone editor block", or "generate color" to keybindings.

but i can't find them in the keybindings.conf file.

is there a reference somewhere to all the functions that i can assign to keybindings? are they already all in the keybindings.conf file ?


thanks and happy tracking :D

Re: List functions assignable to keybindings?

Posted: 11 Oct 2018 12:05
by kjetil
Unfortunately, the reference of functions is very sparse although it contains all functions. You'll find it here: https://github.com/kmatheussen/radium/b ... rotos.conf

The functions you are referring to are however not separate functions. But they are implemented in scheme (see bin/scheme/mouse.scm), so if you know some programming, you look at that code.

To insert the current block into the current seqblock at the current position, you can use 'ra.insertSeqblock'.

To clone the current editor block, you can do this:

Code: Select all

ra.evalScheme "(undo-block (lambda () (<ra> :copy-block) (define new-blocknum (<ra> :append-block)) (<ra> :select-block new-blocknum) (<ra> :paste-block)))"
To generate color for the current editor block, you can do this:

Code: Select all

ra.evalScheme "(<ra> :set-block-color (<ra> :generate-new-block-color))"

Re: List functions assignable to keybindings?

Posted: 11 Oct 2018 19:30
by ecodjtal
awesome !

i'll have a closer look this weekend, but this seems like everything i need to know to setup my keybindings anyway i want,

thanks a lot. \o/