Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Jun 10, 2024
1 parent 4e5f8dd commit 71553ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src-shared/nextjournal/clojure_mode/commands.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@
1 (some-> % n/with-prefix n/right n/end-edge?)
-1 (some-> % n/with-prefix n/left n/start-edge?)))))]
(let [str? (n/string? parent)]
(prn :parent (n/string state parent) :str str?)
(when-let [target (case direction 1 (first (remove n/line-comment? (n/rights (n/with-prefix parent))))
-1 (first (remove n/line-comment? (n/lefts (n/with-prefix parent)))))]
{:cursor/mapped from
Expand All @@ -164,10 +163,11 @@
(-> edge
n/from-to
(cond->
true #_(not str?) (j/assoc! :insert " ")))])
(not str?) (j/assoc! :insert " ")))])
-1
(let [^string edge (n/left-edge-with-prefix state parent)
start (n/start (n/with-prefix parent))]
(prn :parent (n/string state parent) :str str?)
[(cond-> {:from start
:to (+ start (count edge))
#_#_:insert " "}
Expand Down

0 comments on commit 71553ee

Please sign in to comment.