Bug 317923

Summary: Vi input mode should support Ctrl+Cursor shortcuts also in visual mode
Product: [Applications] kate Reporter: Andreas <hohenegger>
Component: Vi Input ModeAssignee: Simon St James <kdedevel>
Status: RESOLVED FIXED    
Severity: minor CC: kdedevel
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Andreas 2013-04-06 12:44:34 UTC
In visual mode the shortcut Ctrl+Cursor does not work, while it does in insert mode.

Reproducible: Always

Steps to Reproduce:
1. Open kate
2. Enable vi input mode
3. Press Ctrl+Cursor (right or left)
Actual Results:  
Nothing.

Expected Results:  
Cursor should move by one word to the right or left.

Workaround is to change to insert mode with i, press Ctrl+Curser, return to visual mode with Esc.
Comment 1 Simon St James 2013-04-11 13:15:37 UTC
Git commit f0649962a259d11019b84b2e652c1892daba0a27 by Simon St James.
Committed on 11/04/2013 at 15:08.
Pushed by sstjames into branch 'master'.

Extend TestPressKey so that it can deal with e.g.  \\ctrl-\\left, and implement ctrl-left and ctrl-right in both normal and visual modes.

M  +2    -0    part/vimode/katevinormalmode.cpp
M  +2    -0    part/vimode/katevivisualmode.cpp
M  +21   -0    tests/vimode_test.cpp

http://commits.kde.org/kate/f0649962a259d11019b84b2e652c1892daba0a27