this post was submitted on 12 Jun 2025
22 points (100.0% liked)

Linux

11185 readers
68 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS
 

The following gif demonstrates folding:

you are viewing a single comment's thread
view the rest of the comments
[–] tal@lemmy.today 8 points 2 days ago* (last edited 2 days ago) (3 children)

If you only care about folding Markdown, as in your animation, I'm sure that there are Markdown-specific editors that do that.

If you want folding across a wide variety of languages, then I think that your choices are going to be more-limited, since those editors need to be able to parse those languages. Vim and Emacs are kinda the Big Two general-purpose editors, and they're gonna have the widest support.

EDIT: For specifically programming languages, a number of IDEs can probably do it.

Here's Eclipse, for example.

EDIT2:

https://en.wikipedia.org/wiki/Comparison_of_text_editors

This has a "text folding" and "code folding" column.

[–] ruud@piefed.world 1 points 1 day ago

This is a very cool list, I will try some. The feature I am looking for is not included in the overview so I'll have to just try. Unless someone can suggest which app has this feature: I want to be able to click/double click a quote to select the text between the quotes. This to easily replace text between quotes. On MacOS I used to use BBEdit which has this feature. But now I'm on linux so looking for a replacement. (I do know the ci' vi-command but am looking for a GUI editor). I use Fedora KDE Plasma

[–] HayadSont@discuss.online 5 points 2 days ago (1 children)

Apologies for not being clear, and thank you for probing me to answer the right questions:

  • I'm not married to Markdown or any other markup language, but it is true that Markdown makes up my primary use case.
  • Though, with emacs installed, I've also dabbled into org-mode. And while I've been liking it so far, I understand that it's mostly an emacs thing.
  • I suppose my current needs would mostly be fulfilled with Markdown + LaTeX.

Here’s Eclipse, for example.

Thank you for mentioning Eclipse! Will look into it!

https://en.wikipedia.org/wiki/Comparison_of_text_editors

This has a "text folding" and "code folding" column.

Wow, that's pretty neat! Very much appreciated!

[–] ShadyGrove@lemmy.world 2 points 1 day ago (1 children)

You can pretty easily export Org mode files to markdown (and LaTeX)! There may be a setting you need to turn on (I forget and I'm not at my PC), but it works well and is very easy to use.

Also, I haven't really done it, but from what I understand you can also setup emacs to be a really good LaTeX editor.

[–] HayadSont@discuss.online 1 points 9 hours ago

You can pretty easily export Org mode files to markdown (and LaTeX)!

Oh wow, thank you for offering me this learning experience!

There may be a setting you need to turn on (I forget and I’m not at my PC), but it works well and is very easy to use.

I'm on Doom Emacs, so perhaps this is enabled by default. But, at least for me, it was as easy as pressing SPC m e. This opens up the export menu. From there; one may select LaTeX, Markdown or any of the many other options to export to. The fuzzy search from M-x also allowed me to find it by typing out the functionality I was seeking.

Granted, I am not entirely content on how Emacs handled the export to Markdown. But I wouldn't bat an eye if Emacs enables me to configure it exactly as I'd want to.

Also, I haven’t really done it, but from what I understand you can also setup emacs to be a really good LaTeX editor.

Again, I wouldn't be surprised. It seems Emacs lends itself extremely well to whatever you throw at it 😂. No doubt; this is dndgame-material for sure*.

[–] bluemoon@piefed.social 1 points 2 days ago

thanks! looking into JED now