Node:Back/forward navigation, Next:, Previous:Maximizing the ECB windows, Up:Usage of ECB



Back- and forward navigation like a browser

With ECB you can "browse" in your source-files like with a web-browser. This means ECB stores the current buffer- and window-position relative to the current token1 in the edit-window after

ECB offers two commands ecb-nav-goto-next (C-c . n) and ecb-nav-goto-previous (C-c . p) to go forward and backward within this navigation history-list. These commands are also available via the menu "ECB -> Navigate".

Aside normal "location-browsing" this is useful for example in a scenario where the buffer is narrowed to a token (see ecb-token-visit-post-actions):

  1. You edit a function
  2. Goto another function above the current in the same file
  3. Add a few lines
  4. Call ecb-nav-goto-previous

    Now you will edit at the same place in the function.


Footnotes

  1. e.g. a method, a variable or any other semantic token