(find-forms zloc p?)
Find sexpr-able nodes satisfying the given predicate depth first from initial zipper location.
Find sexpr-able nodes satisfying the given predicate depth first from initial zipper location.
(find-last-by-pos zloc pos)
(find-last-by-pos zloc f pos)
Find last node (if more than one) that is in range of pos
, from initial
zipper location zloc
, moving in direction of f
, which by default is depth
first skipping whitespace.
This is similar to z/find-last-by-pos, but allows incomplete forms, different movement strategies and whitespace handling, and doesn't require {:track-position? true}.
Find last node (if more than one) that is in range of `pos`, from initial zipper location `zloc`, moving in direction of `f`, which by default is depth first skipping whitespace. This is similar to z/find-last-by-pos, but allows incomplete forms, different movement strategies and whitespace handling, and doesn't require {:track-position? true}.
(in-range? {:keys [row col end-row end-col] :as form-pos}
{r :row c :col er :end-row ec :end-col :as selection-pos})
(join-let let-loc)
if a let is directly above a form, will join binding forms and remove the inner let
if a let is directly above a form, will join binding forms and remove the inner let
(raise zloc)
Delete siblings and raise node at zloc one level up
[1 [2 |3 4]] => [1 |3]
Delete siblings and raise node at zloc one level up - `[1 [2 |3 4]] => [1 |3]`
(z-filter zloc f p?)
Return list of nodes satisfying the given predicate p?
, moving in direction
f
from initial zipper location zloc
.
Return list of nodes satisfying the given predicate `p?`, moving in direction `f` from initial zipper location `zloc`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close