On Fri, 2020-09-18 at 05:49 -0400, aaron mehl wrote:
> Hi Richard thanks for the heads up, you were right I needed to post
> the script in order to get it working.
> The conventions you mentioned of <> () "" are they discussed in the
> docs since I am totally a newbie on this it would be nice to have had
> this written out.
well the convention of writing <your name> meaning that you write your
name in the place where <your name> appears is just a common parlance
The () are the indicators for a list in the Scheme programming language
- the most fundamental bit of syntax. The "" are also Scheme syntax
denoting a string.
But the convention that the Scheme procedure corresponding to a Denemo
command of name <thecommandname> is d-<thecommandname> is mentioned in
the docs in section 29, Writing Scheme Scripts.
However, most people pick up this stuff by seeing examples and by
testing out a small sample. So before creating all 18 shortcuts it
would make sense to create just one of the note-insertion commands,
check that it works when executed from the menu, then create just one
of the (d-AddKeybinding ...) procedures and test it out by executing it
in the Scheme window and seeing if the keypress does indeed execute the
desired command and then turning that into the mode-switch command.
When that is working you would add more of the same using the right-
click->"Save Script from Scheme Window" to override the first version
of your mode change command with the new keybindings.