Liking cljdoc? Tell your friends :D

repl-balance.clojure.paredit


backwardclj

(backward)
(backward buf)
(backward s cur)
source

barf-backwardclj

(barf-backward)
(barf-backward buf)

For a Buffer, barf backward

For a Buffer, barf backward
sourceraw docstring

barf-forwardclj

(barf-forward)
(barf-forward buf)

For a Buffer, barf forward

For a Buffer, barf forward
sourceraw docstring

barf-forward-strclj

(barf-forward-str)
(barf-forward-str buf)
(barf-forward-str s cur)

For a Buffer, barf forward

For a Buffer, barf forward
sourceraw docstring

coll-end?clj

(coll-end? loc pos)
source

find-locclj

(find-loc loc target-cursor)
source

forwardclj

(forward)
(forward buf)
(forward s cur)
source

killclj

(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
sourceraw docstring

kill-allclj

(kill-all)
(kill-all buf)

For a Buffer, kill at a cursor position.

For a Buffer, kill at a cursor position.
sourceraw docstring

kill-in-buffclj

(kill-in-buff)
source

loc->position*clj

(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
sourceraw docstring

movementclj

(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`
sourceraw docstring

open-and-slurpclj

(open-and-slurp)
(open-and-slurp buf)

insert open paren and slurp forward

insert open paren and slurp forward
sourceraw docstring

raiseclj

(raise)
(raise buf)
source

risenclj

source

slurp-backwardclj

(slurp-backward)
(slurp-backward buf)

For a Buffer, slurp backward

For a Buffer, slurp backward
sourceraw docstring

slurp-forwardclj

(slurp-forward)
(slurp-forward buf)

For a Buffer, slurp forward

For a Buffer, slurp forward
sourceraw docstring

spliceclj

(splice)
(splice buf)
(splice s cur)

splice the list/vector

splice the list/vector
sourceraw docstring

splitclj

(split)
(split buf)
(split s cur)

split the list/vector

split the list/vector
sourceraw docstring

split-nodeclj

(split-node n c)
source

str-find-cursorclj

(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
sourceraw docstring

str-find-cursor-rangeclj

(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
sourceraw docstring

str-find-posclj

(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
sourceraw docstring

str-find-pos*clj

(str-find-pos* s)

given a string returns a function of cursor->position

given a string
returns a function of cursor->position
sourceraw docstring

str-row-offsetsclj

(str-row-offsets s)

for a string return a vector of row offsets

for a string return a vector of row offsets
sourceraw docstring

truncateclj

(truncate loc len)
source

truncate-nodecljmultimethod

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
sourceraw docstring

wrap-locclj

(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
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close