cursive icon indicating copy to clipboard operation
cursive copied to clipboard

Intention to replace fully qualified symbol with require/alias

Open hlship opened this issue 7 years ago • 1 comments

I'm surprised this isn't already present (perhaps I'm missing it somehow) but one of the things I constantly miss is an intention that requires a namespace for a fully qualified symbol.

For example, if the cursor is anywhere in the execute-query symbol:

   (com.walmartlabs.lacinia/execute-query schema nil nil)

There should be two intentions:

  1. Replace with alias, which would add a [com.walmartlabs.lacinia :as lacinia] (to the ns :require stanza) and select the lacinia so I can fine-tune the name.
  2. Replace with refer, which would add a [com.walmartlabs.lacinia : refer [execute-query]]

hlship avatar Mar 26 '18 21:03 hlship

This really is something I would use just about every day!

hlship avatar Jul 05 '19 21:07 hlship