]> code.delx.au - gnu-emacs-elpa/commitdiff
ivy.el (ivy-thing-at-point): Try ffap-file-at-point
authorOleh Krehel <ohwoeowho@gmail.com>
Fri, 18 Mar 2016 08:55:16 +0000 (09:55 +0100)
committerOleh Krehel <ohwoeowho@gmail.com>
Fri, 18 Mar 2016 08:55:16 +0000 (09:55 +0100)
Very useful on Windows with it's weird path names.

ivy.el

diff --git a/ivy.el b/ivy.el
index 2148880b9c26d224e81321d29862431eac365ed5..fd8c81b67aa2e1ea8664132bab0b140959e5eaf5 100644 (file)
--- a/ivy.el
+++ b/ivy.el
@@ -301,6 +301,7 @@ This should eventually become a stack so that you could use
   "Return a string that corresponds to the current thing at point."
   (or
    (thing-at-point 'url)
+   (ffap-file-at-point)
    (let (s)
      (cond ((stringp (setq s (thing-at-point 'symbol)))
             (if (string-match "\\`[`']?\\(.*?\\)'?\\'" s)