peterwvj / goto-line-preview

Preview line when executing `goto-line` command.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status MELPA License: GPL v3

goto-line-preview

Preview line when executing goto-line command.

Normally goto-line will just ask for input of the line number then once you hit RET; it will just go to that line of code. This package makes this better by navigating the line while you are inputting in minibuffer.

P.S. Inspired by Visual Studio Code goto line preset behavior.

Usage

Call it from minibuffer directly,

M-x goto-line-preview-goto-line

Or you can just bind to any key you want.

(define-key global-map (kbd "M-g") #'goto-line-preview-goto-line)

Contribution

If you would like to contribute to this project, you may either clone and make pull requests to this repository. Or you can clone the project and establish your own branch of this tool. Any methods are welcome!

About

Preview line when executing `goto-line` command.

License:GNU General Public License v3.0


Languages

Language:Emacs Lisp 100.0%