(backward-delete-char)(backward-delete-char buf)(backward-delete-char s c)(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
(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
(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
(join)(join buf)(join s cur)join two adjacent sexp or strings into one
join two adjacent sexp or strings into one
(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
(kill-all)(kill-all buf)For a Buffer, kill at a cursor position.
For a Buffer, kill at a cursor position.
(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
(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(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
(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
(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
(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 |