Re:Show HN: Inshellisense – IDE style shell autocomplete
by tombert on Monday November 06, 2023 @03:50PM
(#38168802)
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
by doubled112 on Monday November 06, 2023 @03:58PM
(#38168904)
That's actually a way better experience than no confirmation and confirming each item individually.
Re:Show HN: Inshellisense – IDE style shell autocomplete
by LtWorf on Monday November 06, 2023 @04:26PM
(#38169255)
rm can do that... set an alias to ask to confirm every time.
Re:Show HN: Inshellisense – IDE style shell autocomplete
by tombert on Monday November 06, 2023 @04:33PM
(#38169330)
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
by neuromanser on Tuesday November 07, 2023 @01:41PM
(#38180961)
As much as we all wish it wouldn't be so, TANSTAAFL. What is your suggestion and how does it maintain compatibility with the existing body of code?
Re:Show HN: Inshellisense – IDE style shell autocomplete
by doubled112 on Monday November 06, 2023 @05:03PM
(#38169693)
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.
Re:Show HN: Inshellisense – IDE style shell autocomplete
by neuromanser on Tuesday November 07, 2023 @01:20PM
(#38180673)
I wholeheartedly agree that rm -i is a terrible UI. However: what presentation of 200 paths would you not glaze over?
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
by doubled112 on Wednesday November 08, 2023 @11:58PM
(#38201341)
The presentation suggested in this very thread would work better for me. I generally pay pretty close attention to package apt/pacman/dnf output because it is all right there in front of me.
Perhaps ironically, if those programs asked me for each change I would just hold Y until it went away. Needing confirmation of each item is why I glaze over.
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.