The following gif demonstrates folding:

  • tal@lemmy.today
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    3 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
      ·
      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.onlineOP
      link
      fedilink
      English
      arrow-up
      5
      ·
      3 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
        2
        ·
        2 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
          1
          ·
          12 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*.