3

The following gif demonstrates folding:

all 23 comments
sorted by: hot top controversial new old
[-] HayadSont@discuss.online 1 points 3 weeks ago

UPDATE: For posterity's sake, I'd like to reflect on the last couple of days.

First of all, I'd like to thank everyone that has contributed to the discussion! Were it not for your recommendations/suggestions/endorsements, then I might not have found a valid alternative.

Secondly, I've taken every single recommendation pretty seriously. As such, I've either installed them to see for myself if I was able to reproduce the functionality found in the gif found above. Or, didn't install them to begin with due to the suggested installation methods not passing through my (rather) strict policy on software. Regardless, in the end, I've only found two pieces of software that satisfied the bill: Kate and KDevelop.

KDevelop is pretty cool, but is more of an IDE rather than a text editor. As such, I've landed on Kate.

But, perhaps more than anything, I've come to really appreciate Emacs (and Neovim). And, perhaps more than ever, I feel ready to take them on 💪. Wish me luck 😊.

[-] bjoern_tantau@swg-empire.de 1 points 1 month ago

Scite can do it.

Notepad++ probably too but I don't know if it's available on Linux. I just remember it being the text editor to use on Windows.

[-] HayadSont@discuss.online 2 points 1 month ago

Scite can do it.

Noted. Thank you!

Notepad++ probably too but I don’t know if it’s available on Linux.

FWIW, someone else pointed out the existence of Notepad Next. Which IIUC is pretty much an open-source and cross-platform reimplementation.

I just remember it being the text editor to use on Windows.

Frankly, I never used it when I was using Windows 😅. I suppose I was (somehow) conditioned at the time to use whatever M$ Office offered instead 😜.

[-] mangaskahn@lemmy.world 1 points 1 month ago

Notepadqq is available on Linux and is a pretty good replacement

[-] HayadSont@discuss.online 1 points 1 month ago

Thank you for mentioning this! Do you happen to know what distinguishes this from Notepad Next?

[-] rikudou@lemmings.world 1 points 1 month ago

JetBrains IDEs, though that might be a little heavy for some light editing. Not sure if their Fleet editor is electron based, but my guess is it's not. That one should be more lightweight.

[-] HayadSont@discuss.online 1 points 1 month ago

JetBrains IDEs

I have used them in the past. They're definitely pretty cool and do their job well. Unfortunately, unless I'm wrong, most of their offerings^[Don't quote me on this, but I believe their open source options are limited to the community editions of IntelliJ IDEA and PyCharm. Which isn't too bad as both of them should support a plethora of languages (including Markdown).] are not open source. I believe this also applies to Fleet.

My apologies for not making it clear in the post, but I do prefer open source whenever I can afford it.

Finally, there's a lot not to like about electron, but I feel like JetBrains' use of JVMs isn't a lot better.

Regardless, I will note it down as I intend to test them all out anyways :P .

Please feel free to correct me if I'm wrong in any of the above. Thank you!

[-] maxwellfire@lemmy.world 0 points 1 month ago* (last edited 1 month ago)

I believe Kate does that! It's a GUI and not a TUI though. Not sure if that was a requirement as well

[-] HayadSont@discuss.online 0 points 1 month ago* (last edited 1 month ago)

Thank you for mentioning Kate! The GNOME-fanboy inside of me would probs like to resist it, but sometimes KDE's offering is strictly better^[I absolutely adore Okular.] at least IMO*. I'll look into it and see if it satisfies my needs.

It’s a GUI and not a TUI though. Not sure if that was a requirement as well

That wasn't a requirement. Regardless, thank you for the heads up!

[-] maxwellfire@lemmy.world 1 points 1 month ago* (last edited 1 month ago)

I like it a lot when I don't need a full IDE or a terminal editor (which I use micro for).

The folding in Kate isn't bound to a keyboard shortcut by default, but you can bind the katepart > Toggle current node in settings > configure keyboard shortcuts. It's also available via mouse on the left side.

[-] HayadSont@discuss.online 1 points 1 month ago

The folding in Kate isn't bound to a keyboard shortcut by default, but you can bind the katepart > Toggle current node in settings > configure keyboard shortcuts. It's also available via mouse on the left side.

Thanks for the heads-up!

[-] bjoern_tantau@swg-empire.de 1 points 1 month ago

I love Kate. If I recall correctly you can even configure it to fold everything by default.

[-] HayadSont@discuss.online 1 points 1 month ago

Interesting. I will look into this. Thank you!

[-] just_another_person@lemmy.world 0 points 1 month ago

Then it doesn't exist. Not trying to be rude, but you're asking for the moon.

[-] HayadSont@discuss.online 0 points 1 month ago

Sorry, I don't understand. It seems others have already recommended text editors that probably fit the bill.

Perhaps my post was unclear or causing confusion? If so, please allow me to correct myself.

[-] just_another_person@lemmy.world 0 points 1 month ago

There are comments, but nobody is recommending what you're asking for which is a CLI editor, if I'm not mistaken.

[-] HayadSont@discuss.online 1 points 1 month ago

Ah okay, my apologies for not being clear enough!

While emacs and (neo)vim definitely fit the bill of CLI/TUI editors, I am open to GUI editors.

Thank you for allowing me to clarify myself!

[-] tal@lemmy.today 0 points 1 month ago* (last edited 1 month ago)

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 4 weeks 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 0 points 1 month ago

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 1 points 4 weeks ago

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 4 weeks 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*.

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

Linux

11902 readers
11 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