Navigation/Selection - ECB - the Emacs Code Browser
Description: ECB - the Emacs Code Browser

Next: Incremental search, Previous: Using the keyboard, Up: Using the keyboard

#### 6.2.1 Navigation and Selection in a tree-buffer

In the ECB-buffers RETURN and TAB are the most important keys:

- RETURN does the same as the primary button and C-RETURN does the same as the secondary button. S-RETURN is the same as the SHIFT-click or POWER-click. The terms “primary”, “secondary”, “SHIFT-” and “POWER-click” are explained in Using the mouse. See also the option `ecb-tree-do-not-leave-window-after-select` and the function `ecb-toggle-do-not-leave-window-after-select` which is bound to `C-t` in each tree-buffer of ECB!

  For all RETURN (and S-RETURN and C-RETURN) hits the position of the point within the current node-line is irrelevant! This is for conveniance.

- TAB always expands or collapses expandable nodes.

The RETURN and TAB keys can not be (re)defined with `ecb-key-map`!

If you set `ecb-tree-navigation-by-arrow` to not nil then the arrow keys work in the ECB tree-window in the following smart way:

- Left-arrow: If node is expanded then it will be collapsed otherwise (i.e. current node is either not expandable or not expanded) point jumps to the next “higher” node in the hierarchical tree (higher means the next higher level or - if no higher level available - the next higher node on the same level).
- Right-arrow: If node is expandable but not expanded then it will be expanded. Otherwise (i.e. current node is either not expandable or already expanded) point jumps to the next following node (which is the first subnode in case of an already expanded node or simply the next node in the following line).
- Up- and down-arrow: Point jumps to the first character of the previous (up) rsp. next node (down). “First” character means either the first character of the expand-symbol (in case `ecb-tree-expand-symbol-before` is not nil) or of the displayed node-name. Or with other words: The first non-indentation and non-guide-line (see `ecb-tree-buffer-style`) character of a node (see Tree-buffer styles).