Skip to content

Commit 1056e50

Browse files
mkmhuebert
authored andcommitted
cm6: rename to nextjournal/clojure-mode
* rename nextjournal/clojure-mode * Rename more occurrances and update lazo config * Update title Co-authored-by: Matthew Huebert <[email protected]>
1 parent 4821704 commit 1056e50

21 files changed

+81
-81
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# codemirror-clojure
1+
# clojure-mode for CodeMirror 6
22

3-
Live demo: https://nextjournal.github.io/codemirror.next-clojure/
3+
Live demo: https://nextjournal.github.io/clojure-mode/
44

55
## Dev Setup
66

@@ -28,4 +28,4 @@ Live demo: https://nextjournal.github.io/codemirror.next-clojure/
2828
- [x] odd error recovery behaviour - a `#` token can't be deleted
2929
- [x] deletion
3030
- [x] Copy/paste (only first line copies to clipboard?)
31-
- [x] Ctrl-A => move to beginning of line (first non-whitespace char)
31+
- [x] Ctrl-A => move to beginning of line (first non-whitespace char)

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h1>Clojure/Script mode for <a href="https://codemirror.net/6/">CodeMirror 6</a>
2222
Built by <a href="https://nextjournal.com">Nextjournal</a>.
2323
</p>
2424
<div class="ctas">
25-
<a href="https://github.com/nextjournal/codemirror.next-clojure" class="cta">
25+
<a href="https://github.com/nextjournal/clojure-mode" class="cta">
2626
 🐙 Clone on GitHub
2727
</a>
2828
<a href="https://nextjournal.com/try/clojure?cm6=1" class="cta">

shadow-cljs.edn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
:target :browser
77
:output-dir "public/js"
88
:asset-path "js"
9-
:modules {:main {:init-fn codemirror-next.clojure.demo/render}}}
9+
:modules {:main {:init-fn nextjournal.clojure-mode.demo/render}}}
1010
:test {:compiler-options {:output-feature-set :es8}
1111
:target :browser-test
1212
:test-dir "public/test"

src/demo/codemirror_next/clojure/demo.cljs renamed to src/demo/nextjournal/clojure_mode/demo.cljs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(ns codemirror-next.clojure.demo
1+
(ns nextjournal.clojure-mode.demo
22
(:require ["@codemirror/next/closebrackets" :refer [closeBrackets]]
33
["@codemirror/next/fold" :as fold]
44
["@codemirror/next/gutter" :refer [lineNumbers]]
@@ -11,16 +11,16 @@
1111
["lezer-tree" :as lz-tree]
1212
[applied-science.js-interop :as j]
1313
[clojure.string :as str]
14-
[codemirror-next.clojure :as cm-clj]
15-
[codemirror-next.clojure.demo.sci :as sci]
16-
[codemirror-next.clojure.extensions.close-brackets :as close-brackets]
17-
[codemirror-next.clojure.extensions.formatting :as format]
18-
[codemirror-next.clojure.extensions.selection-history :as sel-history]
19-
[codemirror-next.clojure.keymap :as keymap]
20-
[codemirror-next.clojure.live-grammar :as live-grammar]
21-
[codemirror-next.clojure.node :as n]
22-
[codemirror-next.clojure.selections :as sel]
23-
[codemirror-next.test-utils :as test-utils]
14+
[nextjournal.clojure-mode :as cm-clj]
15+
[nextjournal.clojure-mode.demo.sci :as sci]
16+
[nextjournal.clojure-mode.extensions.close-brackets :as close-brackets]
17+
[nextjournal.clojure-mode.extensions.formatting :as format]
18+
[nextjournal.clojure-mode.extensions.selection-history :as sel-history]
19+
[nextjournal.clojure-mode.keymap :as keymap]
20+
[nextjournal.clojure-mode.live-grammar :as live-grammar]
21+
[nextjournal.clojure-mode.node :as n]
22+
[nextjournal.clojure-mode.selections :as sel]
23+
[nextjournal.clojure-mode.test-utils :as test-utils]
2424
[reagent.core :as r]
2525
[reagent.dom :as rdom]
2626
[shadow.resource :as rc]))

src/demo/codemirror_next/clojure/demo/sci.cljs renamed to src/demo/nextjournal/clojure_mode/demo/sci.cljs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
(ns codemirror-next.clojure.demo.sci
1+
(ns nextjournal.clojure-mode.demo.sci
22
(:require ["@codemirror/next/view" :as view]
33
[applied-science.js-interop :as j]
44
[sci.core :as sci]
5-
[codemirror-next.clojure.node :as n]
6-
[codemirror-next.clojure.extensions.eval-region :as eval-region]
7-
[codemirror-next.clojure.util :as u]))
5+
[nextjournal.clojure-mode.node :as n]
6+
[nextjournal.clojure-mode.extensions.eval-region :as eval-region]
7+
[nextjournal.clojure-mode.util :as u]))
88

99
(defonce context (sci/init {}))
1010

src/main/codemirror_next/clojure.cljs renamed to src/main/nextjournal/clojure_mode.cljs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(ns codemirror-next.clojure
1+
(ns nextjournal.clojure-mode
22
(:require ["@codemirror/next/highlight" :as highlight :refer [tags]]
33
["@codemirror/next/state" :refer [EditorState]]
44
["@codemirror/next/language" :as language]
@@ -8,17 +8,17 @@
88
["lezer-tree" :as lz-tree]
99
[applied-science.js-interop :as j]
1010
[clojure.string :as str]
11-
[codemirror-next.clojure.extensions.close-brackets :as close-brackets]
12-
[codemirror-next.clojure.extensions.match-brackets :as match-brackets]
13-
[codemirror-next.clojure.extensions.formatting :as format]
14-
[codemirror-next.clojure.extensions.selection-history :as sel-history]
15-
[codemirror-next.clojure.extensions.eval-region :as eval-region]
16-
[codemirror-next.clojure.keymap :as keymap]
17-
[codemirror-next.clojure.node :as n]
18-
[codemirror-next.clojure.selections :as sel]
19-
[codemirror-next.test-utils :as test-utils]
11+
[nextjournal.clojure-mode.extensions.close-brackets :as close-brackets]
12+
[nextjournal.clojure-mode.extensions.match-brackets :as match-brackets]
13+
[nextjournal.clojure-mode.extensions.formatting :as format]
14+
[nextjournal.clojure-mode.extensions.selection-history :as sel-history]
15+
[nextjournal.clojure-mode.extensions.eval-region :as eval-region]
16+
[nextjournal.clojure-mode.keymap :as keymap]
17+
[nextjournal.clojure-mode.node :as n]
18+
[nextjournal.clojure-mode.selections :as sel]
19+
[nextjournal.clojure-mode.test-utils :as test-utils]
2020
[shadow.resource :as rc]
21-
[codemirror-next.clojure.util :as u]))
21+
[nextjournal.clojure-mode.util :as u]))
2222

