• FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    4 days ago

    Yeah there’s more stuff that runs in the shell. But pretty much all the things you mentioned would work on a VT100 from the 70s. This is about modernising the terminal itself.

    Hell, Linux terminal emulators don’t even have a “clear screen & scroll-back” keyboard shortcut like Command-K on Mac. There’s no command output history, there are no auto-complete popups, editing commands is still extremely basic (no multiline input for example). The command prompt doesn’t even have the text editing capabilities of Notepad.

    • echindod@programming.dev
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      1 day ago

      Uh… Have you tried Fish? Or even a modern ZSH? Like oh my ZSH?

      I guess I don’t want notepad tools. But I can set my key bindings in ZSH to vi bindings and do things like:

      $ cat <<EOF | sparql --data=some.ttl --query=/dev/stdin
      SELECT ?s ?p ?o
      WHERE {
        ?s ?p ?o . 
      } 
      LIMIT 10
      EOF
      

      And that gives me a real basic text editor. Granted with syntax highlighting on, it thinks I’m trying to do ZSH scripts. But if you needed a ZSH script it would be perfect.

      Second, tab works great for auto complete, it even suggests stuff (as long as you have that enabled, or the command supports it. Some clis do not have support for auto complete, but the shell does)

      Modern shells are pretty fucking awesome.