• Getting Involved

    by  • June 4, 2011 • Developers • 0 Comments

    Recently we’ve had several feature requests in comments of a blog post. If you are interested, you can easily implement this and contribute to Kate. And I’ll even show you how to get started for the following feature. First, build Kate according to http://kate-editor.org/get-it/.

    Adding support for ctrl+w {left, right, up, down} to switch the active view.

    Kate has a vi input mode. This way, vim users can still use their default work flow but still use Kate at the same time. What’s missing in the current vi input mode implementation is support for view navigation. In vim, to move between different windows, press ctrl-w <arrow keys> to switch to the neighboring view. Implementing this is rather easy – the following steps need to be taken care of:

    1. Add vim bindings (=vim shortcuts) to the Kate’s implementation of the ‘normal mode’.
    2. In the implementation, find all visible KateViews.
    3. Compare the global coordinates of the window geometry by using QWidget::mapToGlobal(const QPoint& pos) (for QPoint(0, 0) and QPoint(width(), height()) of all KateViews)
    4. Call setFocus to the nearest matching of the visible views.

    Patches are welcome :)

    About

    Dominik is a PhD student at the Control Theory and Robotics Lab, TU Darmstadt, as part of the Research Training Group GKMM (GRK1362). My research focuses on state estimation in distributed systems. As hobby, I contribute to the KDE project and work on the Kate application and editor component.

    http://www.kate-editor.org