NimPlus icon indicating copy to clipboard operation
NimPlus copied to clipboard

Support `rename symbol`

Open WangWei90 opened this issue 2 years ago • 6 comments

Thanks for your plugin.

In my experience, this one is the most stable one in sublime text.

rename symbol is a frequent operation, you should consider adding it.

Maybe should add those first before rename symbol, convert all symbols to snake_style, convert all symbols to camelStyle.

WangWei90 avatar Nov 07 '23 07:11 WangWei90

Currently, the nimsuggest documentation seems a bit outdated. This is hindering my ability to add new feature while keeping performance decent (the performance is already quite bad).

The --v3 flag to enable the third version of the protocol is not mentioned anywhere and I am not in the mood to reverse engineer everything. I will wait until nimsuggest gets a documentation update to add this feature which I think will happen once incremental compilation is added to Nim as if I understand correctly, the lack of incremental compilation prevented nimsuggest from having decent performance.

vanyle avatar Nov 19 '23 12:11 vanyle

It seems the --v4 of nimsuggest has been added to the compiler recently. I don't know when the next release will come. I should have some time to investigate your code sometime later, keep using this version now.

WangWei90 avatar Nov 28 '23 14:11 WangWei90

I just wonder why the basic tools around nim (nimsuggest, nimpretty) seem to lack polishing.

WangWei90 avatar Nov 28 '23 14:11 WangWei90

Nimsuggest keeps using so much CPU, I'm tempted to write a naive nim parser for fast suggestions (even if templates or macros are not supported)

vanyle avatar Nov 30 '23 12:11 vanyle

Thanks, that will be good enough. It will cover 90% + of my usage. I use nim only for numerical computation, so type and proc is enough for me. I come to nim because I think the static type will make the editor more friendly, and the syntax is similar to python (maybe on surface).

WangWei90 avatar Dec 01 '23 05:12 WangWei90

I write a lot of sublime Python plugins, but I have no clue about anything of a parser.

WangWei90 avatar Dec 01 '23 05:12 WangWei90