A Spreadsheet and a Debugger Walk into a Shell
(arcan-fe.com)224 points by JNRowe 4 days ago
224 points by JNRowe 4 days ago
While not a shell built-in, the 'sc' command provides a terminal spreadsheet:
sc: the Venerable Spreadsheet Calculator
Oof this comment makes me feel old. My first encounters with spreadsheets were in text mode dos.
A spreadsheet it just a view broken up in to rectangle cells and that compares favorably to the JavaScript smalltalk variants I’ve seen online such as this one https://amber-lang.net/
The output when it’s not an error message can redirected in to another function and so on and so forth until it’s not entirely programming and not entirely a prebuilt interface. A smalltalk VM is like an operating system as a repl as long as you’re skilled enough to not keep hitting error messages.
this looks really great
I need to follow this more closely. I tried installing cat9 (from them as well) and it didn't work out on nixos. Might take another stab at it
i am surprised emacs doesn't have this already emacs seems more like the right place for this
that being said, i think the spreadsheet being a separate command line tool make more sense, i dont understand why integrate it into the shell
nushell or pwsh, might make use of a spreadsheet view, since they pass or stream objects not text , but still the spreadsheet should be a separate program
nushell has `open file.xlsx | explore --peek` which can be used to interactively select a cell contents from an Excel spreadsheet and pipe it into another command. It would be cool if there were similar tools for editing table data.
See also the `inspect` command... I feel like they could add a lot of neat Smalltalk-like interactivity (Bret Victor-level observability)
in pwsh you can
Out-GridView
which gives you a full graphical view, you cannot edit data, and its usually the last step in a pipelinebetween nushell and pwsh, i think pwsh is the way to go, only drawback it required dotnet installed, nushell being more standalone beat it on this
well, its a convention , it makes it easier to guess the command name, and considering in pwsh you have hundreds of commands, finding the command can be a challenge
pwsh have autocomplete and command to help you find other commands
pwsh is actually more unixy than unix, it have more specialized commands in linux you have bigger command, commands that do at lot, and take a lot to learn
pwsh is a great idea, implemented very nicely, i dont see any major flaws , except poor adoption on linux .. and of course dotnet dependency
a native pwsh would be amazing
So cool! I'd never thought about a spreadsheet interface for the shell, but it makes total sense. The other demos (a little more than halfway down the page) are amazing too:
https://arcan-fe.com/2022/04/02/the-day-of-a-new-command-lin...