-
Notifications
You must be signed in to change notification settings - Fork 265
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
ui: add bell notification (beep) #945
Conversation
bdced70
to
8c6649b
Compare
I don't see anything wrong with this code but besides this pull request But, since this isn't 👍 : I agree DON'T merge this. |
My other problem with this PR is that it does more than what’s in the commit message. It seems to be playing with the colour palette more than just what’s necessary to introducing the bell notification (at least unnecessary formatting changes). |
There are two places where I put the For me, the addition of a bell is a matter of accessibility as it allows me to get into a known state without looking at the screen: repeat until the bell sounds and you know where you are. |
Maybe I'm ignorant but is it possible to use vis without looking at |
The bell is sounded when there is nothing to undo/redo. This is consistent with vim, although vim has many more beep cases.
8c6649b
to
6ec8b67
Compare
Sure! I'm a confident typist and can for instance transcribe or translate something without looking at either the screen or keyboard. With |
With an option to silence the bell (defaulted to off), i don't mind this change. |
I would consider that useless code that serves as nothing but a maintenance burden. The audible aspect of the terminal bell can be configured in your terminal emulator. The bell is sounded in many more prevalent circumstances than at the end of undo/redo sequences in your editor. Tab completion for example also typically sounds the bell. Have you actually tried |
Yes I've tried it and don't mind the default bell sound, especially when i see i can configure my terminal (Wezterm) on how to respond to it. Not sure all users agree though .. and it does require some additional effort by the user to return to the previous behavior |
I think we need a decision about this issue, @rnpnr , either merge this or reject it, but this lingers here. |
It looks to me like most people do not want this patch. For the time being it will have to remain local for anyone who wants it. Feel free to link it in the wiki if you want. |
The bell is sounded when there is nothing to undo/redo.
This is consistent with vim, although vim has many more beeps cases.
I wanted to browse the vis code-base a bit and decided that this was a good excuse to do so.
In VIM, the bell can be silenced by configuring a "visual bell" (screen flash) and setting the visual bell command to the empty string. I reckon implementing anything like a "visual bell" is out of scope for vis (it can be configured in your terminal emulator anyway), but we might want an option to silence the bell still.