Skip to content

Commit

Permalink
Worked in PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Ishida committed Oct 25, 2021
1 parent c8916b2 commit 61dbf93
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .liq
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(ns user)
(ns user
(:require [liq.editor :as editor]))

(editor/insert "\n\nDEVELOP LIQUID\n")
(editor/message "DEVELOPMENT LIQUID")
5 changes: 2 additions & 3 deletions src/liq/commands.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,8 @@

(defn get-namespace
[buf]
(let [content (buffer/line buf 1)]
(re-find #"(?<=\(ns )[-a-z0-9\\.]+" content))) ;)

(->> (buffer/text buf)
(re-find #"(?<=\x28ns )[-a-zA-Z0-9.]+")))

(defn raw-eval-sexp-at-point
[buf]
Expand Down
8 changes: 4 additions & 4 deletions src/liq/modes/clojure_mode.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

(defn get-namespace
[buf]
(->> (buffer/line buf 1)
(->> (buffer/text buf)
(re-find #"(?<=\x28ns )[-a-zA-Z0-9.]+")))

(defn maybe-shorten
Expand Down Expand Up @@ -75,10 +75,10 @@
(if-some [var (var-at-point buf)]
(if-some [file (file-of-var var)]
(goto-var file var)
(editor/message "Cannot find var for this." :view true))
(editor/message "Cannot find source file for this." :view true))
(editor/message "Cannot find var for this."))
(editor/message "Cannot find source file for this."))
(catch Exception e
(editor/message (str e) :view true))))
(editor/message (str e)))))

(defn goto-definition-local
[buf]
Expand Down

0 comments on commit 61dbf93

Please sign in to comment.