Preparing for adding "command mode" mappings, add a new KateViGlobal::MappingMode enum to replace the currently used ViMode (since "command mode" is not a ViMode), and update everything accordingly.
author Simon St James
()
committer Simon St James
()
commit a46e9962ae0283e7cf7a81cc9b073d5a558aaa57
tree 9135c6e6bf9af70aa1ca3c30e28166ae517ffe45
parent 354e3115071b392ecd3713034fdfa00c589bc50e
Preparing for adding "command mode" mappings, add a new KateViGlobal::MappingMode enum to replace the currently used ViMode (since "command mode" is not a ViMode), and update everything accordingly.

While I'm at it, let's do some refactoring:

- Combine the mapped keypress and isRecursive into new struct, "Mapping".

- Make a QHash that maps MappingMode to the mappings for that mode; removes the need to switch on the MappingMode all over the place!
part/dialogs/katedialogs.cpp
part/utils/katecmds.cpp
part/utils/katecmds.h
part/vimode/kateviglobal.cpp
part/vimode/kateviglobal.h
part/vimode/katevikeymapper.cpp
tests/vimode_test.cpp