Live data from Hacker News

Show HN: Inshellisense – IDE style shell autocomplete

github.com

51–60 of 161 posts

Re: Show HN: Inshellisense – IDE style shell autocomplete

#51
post #47
post #26

Earlier quoted context omitted.

I feel like I've trashed millions of files I shouldn't have with `rm` and trying to be clever with regular expressions.

Note: Normal shells use glob(7) expressions, not regular expressions.

You know I googled this immediately after I posted it, and you're absolutely right, but a good chunk of the syntax still kind of looks like regular expressions so I don't think I was too far off!

Re: Show HN: Inshellisense – IDE style shell autocomplete

#52
post #46

Earlier quoted context omitted.

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

Yeah, I generally will use `find . -name " My point was that I don't feel like Unix really stops you from doing destructive scary stuff. It seems like it's perfectly happy to let you break your machine.

Exactly, which is why we check for ourselves instead of expecting it to hold our hand.

Unixy tools tend do what you tell them, nothing more and nothing less. No confirmations, no output if successful, no progress bars, etc.

That's a feature in my mind, but I can see how it is easy to have your day ruined if you're expecting it to ask you again.

Re: Show HN: Inshellisense – IDE style shell autocomplete

#55

Earlier quoted context omitted.

can you expand on this?

I think they meant "using the terminal (1980s)... but like 2020s-style (intellisense)" Y'know, because it's not like tons of people use the terminal on a daily basis in the modern era. /s

Yeah, they claim because it's better but the reality is that they simply cannot build good cross-platform UIs on a budget / on time.

Re: Show HN: Inshellisense – IDE style shell autocomplete

#57
post #46

Earlier quoted context omitted.

Yeah, I generally will use `find . -name " My point was that I don't feel like Unix really stops you from doing destructive scary stuff. It seems like it's perfectly happy to let you break your machine.

Exactly, which is why we check for ourselves instead of expecting it to hold our hand. Unixy tools tend do what you tell them, nothing more and nothing less. No confirmations, no output if successful, no progress bars, etc. That's a feature in my mind, but I can see how it is easy to have your day ruined if you're expecting it to ask you again.

I mostly agree, but sometimes I wish that `rm` would have default to "confirm before destroying", and add a flag like `-y` to not prompt, more or less like how `apt` works on Ubuntu.

Re: Show HN: Inshellisense – IDE style shell autocomplete

#58
post #50

ok. can someone explain to me. I've been using ctrl+r for god knows how long and it solves all my shell completion needs. is inshellisense for average users like me or more advanced users?

I use zsh plugin, autosuggests, and ctrl r, too.

Ctrl r is okay and it is a very convenient if you already typed the command.

Inshellisense seems to help with knowing what subcommands, flags and file paths are available, and it even provides a small docs helper for the flags and commands.

If you didn't try these tools, I'd encourage you take a look, it helped me a lot, especially when I work with tools whose commands I don't know by heart or used a while ago.

Re: Show HN: Inshellisense – IDE style shell autocomplete

#59

1980s... but like 2020s-style. Coming next: auto-complete for punch cards.

Could you please stop posting unsubstantive comments and flamebait? You've unfortunately been doing it repeatedly. It's not what this site is for, and destroys what it is for.

If you wouldn't mind reviewing https://news.ycombinator.com/newsguidelines.html and taking the intended spirit of the site more to heart, we'd be grateful.

Re: Show HN: Inshellisense – IDE style shell autocomplete

#60
post #57

Earlier quoted context omitted.

Exactly, which is why we check for ourselves instead of expecting it to hold our hand. Unixy tools tend do what you tell them, nothing more and nothing less. No confirmations, no output if successful, no progress bars, etc. That's a feature in my mind, but I can see how it is easy to have your day ruined if you're expecting it to ask you again.

I mostly agree, but sometimes I wish that `rm` would have default to "confirm before destroying", and add a flag like `-y` to not prompt, more or less like how `apt` works on Ubuntu.

That's actually a way better experience than no confirmation and confirming each item individually.
Post reply on HN