Skip to content

Re-add support for keywords #288

Closed
@snoe

Description

@snoe

We lost this functionality with the kondo analysis, kondo will now support it (see commented out analysis/README.md: clj-kondo/clj-kondo#1129)

We should be able to bring back the old behavior

  • go to def if a keyword has a :def on it
  • rename - only rename the keyword if the cursor is on a raw keyword (i.e. not also a local destructuring binding)
    • (let [{:keys [:f|oo]} stuff] foo) should only rename the local, not the keyword.
    • rename the alias of an aliased keyword (::alias/kw) if you rename with the cursor on the alias in the require. Renaming with a cursor on an aliased keyword would just be changing the kw name. (This should follow the behaviour when renaming vars)
  • find usages, completion, hover, etc

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions