-
Notifications
You must be signed in to change notification settings - Fork 563
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
keep input after switch input schema #917
Comments
You can write a lua script to remember the current input. By the way, how do you switch between languages with a hotkey? How do you assign a hotkey? |
patch:
key_binder/bindings/@before 6:
accept: Control+backslash
select: .next
when: always |
Perhaps it can be a builtin feature? |
Surely it can. The problem here is how to expose it as an option. I do not have good ideas though. |
有點兒意思。如果是 ascii 串串,應該不難。 |
如果已經半選,選過的字怎麼辦? |
For
Do you mean user dictionary? Can we skip it? |
我覺得應該就是這個意思吧。 modified src/rime/engine.cc
@@ -285,12 +285,14 @@ void ConcreteEngine::ApplySchema(Schema* schema) {
if (!schema)
return;
schema_.reset(schema);
+ string input = context_->input();
context_->Clear();
context_->ClearTransientOptions();
InitializeComponents();
InitializeOptions();
switcher_->SetActiveSchema(schema_->schema_id());
message_sink_("schema", schema_->schema_id() + "/" + schema_->schema_name());
+ context_->set_input(input);
} |
Describe the solution you'd like
For example:
Input ni:
Now press a hotkey to switch input schema from Microsoft pinyin to japanese
Actual Behaviour:
Current context and ime is cleared.
Expected behaviour:
Keep original input
The text was updated successfully, but these errors were encountered: