Fork me on GitHub
#cider
<
2018-08-24
>
vemv12:08:57

Given a symbol at point, is there a direct way to get its source as a string? I'm aware of cider-find-var (which works great), doesn't seem to help unfortunately

vemv13:08:12

not a 'direct' way, but I can get the file/line info as per cider-find-var, and read the file and sexpr myself. wasn't hard!

bozhidar19:08:03

There used to be a command that returned the source as string, but we removed it at some point, as it seemed cider-find-var was what most people actually needed.

vemv09:08:46

Seems fine, feature bloat is a burden. But I was missing something like cider-find-file but that only does string parsing - no side-effects. Probably cider-find-file should be split, so one can use those primitives independently.