Liking cljdoc? Tell your friends :D

clojure-lsp.feature.drag

Drag clauses forward or backward.

{:a 1, :b 2} -> {:b 2, :a 1}

What constitutes a clause is context dependent. In a map, it will be a key/value pair. In a vector it will be a single element, unless the vector establishes bindings as in let, in which case it will be a pair of elements. This code tries to be aware of common functions, data structures and other forms, and their conventions for establishing clauses.

Though this feature was originally called 'move collection entry', it is now more generally used to drag any clause forward or backward, even if it isn't in an immutable collection.

Drag clauses forward or backward.

{:a 1, :b 2} -> {:b 2, :a 1}

What constitutes a clause is context dependent. In a map, it will be a
key/value pair. In a vector it will be a single element, unless the vector
establishes bindings as in `let`, in which case it will be a pair of elements.
This code tries to be aware of common functions, data structures and other
forms, and their conventions for establishing clauses.

Though this feature was originally called 'move collection entry', it is now
more generally used to drag any clause forward or backward, even if it isn't
in an immutable collection.
raw docstring

can-drag-backward?clj

(can-drag-backward? zloc uri db)
source

can-drag-forward?clj

(can-drag-forward? zloc uri db)
source

drag-backwardclj

(drag-backward zloc uri db)
source

drag-forwardclj

(drag-forward zloc uri db)
source

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

× close