Nice work!

Doru


> On Mar 6, 2018, at 5:05 PM, Denis Kudriashov <dionisi...@gmail.com> wrote:
> 
> Hi.
> 
> With latest version of Commander and Calypso we will have all shortcuts 
> explorable and configurable in Settings Browser:
> 
> <ShortcutsSettingsBrowser.png>
> ‚Äč
> Currently it uses command class name and class comment for presentation. We 
> can improve it in future if necessary.
> In addition you can add single shortcut to your own application settings. For 
> example:
> 
> MyApp class>>appSettingsOn: aBuilder
>     <systemsettings>
> 
>     ann := ClySpawnFullBrowserCommand classAnnotationAt: 
> #browserShortcutActivation.
>     (ann buildSettingNodeOn: aBuilder)
>        label: 'My app shortcut';
>        description: 'This command opens browser'
> 
> Shortcut settings are persisted as all other settings. Only redefined 
> shortcuts are stored into the file.
> 
> This version also allows to add commands into the world menu and world 
> shortcuts. Just use CmdWorldMenuContext for command annotations:
> 
> CmdOpenFamilyBookCommand class>>worldMenuActivation
>     <classAnnotation>
>     ^CmdContextMenuCommandActivation byRootGroupItemFor: CmdWorldMenuContext 
> 
> CmdOpenFamilyBookCommand class>>globalShortcutActivation
>     <classAnnotation>
>     ^CmdShortcutCommandActivation by: $o meta, $f meta for: 
> CmdWorldMenuContext 
> 
> (CmdOpenFamilyBookCommand is a command from Commander-Examples package).
> 
> Nice detail: all shortcuts are updated immediately when you modify 
> annotations either from settings or programmatically from browser. 
> 
> Now pull request for Pharo 7 is waiting integration. Soon it will be inside.
> 
> Best regards,
> Denis

--
www.tudorgirba.com
www.feenk.com

"When people care, great things can happen."





Reply via email to