-
Notifications
You must be signed in to change notification settings - Fork 15
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
Options to improve coding experience #39
Comments
Can you explain why you think having Esc not remove the preedit is helpful? |
I'd like to be able to write I'm not suggesting to change the I'm also suggesting to get rid of the trailing space for reasons you may be already aware of: |
Do you know that in many cases you can commit the current preëdit without adding a space by typing Control+Space instead of just Space? Isn’t Control+Space just as good for this purpose as ESC? For a list of keys which may trigger a commit, see: https://github.com/mike-fabian/ibus-typing-booster/blob/master/engine/hunspell_table.py#L2620
Not all of these trigger a commit always, for example the arrow right key would trigger a commit only if the cursor is at the right side of the preëdit, if the cursor has been moved left in the preëdit, an arrow right key would not commit until the ride side of the preëdit is reached. A space always triggers a commit. If a commit is triggered by any of the above keys, the key itself is forwarded to the application. |
Thank you for the detailed answer. |
At the moment there is now way to use digits (or the F1-F9 keys) I am thinking about what would be the best way to make this possible.
(Of course with a more concise name for that option).
For example, just like Control+Space commits the currently http://mike-fabian.github.io/ibus-typing-booster/documentation.html#key-bindings I.e. Control+Number removes that suggestion from the database In case of committing with the mouse, the middle mouse Option 1), i.e. an option to disable that extra space really does But even when an option is on, one can still commit a candidate So which idea is better in your opinion? 1) or 2)? Or are there any If we choose 1), what would be an easy to understand but short name |
Option 1) The description can be something like "Trim (or strip) whitespace from candidate committed by a label". Option 3) Even if I understand now why there is a trailing space I'm not sure about this behaviour:
A more consistent option can be just "Trim whitespace from candidate" (always). Option 4) What if one wants to use the This option is similar to option 1) but here the |
I think when using the space bar to commit, the space should never be trimmed, that would be very inconsistent. All keys which can be used to commit add the same key after the committed text, it would be very weird to make an exception for space here. And one can use Control+Space already if one wants to avoid that extra space. As you write, one can also commit using Enter or Return, but that adds an Enter or Return so it will go to the next line which is probably not what you want. I think it should be enough to have an option which avoids adding the space when committing using the labels (1-9, F1-F9) or the mouse. |
You're right, probably I was confused by the |
Yes, I’ll probably add that option not to add an extra space when committing with F1-F9 (1-9) or by clicking with the mouse. |
The new option is in https://github.com/mike-fabian/ibus-typing-booster/releases/tag/2.1.2 |
Does the new option help you? |
Yes, I think it's a great addition, thank you very much. Sorry for the late reply, I wasn't able to answer before. |
No problem, thank you for the feedback! |
I am thinking about removing that option again and replacing it by something described in I.e.: And for the commits using keys I think it would be good to have commands like: commit_candidate_1 [] <- default keybinding empty Somebody who wants to use 1-9 to commit without space would need to remove the 1-9 keybindings from “commit_candidate_1_with_space” and add them to “commit_candidate_1”. That is a bit more work than just clicking the current checkbox, but I don’t think it makes sense to change this setting often. Do you change this setting very often? Am I right to assume that changing this setting very often makes no sense? I.e. a user would typically decide whether he wants the space added or not, set it up that way and then leave it like that? The above idea gives much more flexibility to fine tune the behaviour, but switching between having the 1-9 keys add a space on commit or not add a space on commit takes a little bit more then just checking a checkbox, one needs to change the key bindings for several commands then. But if one does this only once and not often, this should be fine. |
It seems fair, I don't change this setting often. [x] Enable suggestion by key |
Thank you. Then I can implement the above idea for an improvement and without making anything worse for you. That’s great! |
I've used the Typing Booster to write code and I'd like to suggest two main enhancements:
Esc
behavior (I think theEsc
key should escape the suggestions without removing the characters already inserted).Thank you.
🙏🏻
The text was updated successfully, but these errors were encountered: