Skip to content

Commit a54b681

Browse files
huttongrabiellinusg
authored andcommitted
LibGUI: Allow to lowercase conversion in Vim emulation
If Key_U is pressed while in visual mode, the currently selected text will be converted to lowercase.
1 parent e3bef71 commit a54b681

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Userland/Libraries/LibGUI/VimEditingEngine.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,6 +1195,10 @@ bool VimEditingEngine::on_key_in_visual_mode(KeyEvent const& event)
11951195
yank(Selection);
11961196
switch_to_normal_mode();
11971197
return true;
1198+
case (KeyCode::Key_U):
1199+
casefold_selection(Casing::Lowercase);
1200+
switch_to_normal_mode();
1201+
return true;
11981202
case (KeyCode::Key_PageUp):
11991203
move_page_up();
12001204
update_selection_on_cursor_move();

0 commit comments

Comments
 (0)