nimsuggest icon indicating copy to clipboard operation
nimsuggest copied to clipboard

"import" statement support

Open kosz78 opened this issue 8 years ago • 5 comments

It will be very helpful has import statement support for navigation and code suggestion.

kosz78 avatar Feb 07 '17 02:02 kosz78

Any plans yet on implementing this? 5 years has been a pretty long wait, how high up is this in terms of priority?

WeebNetsu avatar May 08 '22 15:05 WeebNetsu

Still no changes? Is it so hard to implement?

lem0nify avatar Jul 06 '22 04:07 lem0nify

Nobody is working on it. Why don't you work on it?

Araq avatar Jul 06 '22 05:07 Araq

Nobody is working on it. Why don't you work on it?

Hmmm... it will actually be a great way to get better at Nim... I might actually give it a shot if I have the free time in a week or 2, no promises tho

Any tips on where to start? Or any tips in general would be nice

WeebNetsu avatar Jul 06 '22 10:07 WeebNetsu

The main completion logic is in compiler/suggest.nim. However, first there needs a design document written how the heck this feature is supposed to work. We could have a whitelist of terms in some file that nimsuggest reads in like:

replace --> strutils
toUpperAscii --> strutils
execShellCmd --> os

Araq avatar Jul 06 '22 17:07 Araq