shilangyu / scoop-search

Fast `scoop search` drop-in replacement 🚀
MIT License
277 stars 10 forks source link

Is it possible to use this with cmd.exe? #41

Closed eggbean closed 8 months ago

eggbean commented 8 months ago

I prefer to use cmd.exe interactively (I still use PowerShell for scripts), as I just find it's very nice with clink.

Is there any way I can use scoop-search with cmd?

shilangyu commented 8 months ago

Have you tried using it as is? I don't think scoop-search makes any assumptions about the underlying shell, its just a native binary.

Unless you are referring to the hook, which replaces scoop search (rather than using it with scoop-search). I have zero experience with cmd, so if you'd know how to hack such a hook together then I would be happy to include it. Here is how it is done for powershell (its just an ugly hack): https://github.com/shilangyu/scoop-search/blob/55a7861c4fef502daf5a0b2857872aa215cb8cc3/args.go#L25

eggbean commented 8 months ago

Ah, if that's what it does, it's pretty easy. I have made a PR for cmd.exe support. https://github.com/shilangyu/scoop-search/pull/42

Now that I am finally using it, the speed increase is incredible and it solves probably the biggest issue that scoop has. It should be an official part of scoop.