history

https://github.com/boyw165/history.git

git clone 'git://github.com/boyw165/history.git'
18

MELPA MELPA Stable TRAVIS-CI

history.el - History Utility For Code Navigation

This tool is similar to pop-global-mark but more powerful. You can go through the whole history without losing them. Actually, pop-global-mark will use the latest record but also discard it. But this tool will preserve all the history and smartly ignore killed buffers or invalid symbol string.

You'll feel the power and convenience of using history-add-history, history-prev-history and history-next-history instead of built-in old way.

Demo

history screenshot

Basic Concept - Linked List Liked

  (1) - (2) - (3) - (4) - (5)
                           ^ index
  (1) - (2) - (3) - (4) - (5)
               ^ index
  (1) - (2) - (3) - (new)
                      ^ index
histories behind index will be discard,
and new one will be appended to the end.

Usage - First Step, Enable history-mode

history screenshot history screenshot

history screenshot

Advanced Usage

Example:

;; Add history just before `find-tag' executed.
(add-to-list 'history-advised-before-functions 'find-tag-noselect t)

;; Add history just before `find-file' executed.
(add-to-list 'history-advised-before-functions 'find-file-noselect t)

Advise primitive functions might cause infinite loop, strongly suggest you NOT to advise them.

Customization

history screenshot

history screenshot

Contribution

Forks and pull requests are welcome!