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.
-
consult-location-try-project-root(default:t)Try the current project root when a relative path is not found under the base directory.
Copyright (c) 2026 Akinori Musha.
Licensed under the 2-clause BSD license. See LICENSE.txt for details.
Visit GitHub Repository for the latest information.