Skip to content

Latest commit

 

History

History
44 lines (24 loc) · 1.56 KB

README.md

File metadata and controls

44 lines (24 loc) · 1.56 KB

Stand With Ukraine

License GPL 3 MELPA

emacs-find-file-rg

This package allows to find file in current project or any directory using rg --files command.

Why?

As a ripgrep user, I have fine-tuned .ignore file in my projects folders to exclude certain files from grepping. It turned out that rg --files provides the list of only interesting files.

Usage

Interactive commands

find-file-rg

Asks for project dir if needed and reads filename with completing function. project-current is used as the default directory to search in. If invoked with prefix argument, always asks for directory to find files in.

find-file-rg-at-point

Calls find-file-rg with active region or filename at point as initial value for completing function.

Keybindings

No predefined keybindings are provided. I personally use C-c f for find-file-rg and C-c g for find-file-rg-at-point.

Installation

With package.el

Download find-file-rg.el and run:

M-x package-install-file RET <path-to-find-file-rg.el> RET

Without package.el

Put find-file-rg.el somewhere in your load path and add this to init.el:

(require 'find-file-rg)