Giter Site home page Giter Site logo

point-history's Introduction

Point History

Remember the points you visited before as history, and re-visit them quickly.

This package is greatly inspired from point-undo.el and jump-back!.

Whats' This

This package can remember the cursor-position as history, which you stayed before.
When you want to back to the position, you can select the position from the history.

point-history

Features

  • Remember point-info as history which you stayed over point-history-save-timer
  • point-info contains buffer-name, cursor-position, line-content
  • Access the list of point-info's history and select them to visit the position again
  • Preview the buffer quickly in the other window

Setup

Requrements

This package use popwin-el.
You need to install it beforehand.

Settings

git clone and edit your init.el as below.

(add-to-list 'load-path "YOUR PATH")
(require 'point-history)

;; enable minor mode
(point-history-mode t)

;; optional
(global-set-key (kbd "YOUR KEY") 'point-history-show)

Usage

Use M-x point-history-show and you can open point-history-show-buffer with history.
Then you can select the point in history and press Enter to jump to its position.

When you want to change the keymap in point-history-show-buffer, edit init.el as below.

(define-key point-history-show-mode-map (kbd "n") 'point-history-next-line)
(define-key point-history-show-mode-map (kbd "p") 'point-history-prev-line)

Customizable variables

variable usage default value
point-history-max-item-num Max number of points saved in history 100
point-history-show-buffer-height Buffer height to show point-history 30
point-history-save-timer Interval time to save point in history 1
point-history-should-preview show the preview of buffers t

Tips

If you edit point-history-ignore-buffer and point-history-ignore-major-mode, You can ignore points to save into history for specific buffers and major-modes.

(setq point-history-ignore-buffer "^ \\*Minibuf\\|^ \\*point-history-show*")
(setq point-history-ignore-major-mode '(emacs-lisp-mode ruby-mode))

Extensions

point-history's People

Contributors

blue0513 avatar suzumiyaaoba avatar

Watchers

James Cloos avatar Naoya Yamashita avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.