Fork me on GitHub
#lsp
<
2021-09-26
>
borkdude15:09:21

@ericdallo Wild idea: show next to ns form how many time each ns is used within the file?

borkdude15:09:52

or in total in the project, not sure :)

borkdude15:09:04

total in the project could be shown next to the ns name maybe

ericdallo15:09:04

you mean something like:

(ns foo  Used on 5%
 ....)

...

ericdallo15:09:46

or just the references count?

borkdude15:09:51

reference count

borkdude15:09:24

(ns foo - 1 usages (:require [clojure.string] 30 usages ...

borkdude15:09:42

30 usages (15 in this file)

borkdude15:09:45

for example

ericdallo15:09:19

> 30 usages (15 in this file) All the 30 would already be in this file, wouldn't ?

borkdude15:09:42

30 could be the project total

borkdude15:09:58

(source paths only)

ericdallo15:09:51

hum, maybe too many info, that could be another opt flag, I think showing the references of this file is more convenient, wdyt?

borkdude15:09:23

probably yes

ericdallo15:09:51

nice, I think we can start with ns references count, and then add a require references count as well

borkdude15:09:28

maybe just show in how many other nss it's used?

borkdude15:09:35

and not how many refs? I don't know

ericdallo15:09:11

yeah, makes sense

ericdallo15:09:19

(ns foo - Used 2 times
  (:require [bar])) - Used in 4 namespaces

borkdude15:09:30

bar would show how many times you would use it in this namespace

borkdude15:09:45

but perhaps your suggestion would also make sense

ericdallo15:09:50

oh, yeah, so many ideas hahaha

borkdude15:09:21

I think the foo used 2 times is pretty clear

borkdude15:09:29

the rest can wait for more hammock time ;)

ericdallo15:09:42

should the ns lens should show the same count when you find-references on that ns?

borkdude15:09:54

yeah I think so

borkdude15:09:00

consistency