2323
(def fold-node-props
2424
(let [coll-span (fn [^js tree] #js{:from (inc (n/start tree))

src/main/codemirror_next/clojure/chars.cljs renamed to src/main/nextjournal/clojure_mode/chars.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(ns codemirror-next.clojure.chars
1+
(ns nextjournal.clojure-mode.chars
22
(:require ["@codemirror/next/text" :as text]))
33

44
(defn pair-lookup [char-pairs ^string char]

src/main/codemirror_next/clojure/commands.cljs renamed to src/main/nextjournal/clojure_mode/commands.cljs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
(ns codemirror-next.clojure.commands
1+
(ns nextjournal.clojure-mode.commands
22
(:require ["@codemirror/next/commands" :as commands :refer [defaultKeymap]]
33
["@codemirror/next/state" :refer [EditorState IndentContext]]
44
[applied-science.js-interop :as j]
5-
[codemirror-next.clojure.util :as u]
6-
[codemirror-next.clojure.selections :as sel]
7-
[codemirror-next.clojure.node :as n]
8-
[codemirror-next.clojure.extensions.formatting :as format]
9-
[codemirror-next.clojure.extensions.selection-history :as sel-history]))
5+
[nextjournal.clojure-mode.util :as u]
6+
[nextjournal.clojure-mode.selections :as sel]
7+
[nextjournal.clojure-mode.node :as n]
8+
[nextjournal.clojure-mode.extensions.formatting :as format]
9+
[nextjournal.clojure-mode.extensions.selection-history :as sel-history]))
1010

1111
(defn view-command [f]
1212
(j/fn [^:js {:keys [^js state dispatch]}]

src/main/codemirror_next/clojure/extensions/close_brackets.cljs renamed to src/main/nextjournal/clojure_mode/extensions/close_brackets.cljs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(ns codemirror-next.clojure.extensions.close-brackets
1+
(ns nextjournal.clojure-mode.extensions.close-brackets
22
(:require ["w3c-keyname" :refer [keyName]]
33
["@codemirror/next/view" :as view]
44
["@codemirror/next/state" :refer [EditorState
@@ -8,12 +8,12 @@
88
Extension]]
99
["@codemirror/next/text" :as text :refer [Text]]
1010
[applied-science.js-interop :as j]
11-
[codemirror-next.clojure.selections :as sel]
12-
[codemirror-next.clojure.node :as n]
13-
[codemirror-next.clojure.chars :as chars]
14-
[codemirror-next.clojure.util :as u :refer [from-to]]
15-
[codemirror-next.test-utils :as test-utils]
16-
[codemirror-next.clojure.commands :as commands]
11+
[nextjournal.clojure-mode.selections :as sel]
12+
[nextjournal.clojure-mode.node :as n]
13+
[nextjournal.clojure-mode.chars :as chars]
14+
[nextjournal.clojure-mode.util :as u :refer [from-to]]
15+
[nextjournal.clojure-mode.test-utils :as test-utils]
16+
[nextjournal.clojure-mode.commands :as commands]
1717
[clojure.string :as str]))
1818

1919
(defn in-string? [state pos]

0 commit comments

Comments
 (0)