Function: cider--find-dwim-thing-at-point

cider--find-dwim-thing-at-point is a byte-compiled function defined in cider-find.el.

Signature

(cider--find-dwim-thing-at-point)

Documentation

Return the var or resource path at point for cider-find-dwim.

Inside a string we assume a resource path and use thing-at-point. Otherwise we use cider-symbol-at-point, which recognizes Clojure symbol characters such as ? and ! that thing-at-point filename mode drops.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-find.el
(defun cider--find-dwim-thing-at-point ()
  "Return the var or resource path at point for `cider-find-dwim'.
Inside a string we assume a resource path and use `thing-at-point'.
Otherwise we use `cider-symbol-at-point', which recognizes Clojure symbol
characters such as `?' and `!' that `thing-at-point' filename mode drops."
  (if (ppss-string-terminator (syntax-ppss))
      (thing-at-point 'filename)
    (or (cider-symbol-at-point) (thing-at-point 'filename))))