weasel icon indicating copy to clipboard operation
weasel copied to clipboard

A way to automatically display which schema is currently on?

Open scorpjke opened this issue 1 year ago • 5 comments

If there are many schemas, it's a big issue when you don't know which schema is currently on. So before starting typing, I want to see which schema is on, without clicking anything. Sure I could just click F4 and then Esc but that's inconvenient, it takes time. If we're talking about Windows, it could potentially be displayed in the language bar. Or, which would be even better, show it as a little message near or after the cursor. I considered writing a Lua script to display it as fake input after the cursor but I couldn't find a way to do it since Lua scripts always run as a callback to user input but the feature has to work with no user input.

scorpjke avatar Sep 23 '24 06:09 scorpjke

you can setup specified icon(and ascii icon) for each schema to show schema icon in the language bar button.

fxliang avatar Sep 23 '24 10:09 fxliang

I just found out how to do it. That's great. But what about my second suggestion? I noticed that in the new version of Rime when you switch the schema, a little pop-up window shows up with the name of the Schema. Is there any way to make it ALWAYS show up when a cursor is set somewhere ready for typing? Maybe it's possible to do with Lua, and if so, can you tell me how?

scorpjke avatar Sep 23 '24 11:09 scorpjke

try to set show_notifications_time to a huge number (unit:ms) in weasel.yaml , it might work

fxliang avatar Sep 23 '24 11:09 fxliang

Unfortunately it didn't work. But since we're at it, I have one more little question. Schema often changes by itself depending on the current window. How do I disable that? I want the schema to stay always stay the same unless I switch it.

scorpjke avatar Sep 23 '24 14:09 scorpjke

tip

weasel.custom.yaml

patch:
  # how long a period notifications shows
  show_notifications_time: 5000000

fxliang avatar Sep 23 '24 14:09 fxliang