mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
26a3b42a15
Applications using the Vim emulation engine now support line-wise text selection. We already have support for character-wise text selection, by pressing `v` from normal mode. However now can also trigger line-wise text selection by pressing `shift+v` from normal mode, and then using vertical motion commands (e.g. `j` or `k`) to expand the selection. This is a standard vim feature. In visual line mode the following operations are supported: * `escape`: back to normal mode * `u`: convert to lowercase * `U`: convert to uppercase * `~`: toggle case * `ctrl+d`: move down by 50% of page height * `ctrl+u`: move up by 50% of page height * `d` or `x`: delete selection * `c`: change selection * `y`: copy selection * `page up`: move up by 100% of page height * `page down`: move down by 100% of page height Notably I didn't implement pressing `v` to go to regular (character-wise) visual mode straight from visual line mode. This is tricky to implement in the current code base, and there's an alternative, which is to take a detour via normal mode. |
||
---|---|---|
.. | ||
Applets | ||
Applications | ||
Demos | ||
DevTools | ||
DynamicLoader | ||
Games | ||
Libraries | ||
Services | ||
Shell | ||
Utilities | ||
CMakeLists.txt |