SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

Better responsiveness of filename mask editor

When making changes to an existing filename mask, or while creating a new one, the “examples” part, which is an excellent way to control what we are doing, is not updated in real time.
This is OK because permanently recalculating the output would lead to frantic changes with a lot of errors, though if the only way I found to get a refresh was to save (“Ok”) the reload – a few minutes later, I found that clicking in the mask name was another way!

You may:

  1. Automatically refresh when mask input loses focus
  2. Add a “refresh”/“Test” button near examples for a user-triggered refresh.

Yes so 1 is alrready done, once that field loses focus it revalidates. But it didnt occur to me that you might also want to revalidate whilst modoifying the script. We do actually have a button like this for the Scripter task called Validate Overall Script becuase this does not have another field to tab into.

So we could add a Validate Mask button for Preferences:Filename masks and a Validate Script button for Preferences:Scripter - https://jthink.atlassian.net/browse/SONGKONG-2678

@paultaylor » You say that [1] is already done, and indeed I found other way to refresh example content, however, clicking on “Mask” or “Example” (or in various display zones, as shown in my screenshot) has no effect (and, indeed, mask field keeps the focus…).
image

That’s curious, not sure you can do anything there.

Anyway, your proposal will do the trick!

Because you can only change focus by tabblng (or clicking in) another input field, and the only other input field is the Name field. If you tab to Name field it should validate as expected.

Maybe I can improve for it happen in other situations, but these dont cause a focus lost event.

Fixed for next release, there was a bug with the validate mask on losing focus code as well.

1 Like