Function: evil-find-file-at-point-visual

evil-find-file-at-point-visual is an interactive and byte-compiled function defined in evil-commands.el.

Signature

(evil-find-file-at-point-visual)

Documentation

Find the filename selected by the visual region.

Signal an error if the file does not exist.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-command evil-find-file-at-point-visual ()
  "Find the filename selected by the visual region.
Signal an error if the file does not exist."
  (let ((region (buffer-substring (region-beginning) (region-end))))
    (if (file-exists-p region)
        (find-file-at-point region)
      (user-error "Can't find file \"%s\" in path" region))))