Tíquete #45994

Add clear and redraw binding

: 2022-10-28 05:11 Última Atualização: 2022-10-30 21:10

Relator:
(Anônimo)
Dono:
(Nenhum)
Estado:
Aberto
Componente:
(Nenhum)
Marcos:
(Nenhum)
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Nenhum
Arquivo:
Nenhum
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/4 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
Comentário

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
Comentário

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
Comentário

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

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. » Login