(barf-backward)(barf-backward buf)For a Buffer, barf backward
For a Buffer, barf backward
(barf-forward)(barf-forward buf)For a Buffer, barf forward
For a Buffer, barf forward
(barf-forward-str)(barf-forward-str buf)(barf-forward-str s cur)For a Buffer, barf forward
For a Buffer, barf forward
(kill s c)kill string up to the next closing delimiter or up to newline
kill string up to the next closing delimiter or up to newline
(kill-all)(kill-all buf)For a Buffer, kill at a cursor position.
For a Buffer, kill at a cursor position.
(loc->position* z)for a locator with positions return a function that takes a locator from within the root and returns the position with :cursor and :end-cursor added
for a locator with positions
return a function that takes a locator from within the root
and returns the position with :cursor and :end-cursor added(movement movements loc)helper function that applies movements to a locator
like using -> but is usable like
(condp movement loc [z/down z/right] [:some return] [z/down z/down] :>> #(do-something-with-result %))
short-circuits on first nil
helper function that applies movements to a locator like using -> but is usable like `(condp movement loc [z/down z/right] [:some return] [z/down z/down] :>> #(do-something-with-result %))` short-circuits on first `nil`
(open-and-slurp)(open-and-slurp buf)insert open paren and slurp forward
insert open paren and slurp forward
(slurp-backward)(slurp-backward buf)For a Buffer, slurp backward
For a Buffer, slurp backward
(slurp-forward)(slurp-forward buf)For a Buffer, slurp forward
For a Buffer, slurp forward
(splice)(splice buf)(splice s cur)splice the list/vector
splice the list/vector
(split)(split buf)(split s cur)split the list/vector
split the list/vector
(str-find-cursor s pos & at-end?)given a string and a position (i.e. map with [:row :col]) return the cursor position as an int Note: inverse of str-find-pos
given a string and a position (i.e. map with [:row :col]) return the cursor position as an int Note: inverse of str-find-pos
(str-find-cursor-range s pos)given a string and a position (i.e. map with [:row :col]) return the cursor position as an int Note: inverse of str-find-pos
given a string and a position (i.e. map with [:row :col]) return the cursor position as an int Note: inverse of str-find-pos
(str-find-pos s cursor)given a string and an offset (i.e. cursor) return the position (i.e. map of [:row :col :end-row :end-col] Note: inverse of str-find-cursor
given a string and an offset (i.e. cursor) return the position (i.e. map of [:row :col :end-row :end-col] Note: inverse of str-find-cursor
(str-find-pos* s)given a string returns a function of cursor->position
given a string returns a function of cursor->position
(str-row-offsets s)for a string return a vector of row offsets
for a string return a vector of row offsets
if we are inside a string, symbol or whitespace, truncate the node to the specified length
if we are inside a string, symbol or whitespace, truncate the node to the specified length
(wrap-loc loc s-fn)helper to allow calling a method that takes [str cur] to be callable with a locator
helper to allow calling a method that takes [str cur] to be callable with a locator
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |