prompt-toolkit / python-prompt-toolkit

Library for building powerful interactive command line applications in Python
https://python-prompt-toolkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
9.1k stars 717 forks source link

"r" Vi keybinding in should also work in Vi selection mode #1840

Open jonathanslenders opened 5 months ago

jonathanslenders commented 5 months ago

Currently, "r" only works is navigation mode. After which the current character underneath the cursor will be replaced.

This should also work for selection mode, where it will replace every character within the selection, except for line endings.