61
submitted 2 days ago by HayadSont@discuss.online to c/linux@lemmy.ml

The following gif demonstrates folding:

you are viewing a single comment's thread
view the rest of the comments
[-] HayadSont@discuss.online 1 points 17 hours ago* (last edited 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 2 points 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.online 1 points 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?
this post was submitted on 12 Jun 2025
61 points (96.9% liked)

Linux

55273 readers
1299 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS