On Fri, 2020-08-28 at 09:40 -0400, aaron mehl wrote:
> Hi all,
> I was wondering if there was an easier way to make a custom set of
> keyboard shortcuts, such as a text file?
yes, your custom keyboard shortcuts are kept in the file
> If so where does an example reside and how would I get Denemo to
> recognize it?
that set will be loaded on start up. You have to be careful editing the
file that you keep the XML syntax < ... > correct.
You may need to know the name of a particular key-combination to set it
as a shortcut. You can do this without looking up the Gtk
documentation: if you press any key that is *not* a shortcut *twice* a
popup will appear telling which key you have pressed, naming it for
you. (You can go on to look at other key-combinations even those that
are already set as shortcuts by pressing them with that popup showing).
There is more though: Denemo has a Scheme command for setting a
shortcut to an action, for example executing this:
(d-AddKeybinding "Set0" "0")
in the Scheme window will set the Denemo command "Set0" to be invoked
by the key whose name is "0"
So you can create a set of lines like this, execute it and get the
keybindings all set in one go. You can then create a command to set
that set of keybindings (shortcuts) which you can invoke via a
For examples of this look at the script for the commands in the
Main Menu ▶ _Input ▶ PC Keyboard menu, e.g.
Command: Note Names Move Cursor
Changes the shortcuts for note names a, b, c, d, e, f, g so that they
move the cursor to the nearest note of that name.
Location: Main Menu ▶ _Input ▶ PC Keyboard
Internal Name: NoteNamesMove
You may wish to use this approach so that you can switch quickly
between using the keyboard for different types of task - e.g. entering
note names and entering durations (or adding ornaments etc.)
Having a different set of shortcuts for the different activities would
avoid the problem that can arise when almost every key invokes some
command and any mis-typing will cause something to happen which may be
difficult to undo. It can also help in being able to re-use easy to get
at keys (such as the space bar) for most used actions when doing some
particular sort of editing task.
> Sent from Mailspring, the best free email app for work