Skip to content

knu/consult-location.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

consult-location.el

Select existing file locations from the current buffer or active region with Consult preview and jump support.

(require 'consult-location)

Run M-x consult-location in a buffer containing lines like:

path/to/file
path/to/file:10
path/to/file:10:2
path/to/file:10 Message
path/to/file:10:2: Message

Relative paths are resolved from the current buffer's default-directory. With a prefix argument, consult-location prompts for a base directory. If a relative path is not found there, the current project root is also tried by default.

Candidates use Consult's consult-location category, so embark-consult can export them.

Customization

  • consult-location-try-project-root (default: t)

    Try the current project root when a relative path is not found under the base directory.

Author

Copyright (c) 2026 Akinori Musha.

Licensed under the 2-clause BSD license. See LICENSE.txt for details.

Visit GitHub Repository for the latest information.

About

Select file locations from buffers with Consult

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors