This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-03-12
Channels
- # beginners (12)
- # clj-kondo (3)
- # clojure-art (5)
- # clojure-gamedev (1)
- # clojure-norway (4)
- # clojure-poland (5)
- # clojurescript (1)
- # cursive (10)
- # emacs (1)
- # fulcro (2)
- # graalvm (3)
- # integrant (3)
- # lsp (4)
- # malli (8)
- # matrix (2)
- # off-topic (61)
- # practicalli (4)
- # releases (8)
- # shadow-cljs (34)
- # sql (6)
- # xtdb (8)
An idea of an LSP/Calva editor action: when full namespace name is used in the code, introduce an alias and use it for all such places (or use an existing one). Example:
(ns a
(:require [clojure.walk])
(clojure.walk/walk identity identity {:a 1})
(clojure.walk/walk identity identity {:b 2})
have an action to convert this to:
(ns a
(:require [clojure.walk :as walk]))
(walk/walk identity identity {:a 1})
(walk/walk identity identity {:b 2})
cc @pez
Could also work if original code had (:require [clojure.walk :as walk])
.I would love the possibility to change the alias used for a namespace, in all requiring namespaces!