nixd icon indicating copy to clipboard operation
nixd copied to clipboard

autocomplete for builtins

Open adrian-gierakowski opened this issue 1 year ago • 7 comments

Is your feature request related to a problem? Please describe.

Would be great to get autocomplete when typing builtins. like provided by nil

adrian-gierakowski avatar May 23 '24 14:05 adrian-gierakowski

Would be great to get autocomplete when typing builtins

I would like to design a system that incrementally evaluate your code on-the-fly, lazily. Not only for builtins. I think in this way nixd builtins documentation will come from real nix evaluator, not be hard-coded in the source code (like nil). This is in design review, do you have some suggestions?

inclyc avatar May 23 '24 14:05 inclyc

@inclyc this sounds great! However I guess that will take longer to implement. In the meantime it would be great to have hardcoded completions to keep users from going back to nil 😄

adrian-gierakowski avatar May 24 '24 13:05 adrian-gierakowski

In the meantime it would be great to have hardcoded completions to keep users from going back to nil

I think you can expect a quick implementation as builtins will be relatively trivial, not hardcoded but a trivial version of the large-scale eval system.

inclyc avatar May 25 '24 14:05 inclyc

Ping for this issue. Currently even lib.* completion is landed, but NOT builtins?

inclyc avatar Aug 19 '24 14:08 inclyc

Seems like perfect being the enemy of the good kind of situation.

adrian-gierakowski avatar Sep 03 '24 20:09 adrian-gierakowski

Ping again, I almost forget this...

inclyc avatar Nov 19 '24 07:11 inclyc