The following gif demonstrates folding:

  • HayadSont@discuss.onlineOP
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    17 hours ago

    If you’re not trolling, then I’d like to offer my apologies for assuming you were.

    Perhaps I shouldn’t feed the trolls, but I couldn’t resist: does ed even support the functionality demonstrated in the gif above? I’m asking this from a genuine position of ignorance.

    • the_wiz@feddit.org
      link
      fedilink
      arrow-up
      2
      ·
      11 hours ago

      Honestly: Yeah, i was trolling (kind of), but:

      I DO like to code via ED because the design and workflow of ED (or even better: Sam) makes folding unnecessary because you only put on the screen what is needed right at that moment. Want to see two functions 1000 lines apart? No problem, just print them right below each other on the screen.

      • HayadSont@discuss.onlineOP
        link
        fedilink
        arrow-up
        1
        ·
        8 hours ago

        Interesting insights. Much appreciated!

        I DO like to code via ED because the design and workflow of ED (or even better: Sam) makes folding unnecessary because you only put on the screen what is needed right at that moment. Want to see two functions 1000 lines apart? No problem, just print them right below each other on the screen.

        Hmm…, I suppose this is a workflow I’d have to try out for myself before drawing any conclusions. Though, I got some questions:

        • Why ed? Isn’t any other TUI/CLI text editor fit for the job? Apologies if I sound obtuse/obnoxious*. I’m probably just very ignorant of how ed fares compared to the others.
        • Is there any currently maintained version of Sam? A quick search suggests that everyone packaged/grabbed it from this github repo. But, unfortunately, that one has been archived since earlier this year. I suppose I could look into the many forks it has, but I’d rather be picky 😅. Got any pointers for me?