Live data from Hacker News

Show HN: Inshellisense – IDE style shell autocomplete

github.com

11–20 of 161 posts

Re: Show HN: Inshellisense – IDE style shell autocomplete

#11
post #4

Earlier quoted context omitted.

Did you check the page? It's MIT-licensed and isn't about GPT or text generation. It's Intellisense, for the shell.

then what makes it better than withfig/autocomplete?

I downloaded fig, then immediately deleted it after it requested way too much access to my github account to even start. So... that's a big thing.

Re: Show HN: Inshellisense – IDE style shell autocomplete

#13

I'd be curious how this compares with Fish, which has autocomplete as well. It's worked fantastic for me so far. Once you have it, it's hard to go back!

This looks much cooler than fish autocompletes imo. But this replaces the nice fish stuff with `>` as a prompt, so I'll stick with fish.

Re: Show HN: Inshellisense – IDE style shell autocomplete

#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.

Re: Show HN: Inshellisense – IDE style shell autocomplete

#15

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…

[deleted]

Re: Show HN: Inshellisense – IDE style shell autocomplete

#17

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.

Re: Show HN: Inshellisense – IDE style shell autocomplete

#18

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…

This was the first thing I noticed, too. Why TypeScript? Is it: a) efficient enough, esp. compared to a Bash/Zsh/PWSH alternative, that spawning a JS interpreter for each autocomplete is no biggie? Is b) TypeScript just much more efficient than I thought? Or c) is TypeScript Microsoft's hammer, and everything looks like a nail?
Post reply on HN