denemo-devel
[Top][All Lists]
Advanced

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

Re: Keyboard shortcut to toggle between Print View and Denemo window


From: Lib Lists
Subject: Re: Keyboard shortcut to toggle between Print View and Denemo window
Date: Mon, 8 Nov 2021 11:37:00 +0200

On Sun, 7 Nov 2021 at 18:02, Richard Shann <richard@rshann.plus.com> wrote:
>
> On Sun, 2021-11-07 at 13:23 +0200, Lib Lists wrote:
> > On Sat, 6 Nov 2021 at 19:42, Richard Shann <richard@rshann.plus.com>
> > wrote:
> > >
> > > On Sat, 2021-11-06 at 16:08 +0200, Lib Lists wrote:
> > > > On Sat, 6 Nov 2021 at 15:56, Richard Shann <
> > > > richard@rshann.plus.com>
> > > > wrote:
> > > > >
> > > > > On Sat, 2021-11-06 at 15:15 +0200, Lib Lists wrote:
> > > > > > A last question, is there an existing way to open the Command
> > > > > > Center
> > > > > > via a shortcut? I couldn't find a suitable command in the
> > > > > > Command
> > > > > > Center.
> > > > > At present none of the check boxes in the View menu can be
> > > > > activated by
> > > > > a command :(
> > > > > If I can just get my printer working under Mate on Debian I'll
> > > > > hopefully find some time to look into it...
> > >
> > > well I won my battle with the printer. I've created a command in
> > > Scheme
> > >
> > > d-SetViewVisible
> > >
> > > which takes one or two arguments: the name of a view window and,
> > > optionally a boolean so e.g.
> > >
> > > (d-SetViewVisible "print")
> > > makes the Print View visible while
> > >
> > > (d-SetViewVisible "print" #f)
> > >
> > > makes the Print View hidden.
> > >
> > > Others are "lilypond" "command" "playback" "midi-in" "scheme".
> > >
> > > To get these available via a keyboard shortcut requires creating
> > > new
> > > commands using the above syntax for each window so that the
> > > shortcut
> > > can be put onto the commands, I'd suggest putting them in the View
> > > menu
> > > but hiding them via the Command Center.
> >
> > Thank you, I just made a new command to show the Print View and it
> > works!
> > One problem, when I select 'Open Command Center on this Command', the
> > Command Center opens on 'Suggest Sharp' and I'm not able to find my
> > new commands in the Command Center.
>
> That sounds strange but rather than dig into that I think that the
> further work I've done on this topic may give you what you need.
> I've just committed a set of "Toggles" into the View menu which
> hide/show various windows/panes. I've given them all default two key
> short cuts starting Esc, so Esc,p for instance shows/hides the Print
> View. The reason for using Esc is that once in the Print View pressing
> Esc again takes you back to the display(*).

Awesome, thank you so much! That greatly improves my workflow.
I wrote some comments about the current toogle behaviour with different windows:
- Print View: works except for the need of performing any action in
the window first before being able to close it,
- Command Center: works (esc,c opens CC, esc closes the window),
- Lilypond view: esc,l works but esc doesn't close the window, one
needs first to click on the Denemo window
- Scheme window: same as Lilypond view

An additional thought. I initially thought about a toggle option as I
noticed that I cannot close Denemo's subwindows (Print View, Scheme,
Lilypond, etc.) with 'ctrl,w', as quite common in MacOs (command,w)
and as far as I remember on Windows. If ctrl,w would work on all
Denemo subwindows this could allow a shortcut to open/focus a window,
the same shortcut to switch the focus back to Denemo window (while
keeping the other window open) and ctrl,w would close the currently
open window (or close score in Denemo window). I suspect though that
this is not possible.
Hopefully the explanation is clear enough.

>
> I've bumped the version to 2.5.6 for thses new commands. Since you have
> your own custom commands now Denemo will attempt to merge them on
> startup (if you wish). I *think* you get both new and old commands (and
> need to hide any you don't want), but if there is a problem here is an
> overview of how the command system works:
>         Denemo ships with a set of commands arranged as a hierarchy of
> files mirroring the menu system. They are found at
> ../share/denemo/actions/menus/e.g.(MainMenu/ViewMenu/Toggles)
>
> Two files .../share/denemo/actions/Default.commands and
> ../share/denemo/actions/Default.shortcuts hold a list of all the
> commands and their shortcuts.
>
> When you create a new command it goes into
>
> ~/.denemo-2.5.6/actions/menus/...
>
> and ~/.denemo-2.5.6/actions/Default.commands, shortcuts hold you
> customized versions of the set of commands you are using. (You can load
> any command set from the Command Center).
>
> I *think* both places are consulted when building the menus.
> You can be quite cavalier about the contents of ~/.denemo-2.5.6 as any
> customization work you have done will remain untouched in ~/.denemo-
> 2.5.5 after the upgrade so you can't actually lose anything.

Thank you for the explanation, that clarifies a lot the custom
commands management in Denemo. I have to experiment with it, but it's
great to know that custom commands and shortcuts are saved in the
denemo-2.5.x folder.

Cheers,
Lib
>
> HTH
>
> Richard
>
>
>
>
>



reply via email to

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