Live data from Hacker News

Show HN: Inshellisense – IDE style shell autocomplete

github.com

141–150 of 161 posts

Re: Show HN: Inshellisense – IDE style shell autocomplete

#141
post #65

Earlier quoted context omitted.

Regular expressions and glob(7) expressions look superficially similar, but it is mostly an illusion; they both use * and ? as common metacharacters, but both of those characters mean different things in the two systems. Only the [ and ] characters are used more similarly, but even those have their differences. The two syntaxes only have one common function which functions identically in the two systems, but it is in…

To be pedantic: You're conflating the syntax of regular exprssions, with the (computer science) concept. Glob patterns are a kind of very resticted regular pexressions. Ksh extended the glob syntax so it has the full power of regular expressions in the computer science sense - though without all the extensions of modern regular expressions.

No, globs are not regular expressions.

“Globs do not include syntax for the Kleene star which allows multiple repetitions of the preceding part of the expression; thus they are not considered regular expressions, which can describe the full set of regular languages over any given finite alphabet.”

— https://en.wikipedia.org/w/index.php?title=Glob_(programming...>

Re: Show HN: Inshellisense – IDE style shell autocomplete

#143
post #13

Earlier quoted context omitted.

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.

The readme for this project states that it supports fish, does it replace the prompt?

Yep. I have no idea what "supports fish" means here. From what I can tell you start it and now you're in a totally different shell.

Re: Show HN: Inshellisense – IDE style shell autocomplete

#144
post #100

The implementation has obviously never been run on a Unix/Linux: * shell config is created with CRLF https://github.com/microsoft/inshellisense/issues/8 * changing directory doesn't work https://github.com/microsoft/inshellisense/issues/5

[dead]

Re: Show HN: Inshellisense – IDE style shell autocomplete

#146

Earlier quoted context omitted.

I've done this enough times I use `ls` first, then `rm`

I set up hourly borg backups instead. That resulted in me aliasing rm='rm -rf' without a worry in the world. So far, I made about ten recoveries and have never lost important data.

If you never rm’ed work you just did not captured by hourly backups, well, lucky you.

Re: Show HN: Inshellisense – IDE style shell autocomplete

#149
post #99

Earlier quoted context omitted.

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.

also because you cannot even create an account on Fig nowadays since the signups are currently disabled

Re: Show HN: Inshellisense – IDE style shell autocomplete

#150
post #130

This is cool. What is sad is that it has to rely on a library of completion specs. It shows what kind of stone age foundations we are building on top of. The world would have been a much better place if CLIs themselves defined strict interfaces using standard data structures. Not only for auto completion, also gives much more accurate error checking of bash scripts. Same goes for data piped in and out of command.

Like PowerShell?
Post reply on HN