cursive-ide / cursive

Cursive: The IDE for beautiful Clojure code
580 stars 7 forks source link

"Show Usages" by cmd+click doesn't work on keywords #2632

Open xiexed opened 2 years ago

xiexed commented 2 years ago

Same to #2457 and #2233 but is reproduced for the latest cursive 1.12.1-2021.3

IntelliJ IDEA 2021.3.1 (Ultimate Edition)
Build #IU-213.6461.79, built on December 28, 2021
Licensed to JetBrains Team / Nicolay Mitropolsky
You have a perpetual fallback license for this version.
Subscription is active until December 31, 2024.
Runtime version: 11.0.13+7-b1751.21 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.14.6
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 16
Registry:
    ide.cancellation.check.threshold=6000
    ide.mac.file.chooser.native=false
    ide.unused.symbol.calculation.maxFilesSizeToSearchUsagesIn=20971520
    ide.mac.transparentTitleBarAppearance=false
    ide.slow.operations.assertion=false
    ide.cancellation.check.trace.all=true
    twooh.userid=5472b00a-1a81-4686-8528-f8706abd9f9f
    scala.erase.compiler.process.jdk.once=false

Non-Bundled Plugins:
    jetbrains.team.auth (213.5343)
    ir.msdehghan.plugins.ansible (0.92)
    org.jetbrains.kotlin (213-1.6.10-release-923-IJ5744.223)
    com.jetbrains.idea.safepush (213.5343)
    Jetbrains TeamCity Plugin (2022.2.107166)
    com.jetbrains.intellij.api.watcher (6.56.0)
    com.cursiveclojure.cursive (1.12.1-2021.3)
    org.intellij.scala (2021.3.17)
    Pythonid (213.6461.79)
    com.jetbrains.recommenders.twooh (0.0.54-super-early-bird)

Kotlin: 213-1.6.10-release-923-IJ5744.223
adam-krieg commented 1 year ago

If I ctrl-click on a namespaced keyword it seems to show usages, although it seems to do a full scan of all the files in the project, which makes it not very usable.

image

I would rather have ctrl-click take me to the definition of the keyword, which is useful in the case of spec rather than show me the usages of the keyword.