rime / weasel

【小狼毫】Rime for Windows
https://rime.im
GNU General Public License v3.0
4.42k stars 542 forks source link

A way to automatically display which schema is currently on? #1370

Open scorpjke opened 1 week ago

scorpjke commented 1 week ago

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.

fxliang commented 6 days ago

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

scorpjke commented 6 days ago

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?

fxliang commented 6 days ago

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

scorpjke commented 6 days ago

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.

fxliang commented 6 days ago

tip

weasel.custom.yaml

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