sharper icon indicating copy to clipboard operation
sharper copied to clipboard

Transient interface for `dotnet new`

Open Lillenne opened this issue 1 year ago • 4 comments

I love sharper and I think it makes the .NET dev experience in Emacs much better, but one of the main hurdles in moving my .NET development to Emacs is the lack of IDE tooling for making new C# files or projects. I made a separate project that dynamically dispatches dotnet new commands and parses the help functions and makes a Transient interface to dispatch any installed dotnet new template. It isn't fully battle tested, but seems to work for all the templates that I use day-to-day. If you / others are interested in this feature, I'd be interested in potentially merging it into sharper.

Image

Lillenne avatar Feb 16 '25 23:02 Lillenne

I am really glad you find sharper useful :)

I was very tempted to try a "parse the output" approach for this package, but decided against because of a less than ideal experience in a previous package (parsing AWS CLI output).
But it's a trade off, and parsing the output can work as well as hand crafted menus.

I am open to any of the following:

  1. Making dotnet-new part of sharper
  2. Transfer ownership of sharper to you (I am not using C# these days, still do my best to take care of new issues)
  3. Creating a new "combined" project that includes both sharper and dotnet-new as single package.

We could also create a new organization and ownership in GH for "Emacs dotnet" (yes, I am bad at naming 😄) so the package (or packages) isn't tied to either of us in particular.
These days I am using SourceHut over GitHub, but I don't mind using either.

Thank you so much for sharing dotnet-new!

sebasmonia avatar Feb 18 '25 02:02 sebasmonia

Hi again, sorry for the late response!

Unfortunately, I'm not sure that I have the bandwidth right now to guarantee that I'll be able to properly maintain the project on my own (evidenced by my late response, but this Feb-March is an uncharacteristically busy time for me), although I'd be happy to help out as time allows. I think that it makes the most sense to merge dotnet-new into Sharper for now and I will help to maintain the project. I would be open to making a GitHub organization with an ownership structure not tied to individuals, but I'm not sure that is necessary at this point. Regarding hosting, I have only used GitHub (it's what I use for work, too) but I'm always open to trying new tools! That said, I think it is probably easier for people to find the projects and contribute on GitHub given its popularity.

When I find some time, I will update dotnet-new's naming to match sharper and see how it best fits into the menus (also might just stay as a separate command for now).

Thank you!

Lillenne avatar Feb 28 '25 01:02 Lillenne

Hello, speaking of late responses :)

When I find some time, I will update dotnet-new's naming to match sharper and see how it best fits into the menus (also might just stay as a separate command for now).

Ready to review your PR when the time comes.

Also let's stay in GitHub and leave an organization as something to consider in the future.

Thank you!

sebasmonia avatar Apr 20 '25 18:04 sebasmonia

Hi again! Just commenting to let you know that this hasn't fallen off my radar... this year has turned out to be a lot busier than I thought it was going to be! I recently pushed up some improvements/fixes to dotnet-new and still have it on my radar to update the naming and pull it into sharper. Hopefully soon!

Lillenne avatar Jul 03 '25 05:07 Lillenne