diff --git a/README.md b/README.md index 59cd936..1fdcf27 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ For discussions, help, tips and support, use #### Quick start - clojure -Sdeps '{:deps {mogenslund/liquid {:mvn/version "2.1.0"}}}' -m liq.core + clojure -Sdeps '{:deps {mogenslund/liquid {:mvn/version "2.1.1"}}}' -m liq.core Or download jar [liq.jar](https://salza.dk/liq.jar) and execute diff --git a/project.clj b/project.clj index 621362c..d0e77b1 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject mogenslund/liquid "2.1.0" ;"2.0.1-SNAPSHOT" +(defproject mogenslund/liquid "2.1.1" ;"2.0.1-SNAPSHOT" :description "This project is an attempt to create a text editor for editing Clojure files and Markdown files. It operates primarily in a terminal, but with dynamics and extensibilities inspired by diff --git a/resources/help/test-forms.txt b/resources/help/test-forms.txt index 6a8adcb..c9edc15 100644 --- a/resources/help/test-forms.txt +++ b/resources/help/test-forms.txt @@ -27,11 +27,14 @@ Evaluate ns form with c p p load dependencies: ============================================================================== Meta data -(meta (((-> @editor/state ::editor/modes :fundamental-mode :normal) "t") "a")) -(meta (((-> @editor/state ::editor/modes :fundamental-mode :normal) "t") "b")) +(-> @editor/state ::editor/modes :fundamental-mode :normal + (get "t") (get "a") meta) +(-> @editor/state ::editor/modes :fundamental-mode :normal + (get "t") (get "b") meta) (-> @editor/state ::editor/commands :testc meta) (-> @editor/state ::editor/commands :testd meta) -(meta (((-> @editor/state ::editor/modes :fundamental-mode :normal) "t") "e")) +(-> @editor/state ::editor/modes :fundamental-mode :normal + (get "t") (get "e") meta) ============================================================================== diff --git a/src/liq/editor.cljc b/src/liq/editor.cljc index 194a0da..fd13374 100644 --- a/src/liq/editor.cljc +++ b/src/liq/editor.cljc @@ -391,6 +391,7 @@ [command] (let [m (or (meta command) {}) n (@state ::repeat-counter)] + ;(when (not= n 0) (swap! state assoc ::repeat-counter 0)) (cond (and (m :buffer) (not (some #{2} (map count (m :arglists))))) #(apply-to-buffer command) (m :buffer) #(apply-to-buffer (fn [buf] (command buf (max 1 n)))) true command)))