Earlier quoted context omitted.
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... >
Show HN: Inshellisense – IDE style shell autocomplete
151–160 of 161 posts
Re: Show HN: Inshellisense – IDE style shell autocomplete
#152Earlier quoted context omitted.
rm can do that... set an alias to ask to confirm every time.
rm doesn’t provide an action summary, does it? Last time I used the interactive option, it needed me to press Y once for every file. If you have a list of 200 files you’re probably not even reading by the end.
Microsoft gets lots of praise for maintaining Backwards Compatibility even if it's Bug Compatibility, yet POSIX gets shit for the same.
Re: Show HN: Inshellisense – IDE style shell autocomplete
#153Earlier quoted context omitted.
rm can do that... set an alias to ask to confirm every time.
That's fine on my computer, but if I'm logging into a server I'm not going to do that every time.
Re: Show HN: Inshellisense – IDE style shell autocomplete
#154Earlier quoted context omitted.
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.
Can you be more specific? Been a while since I installed it but I don't remember this part. It's not even listed as an "Authorized GitHub App"
Re: Show HN: Inshellisense – IDE style shell autocomplete
#155Re: Show HN: Inshellisense – IDE style shell autocomplete
#156This 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.
It would thoroughly dispense with the whole argument parsing routine in the first place, which could now be done in a standardised manner; arguments could be defined as strict types with possible values limited to a set, and best of all, they wouldn't just be a dictionary/hash-map of strings to strings—the arguments could actually be named variables with values, in the context of the called utility.
It would certainly be quite a powerful shell, and I'm sure something similar has already been done. I just can't think of an example..... A Powerful shell, running on some Common Language Runtime; I wonder what it could be.
Re: Show HN: Inshellisense – IDE style shell autocomplete
#157Earlier quoted context omitted.
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.
> It is very possible to write sub 100ms procedures in TS, […] I won’t dispute this statement since I currently lack the means to assess inshellisense. Would it be possible for you (or someone with a functional Node + NPM setup) to install inshellisense and share the actual performance figures? You could use a tool like hyperfine ( https://github.com/sharkdp/hyperfine ) for this purpose. As an attempt to test this my…
Re: Show HN: Inshellisense – IDE style shell autocomplete
#158The 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
#159This 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.
> The world would have been a much better place if CLIs themselves defined strict interfaces using standard data structures. Well it's not too late just yet. How about if all CLI exes had an option, say --dump-cli-options, that wrote out a spec of the supported commands/flags/options? Something like e.g. Python's argparse should be able to effortlessly spit out this info (and the same for other similar argument parsi…
Re: Show HN: Inshellisense – IDE style shell autocomplete
#160Too bad…