Live data from Hacker News

Show HN: Inshellisense – IDE style shell autocomplete

github.com

91–100 of 161 posts

Re: Show HN: Inshellisense – IDE style shell autocomplete

#91
post #14

Great idea! Also terrifying :) Given how often I accidentally commit the wrong text in vscode, I shudder to think of the damage I could do with this on my shell, hah! What safety measures are there/could there be?

A simple approach might be that if the resulting exit code is not 0 it won't be used to complete in the future.

That'd have the problem of tools like grep returning nothing, having an exit code of 1, but being a perfectly valid thing to suggest in the future.

Re: Show HN: Inshellisense – IDE style shell autocomplete

#92

I wish they had written inShellisense in a more efficient programming language than TypeScript. I recall disabling bash_completion.sh on my computer some time ago due to its negative impact on the startup speed of each iTerm2 session and the delay it introduced when using the key for autocompletion. Before I disabled this feature, I consistently experienced delays of over 300ms between triggering autocomplete and rec…

Don’t bring TypeScript into this. It is very possible to write sub 100ms procedures in TS, but an inelegant algorithm will be slow in any language, eventually.

I disagree. Using the same algorithms, a language like Typescript or Javascript will inevitably be slower than ones that are “closer” to the CPU.

Re: Show HN: Inshellisense – IDE style shell autocomplete

#93
post #66

Beyond the not-using-typescript for CLI tooling difference, it would be interesting for a comparison against carapace-bin, another shell agnostic completer: https://github.com/rsteube/carapace-bin (written in Go, since this thread includes other discussion about the choice of typescript for Inshellisense). From a quick peek, carapace-bin supports more shells (including and powering the one I use, nushell).

Knowing it is go I like it better already. Anything that does not require a runtime gets a head start in my book.

Re: Show HN: Inshellisense – IDE style shell autocomplete

#94
post #90

Co-founder of Fig here! Just want to say that I think this is awesome. It’s really cool to see alternative implementations of IDE-style autocomplete in the terminal. Nice work!

Btw if you don't mind me asking, how will Fig make money? Will it be integrations with stuff like AWS, GCP, etc.? Nice work on Fig!

IIRC They were acquired by Amazon. They have a paid offering for shared team environments.

Re: Show HN: Inshellisense – IDE style shell autocomplete

#95

Earlier quoted context omitted.

100ms is a long time to wait for each completion suggestion.

Jakob Nielsen says that 0.1 second is about the limit for having the user feel that the system is reacting instantaneously, meaning that no special feedback is necessary except to display the result... https://www.nngroup.com/articles/response-times-3-important-...

Depends on what they are waiting for. If there were 100ms of keystroke to paint latency with typing you'd def notice it.

Re: Show HN: Inshellisense – IDE style shell autocomplete

#97
post #66

Beyond the not-using-typescript for CLI tooling difference, it would be interesting for a comparison against carapace-bin, another shell agnostic completer: https://github.com/rsteube/carapace-bin (written in Go, since this thread includes other discussion about the choice of typescript for Inshellisense). From a quick peek, carapace-bin supports more shells (including and powering the one I use, nushell).

[deleted]

Re: Show HN: Inshellisense – IDE style shell autocomplete

#99

Co-founder of Fig here! Just want to say that I think this is awesome. It’s really cool to see alternative implementations of IDE-style autocomplete in the terminal. Nice work!

I'm pretty sure this is just a wrapper for Fig.

A wrapper for Fig that doesn’t require me to create an account in order to use my terminal. I’d say it’s a good thing.
Post reply on HN