List functions assignable to keybindings?

Post Reply
ecodjtal
Posts: 16
Joined: 23 Jul 2018 09:24

List functions assignable to keybindings?

Post 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
kjetil
Site Admin
Posts: 582
Joined: 20 Jul 2017 20:45

Re: List functions assignable to keybindings?

Post 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))"
ecodjtal
Posts: 16
Joined: 23 Jul 2018 09:24

Re: List functions assignable to keybindings?

Post 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/
Post Reply