-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Double quotation auto insert bug on Macos #4298
Comments
I had already posted in some issues about the problem, but they never took this issue seriously with International English-type keyboards. I hope that now that it has become open source, we can see some progress in this area. Zed is almost unusable for those who use keyboards that are not US and need accentuation. There are several problems that exist, but I also highlight one which is: 1 - Select a sentence or a string. Gravacao.de.Tela.2024-01-27.as.14.14.13.mov |
@andremacola Yes! This happens to me as well. This and other issues make Zed unusable for me while working and on a daily environment. Now I can only use it when I'm working on personal projects (which I'm ashamed to say is not a big part of my weeks). Now that it's open source I believe we can get together to find a solution for this. I'll try and see if I find anything, if you want to join me let me know. It'd be really helpful (I have zero to none experience with editors haha) |
This is the issue that makes Zed really frustrating and not really usable for me. My keyboard layout is I even change that setting to be false I would use the editor live if it wasn't that bug. Even Theo got that issue: https://youtu.be/ZOYp6-k9HhE?si=vj6-WN_xqSu-gu_S&t=806 Here another example: https://s3.amazonaws.com/tempmedia.tumblr.com/fe7517f3da1633e9d93f98af29774816/378h96qfpnsw4ooso0c48ogww_tumblr_tmp.mp4 |
Can someone give me some exact steps to reproduce and expected vs. actual behaviour? I just switched to the Brazilian layout and I can type screenshot-2024-02-05-11.37.35.mp4Is the problem that you don't have to press |
@mrnugget Basically the problem is that we don't have support for when you want to press As I said, in Brazillian's keyboard we need this feature to leave the state of (I'll call it "pressed quote"). If you don't press If you're using Mac, you'll see that when you type one of the quotes before pressing The current behavior is:
The expected behavior is:
With the expected behavior it'll prevent annoying problems like:
Hope this explanation explains better. Let me know if you need further informations. |
Thanks @allyfx! Very helpful. One question: when you open an empty new buffer, with no language set, do you agree that it works as expected? i.e. the input handling is only a problem when auto-insertion of brackets is involved, yes? |
I'm going to chime in here. In a new buffer, while the double quoting issue is fixed, if you type a quote you have to press backspace twice to delete it. I believe this is because Macos has two states for quotes in portuguese. One is when you first press it and the other is after you press another key and it rules out accentuation. |
Not only Brazilian keyboard but US International mapping. |
Also experiencing this. Very annoying when typing anything related to strings. |
Doesn't fix this yet, but it's certainly one first improvement: #7488 |
Doesn't fix this yet either, but here's the next improvement: #7494 |
Here's the final fix: #7611 |
This fixes two annoyances when composing text and autoclose is enabled. Example: use a Brazilian keyboard and type `"`, which triggers a dead-key state. Previously when a user would type `"<space>` to get a quote, we'd end up with 4 quotes. When text was selected and a user then typed `"<space>` the selected text would be deleted. This commit fixes both of these issues. Fixes #4298 Release Notes: - Fixed autoclose behavior not working when composing text via IME (e.g. using quotes on a Brazilian keyboard) ([#4298](#4298)). Co-authored-by: Antonio <antonio@zed.dev> Co-authored-by: bennetbo <bennetbo@gmx.de>
Hey, I am having the exactly same problem here. Brazilian with an International English keyboard, but this time on Fedora linux 41 and zed 0.164.2. Can we reopen the issue or create a new one? |
Same error here
Screencast.From.2024-12-30.12-13-28.mp4Fedora 41 - Zed 0.166.1 |
Check for existing issues
Describe the bug / provide steps to reproduce it
On Mac you need to add double quotes and then hit space for it to be considered as a single character. For example, if I type
"
and then the charactera
without hitting space it makes this character ->ä
. But when I hit space on Zed it doubles the quotes like this""""
and I have to remove the quote.This is because of the keyboard layout. In Brazilian's we need to have this feature because of the language's accents that has conflict with english's quotes. For example the
'
can also be used to create theé
accent.So maybe this is a bug that happens because of different keyboard layouts.
Environment
MacBook Pro M1 macOS Sonoma 14.1.2
Brazilian input sources (Brazilian input layout)
If applicable, add mockups / screenshots to help explain present your vision of the feature
2023-12-25.12-27-34.mp4
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.If you only need the most recent lines, you can run the
zed: open log
command palette action to see the last 1000.No response
The text was updated successfully, but these errors were encountered: