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

后端 未结 6 1513
花落未央
花落未央 2020-12-02 05:12

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 →<

6条回答
  •  余生分开走
    2020-12-02 05:53

    If anyone is wondering how to do this with GTK3 - simply open ~/.config/gtk-3.0/gtk.css and add the following:

    @binding-set MyTreeViewBinding
    {
        bind "Left"     { "expand-collapse-cursor-row" (0,0,0) };
        bind "Right"    { "expand-collapse-cursor-row" (0,1,0) };
    }
    
    GtkTreeView
    {
      gtk-key-bindings: MyTreeViewBinding;
    }
    

提交回复
热议问题