-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow reaticulate to close on ESC while Search Filter is focused #224
Comments
cmd/ctrl-backspace actually only removes a single word. Escape clears the entire field. So that was a deliberate decision. (Not saying it was the best one, but it was at least intentional. :)) I'm a bit confused about your workflow when you say that you hit enter to insert the articulation. Enter only activates the articulation, it doesn't insert it into the MIDI item. Just enter is inserting for you? Shift-enter or ctrl/cmd-enter will insert by design, and this actually does unfocus the articulation filter. But if you came from another window, like the MIDI editor, then it will return focus there, so it doesn't work for your particular use case where you want to temporarily open Reaticulate and close it again. It does work if you have Reaticulate open all the time, as I do. In the always-on case, the workflow I use all the time is is running the "Focus articulation filter" action, type the pattern, ctrl-enter, and it returns whence you came (arrange view or MIDI editor usually). I've been contemplating a bit of a redesign of Reaticulate where I separate the background functionality into a headless (non-GUI) script that's always on, and then providing separate actions for the main window and thinking of a slim/streamlined articulation quick-picker for your exact use case. |
Ah double enter, yes, I'm following you now. (And I also forgot that the insert key will do it too.) As it happens, double enter only works because you're launching Reaticulate. If it were already running and you just focused the articulation filter, Reaticulate would actually return focus to the MIDI editor after the first enter. (Using the insert key or shift/ctrl-enter instead would be the solution there.) Although not universal, hitting escape to clear a search/filter field while preserving focus is a common enough UI idiom. For example, this is how browser URL/search bars work. I'm really not keen on creating a new preference to change this fairly minor behavior. But, playing with this a bit, browser URL bars also take it one step further: if the input field has contents, escape clears the contents and keeps focus. But if escape is pressed when the input field is empty, then it drops focus. This seems ok to me, and it would satisfy your workflow here. Then you can double-tap escape to close the window. Another idea could be to add an action specifically to temporarily open Reaticulate such that it will autoclose when an articulation is inserted. This would kind of a be a poorman's implementation of the future idea I mentioned earlier to have a quick-pick action, which would work this way. (The first idea would be much easier to implement.) |
I can add it to the next minor release, which will come out in December.
This is actually the idea yeah. It will basically act like a popup menu: perform the action (change/insert articulation), and it closes once done. Long term idea, though, since it requires some overhauling of Reaticulate's guts.
I hadn't seen FTC Chordbox before. Took a look. Yeah it's a clever little hack isn't it. Unfortunately AFAICT though your mockup isn't possible, because Chordbox works by taking advantage of the fact that there's an unused bit of space in the MIDI editor and it force-draws over top it (with LICE as you point out). This makes it brittle, since if REAPER decides to change the layout of the editor or is that bit of space for its own uses, it will break Chordbox. So I'm a bit apprehensive to go down that route. Moreover, I'm even more reluctant to add further key dependencies on js_ReaScriptAPI because AFAICT it is now effectively abandonware, or at serious risk of becoming so, because Julian has more or less left the REAPER scene. He still lurks, but he hasn't posted on the forum in almost a year, and in one of his last posts he said he's no longer working in REAPER. So given that, I fear Reaticulate will be constrained by the (significant) limitations of REAPER's native API. |
Hello,
As title says. I'd like to operate Reaticulate entirely from keyboard, and i have a custom action that does:
So i can search the articulation and quickly insert it with ENTER. Problem is, i can't exit the script without clicking somewhere in the reaticulate window and pressing ESC, or clicking outside of reaticulate and pressing the shortcut assigned to it.
So i propose: allow ESC to unfocus the articulation filter (so we can double tap esc to close it) or close Reaticulate even if the articulation filter is focused.
EDIT: From the website:
I think is better to also unfocus the filter since we can already Cmd+Backspace to clear it.
Thanks a lot for your work
The text was updated successfully, but these errors were encountered: