denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: custom keymap


From: aaron mehl
Subject: Re: custom keymap
Date: Sun, 30 Aug 2020 11:55:27 -0400

Wow thanks,
I all along wanted to have vim like keyboard shortcuts, I will have to work through this slowly but being able to touch type notation as I could with the speedy keymap was still way to limited, and since I  am not just type setting music but composing as well this should speed things up.
Thanks
Aaron

Sent from Mailspring, the best free email app for work
On Aug 30 2020, at 10:27 am, Richard Shann <richard@rshann.plus.com> wrote:
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

.denemo-2.4.3/actions/Default.shortcuts

> 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
keypress.
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.

HTH

Richard





> Thanks
> Aaron
>
> Sent from Mailspring, the best free email app for work

reply via email to

[Prev in Thread] Current Thread [Next in Thread]