Playmaker Forum

PlayMaker Feedback => Feature Requests => Topic started by: FritsLyn on August 21, 2013, 04:22:08 PM

Title: Cmd/Ctrl + F to open Action Browser
Post by: FritsLyn on August 21, 2013, 04:22:08 PM
I really do not know why on earth I keep pressing Cmd + F to open Action browser.

But I do. All the freaking time.

And I do think the Action browser could use a shortcut - it's used all the freaking time, why do one have to move the mouse?

And since I am using Cmd+ F for some reason, there must be a logic to it, I guess some reason my finger knows that I am not aware - well, why not let that shortcut be Cmd +F?

Thank you :D
Title: Re: Cmd/Ctrl + F to open Action Browser
Post by: Lane on August 21, 2013, 04:25:07 PM
I just double click the State/action area background and close it with escape. Seems ideal to me.
Title: Re: Cmd/Ctrl + F to open Action Browser
Post by: FritsLyn on August 21, 2013, 04:31:25 PM
But everything else can be done from keyboard - it's only that button that has to be pressed with the mouse!

So, if you are a fast keyboarder, you still have to mover over, place the mouse, click, before you can continue :)

No problem of course 1 time, but in a flow where you'd like to keybord-insert 5 actions fast, it's a freaking drag with no shortcut!
Title: Re: Cmd/Ctrl + F to open Action Browser
Post by: Alex Chouls on August 21, 2013, 04:40:32 PM
You can use the ~ key (or ctrl + ~) to open the action browser.

I already have plans for Cmd/Ctrl + F ;)

At some point we'll probably expose keyboard shortcuts in preferences, but it's kind of low down the todo list...
Title: Re: Cmd/Ctrl + F to open Action Browser
Post by: FritsLyn on August 22, 2013, 04:05:08 AM
Hmm on my MacBook Pro, Danish keyboard, I have to press Ctrl in order to make ~ there is no key for it.

Pressing random keys and combinations for 10 minutes now, would there / could there be another key combination available?

BTw; I know why my fingers thinks it's Cmd + F: Because that's standard Find, and after accessing the Action browser, what I do is same as standard "Find": I start typing the name.

In this browser window, as a standard example, if I want to find the word sausage, right at this moment, I press Cmd + F, and start typing sau - yes, there is was..

So Cmd + F would be the standard, you don't want to fight me or my fingers on this, Alex ;D
Title: Re: Cmd/Ctrl + F to open Action Browser
Post by: Alex Chouls on August 22, 2013, 10:54:33 AM
The thing is we plan on adding a Find dialog to Playmaker, and it would be logical for that to use Ctrl-F. This would be a popup dialog that lets you quickly find FSMs, actions, variables, events etc. Kind of like "Navigate To..." in Visual Studio.

I guess exposing key bindings would be the best option...

Title: Re: Cmd/Ctrl + F to open Action Browser
Post by: Alex Chouls on August 22, 2013, 11:06:08 AM
BTW, if you open PlayMakerMainMenu.cs you could add your own hotkeys to menu items.

For example, this will open the Action Browser with Shift-F:

Code: [Select]
[MenuItem(MenuRoot + "Editor Windows/Action Browser _f", false, 14)]
public static void OpenActionWindow()
{
FsmEditor.OpenActionWindow();
}

I don't think Unity will let you bind ctrl-f (%f) because it's used already...

The hotkey codes are described here:
http://docs.unity3d.com/Documentation/ScriptReference/MenuItem.html

Also your changes will be overwritten next time you import Playmaker, so back them up!
Title: Re: Cmd/Ctrl + F to open Action Browser
Post by: moursbourn on August 26, 2013, 08:24:53 PM
please expose the hotkeys.

In OSX the key for switching between windows of the same app is (CMD + ~) so when I press that to get the FSM Editor window back in front of Unity I get the FSM Editor window and an action browser on top of it that I have to close.   If the FSM Editor is already in front of Unity it goes behind Unity and the Action browser opens on top.

Is there currently a way to not have (CMD + ~) open the action browser?

It is driving me nuts.
Title: Re: Cmd/Ctrl + F to open Action Browser
Post by: Alex Chouls on August 26, 2013, 08:53:34 PM
Quote
Is there currently a way to not have (CMD + ~) open the action browser?

Sorry no, not currently. I'll add it to the next update. What happens if you dock the action browser to the Playmaker editor window? It should just cycle through with the other windows...

I had no idea CMD + ~ did that in OSX! Personally it drives me nuts that Unity editor windows don't stay on top in OSX...

Title: Re: Cmd/Ctrl + F to open Action Browser
Post by: moursbourn on August 27, 2013, 03:52:54 PM
Thanks.   Not a huge deal on a large monitor, but on a laptop is is hard to have all the windows docked.

Quote
What happens if you dock the action browser to the Playmaker editor window? It should just cycle through with the other windows...

It cycles to any other open window, like animations or whatever, then opens the action browser on top of it.
Title: Re: Cmd/Ctrl + F to open Action Browser
Post by: Alex Chouls on August 27, 2013, 03:57:07 PM
Even if the action browser is already open and docked?

It should only open the action browser on top if it isn't already open... so the workaround I'm suggesting is to keep the action browser open and docked to the side of the Playmaker editor...
Title: Re: Cmd/Ctrl + F to open Action Browser
Post by: moursbourn on August 27, 2013, 06:06:06 PM
Yes, that works, sorry I misread you previous message.