The following gif demonstrates folding:

  • HayadSont@discuss.onlineOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    12 days 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 😊.

  • hedgehog@ttrpg.network
    link
    fedilink
    English
    arrow-up
    1
    ·
    15 days ago

    SublimeText seems to have it. I don’t personally use it but it’s a pretty competent editor and it’s not in the feature table from the Wikipedia page someone else shared.

    Sublime 3 was limited to folding by indentation; I’m not sure if that’s true for Sublime 4 as well, but the Markdown plugin docs have a note on folding and mention you can fold by section and heading levels.

    • HayadSont@discuss.onlineOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      14 days ago

      Thank you for mentioning Sublime Text! It seems to be a very competent text editor. However, unfortunately, I don’t like how it is not open source.

      I think my needs for a text editor for making notes and/or writing texts are mostly fulfilled between Emacs and Kate. At least…, for my untrained eyes. Do you think Sublime Text offers merit beyond (either of) these to be considered instead?

    • HayadSont@discuss.onlineOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      14 days ago

      Sorry for the late response.

      I’ve tested most of what has been suggested and I can attest that Kate is indeed very good. Thanks for mentioning your endorsement as well!

      However, while I really like Geany aesthetically, I wasn’t able to fold Markdown headings with it. Uhmm…, would you happen to know if this is actually featured?

    • HayadSont@discuss.onlineOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      15 days 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.

        • HayadSont@discuss.onlineOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          15 days 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
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    15 days 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
      link
      fedilink
      English
      arrow-up
      1
      ·
      14 days 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.onlineOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      15 days 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
        link
        fedilink
        English
        arrow-up
        1
        ·
        14 days 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.onlineOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          13 days 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*.

  • Rikudou_Sage@lemmings.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    15 days 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.onlineOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      15 days 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[1] 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!


      1. 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). ↩︎

      • Rikudou_Sage@lemmings.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        15 days ago

        Well, bundling a full browser and using a mature and popular runtime are very different things in my book.

        But yeah, if you want an open source tool, JetBrains is not the tool to use.

        • HayadSont@discuss.onlineOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          13 days ago

          Well, bundling a full browser and using a mature and popular runtime are very different things in my book.

          Thank you for clarifying that distinction for me!

          But yeah, if you want an open source tool, JetBrains is not the tool to use.

          Thank you for confirming it for me! Regardless, your recommendation has been much appreciated!