Liking cljdoc? Tell your friends :D

repl-balance.clojure.paredit


backwardclj

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

backward-delete-charclj

(backward-delete-char)
(backward-delete-char buf)
(backward-delete-char s c)
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

close-roundclj

(close-round)
(close-round buf)
source

coll-end?clj

(coll-end? loc pos)
source

delete-charclj

(delete-char)
(delete-char buf)
(delete-char s c)
source

doublequoteclj

(doublequote)
(doublequote buf)
(doublequote s c)
source

find-locclj

(find-loc loc target-cursor)
source

forwardclj

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

forward-kill-wordclj

(forward-kill-word)
(forward-kill-word buf)

kill the next word skipping over delimiters like parens

kill the next word skipping over delimiters like parens
sourceraw docstring

get-killed-delimitersclj

(get-killed-delimiters)
(get-killed-delimiters killed)

after a kill, inspect the killed text and find the delimiters killed that should be reinserted to maintain balance

after a kill, inspect the killed text and find
the delimiters killed that should be reinserted to maintain balance
sourceraw docstring

is-literal?clj

(is-literal? s c)
source

joinclj

(join)
(join buf)
(join s cur)

join two adjacent sexp or strings into one

join two adjacent sexp or strings into one
sourceraw docstring

killclj

(kill s cur)

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

kill-origcljdeprecated

(kill-orig 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-whole-lineclj

(kill-whole-line)
(kill-whole-line buf)
source

line-commentclj

(line-comment)
(line-comment buf)
(line-comment s c)
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

missing-yank-delimitersclj

(missing-yank-delimiters killed)

add delimiters to text that is being added from the kill ring to make the inserted text balanced returns [openers closers] to be added before and after insert text

add delimiters to text that is being added from the kill ring to make the inserted
text balanced returns [openers closers] to be added before and after insert text
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

open-curlyclj

(open-curly)
(open-curly buf)
(open-curly s c)
source

open-roundclj

(open-round)
(open-round buf)
(open-round s c)
source

open-squareclj

(open-square)
(open-square buf)
(open-square s c)
source

raiseclj

(raise)
(raise buf)
source

reinsert-killed-delimiterscljdeprecated

(reinsert-killed-delimiters)
(reinsert-killed-delimiters buf)

This should be called AFTER the default .kill-region widget this then adds back any required delimiters

This should be called AFTER the default `.kill-region` widget
this then adds back any required delimiters
sourceraw docstring

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