helm-lines.el
A helm interface for completing by lines elsewhere in your project.
Installing
It's on MELPA. Run M-x package-install helm-links to install it.
Or preferably using the ingenious use-package declaration
(use-package helm-lines
:commands (helm-lines))
This package requires git and
rg, ag or
pt. If you prefer
pt over rg or ag, remember to (setq helm-lines-search-function 'helm-lines-search-pt) in your config.
Features
This plugin will let you complete lines you already typed elsewhere in your project, by searching through files in the current git repo using ag, displaying the results in helm.
Run helm-lines to pop open a search for a line that contains what you already typed on the line you are at. Skip between them with C-p and C-n and hit enter to finish up the line.
Use it with helm-follow-mode to show the resulting line in-place.
Credits/inspiration
helm-ag - https://github.com/syohex/emacs-helm-ag
License
Copyright (C) 2018 Torgeir Thoresen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/.
