Skip to content
Advertisement

Is it possible to use arrow keys alone to expand tree node in package explorer in Eclipse on Linux?

When using Eclipse I browse through the package explorer tree using the keyboard arrows a lot.

In Windows I can expand a collapsed node by pressing the key. In Linux I need to press Shift + . Is there a way to reconfigure this so that Shift is not required?

Advertisement

Answer

My version for GTK3 that behaves in more natural way. Add the following to ~/.config/gtk-3.0/gtk.css:

@binding-set MyTreeViewBinding
{
    bind "Left"     { "select-cursor-parent" ()
                      "expand-collapse-cursor-row" (0,0,0) };
    bind "Right"    { "expand-collapse-cursor-row" (0,1,0) };
}

GtkTreeView
{
    gtk-key-bindings: MyTreeViewBinding;
}
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement