Incidencia #45994

Add clear and redraw binding

Abrir Fecha: 2022-10-28 05:11 Última actualización: 2023-09-11 23:44

Informador:
(Anónimo)
Propietario:
(Ninguno)
Estado:
Cerrado
Componente:
(Ninguno)
Hito:
(Ninguno)
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Fixed
Fichero:
Ninguno
Vote
Score: 1
100.0% (1/1)
0.0% (0/1)

Details

I think not having this binding by default is frustrating for many users, myself included, as I've spent a good chunk of time trying to find it in the documentation and wondered why it is not enabled by default.

Would you consider adding the following line to the "share/initialization/common" file?

... # some useful key bindings bindkey --emacs '\L' clear-and-redraw-all bindkey --emacs '\N' beginning-search-forward ...

Thanks in advance for your time and effort!

Ticket History (3/6 Histories)

2022-10-28 05:11 Updated by: None
  • New Ticket "Add clear and redraw binding" created
2022-10-28 15:55 Updated by: firasuke
Comentario

I think the correct binding should be:

bindkey --emacs '\L' clear-and-redraw-all

And I agree it should be added as a default binding inside /usr/share/yash/initialization/common as it is considered an expected behavior in many shells.

(Edited, 2022-10-28 15:56 Updated by: firasuke)
2022-10-29 00:01 Updated by: magicant
Comentario

ksh and mksh seem to bind ESC C-L to a clear-and-redraw-all equivalent though bash and zsh do C-L.

2022-10-30 21:10 Updated by: firasuke
Comentario

Well regardless of the implementation, does yash provide a default key binding to clear and redraw?

2023-04-08 11:50 Updated by: magicant
Comentario

I'm not thinking of default-binding clear-and-redraw-all to Ctrl-L, as I suppose such a potentially destructive functionality should not be accessed too easily. Instead, I've added a code example to the sample script in r4241 to show how to rebind the key for users who wish to do so at their own risk.

2023-09-11 23:44 Updated by: magicant
  • Estado Update from Open to Cerrado
  • Resolución Update from Ninguno to Fixed

Attachment File List

No attachments

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Entrar