Acode icon indicating copy to clipboard operation
Acode copied to clipboard

[FEATURE REQUEST] Indentation-based Code Folding

Open LukeDickerson19 opened this issue 2 years ago • 4 comments

Would it be possible to allow code folding for .txt files as well? Based on indentation.

LukeDickerson19 avatar Dec 10 '22 06:12 LukeDickerson19

why would anyone need that though?

griffi-gh avatar Mar 20 '23 09:03 griffi-gh

its how i organize my notes. if its not any easy change nvmd.

LukeDickerson19 avatar May 25 '23 23:05 LukeDickerson19

+1

I use .txt files for organization too: For outlining, planning etc.

Vscode and the text editor of OneDrive Online are able to fold text files by indentation. And if you use powertools on Windows you can fold text files in the explorer preview too.

It would be great to have something similar on Android.

At the moment I use the workaround to set yaml as syntax for txt-files.

CodingFan72 avatar Jul 11 '23 17:07 CodingFan72

It should be also possible to use indentation-based folding for any language, but just adding it as a language-selection option (to remove the YAML highlighting) can be enough too.

  • That folding is much more consistent, and doesn't require language-specific support.
  • Syntax checkers are much more complex than that feature, they are more prone to errors and harder to maintain.

In this very moment its impossible to use the app for C# , because folding there doesn't work, due to multiple bugs.

I also suggest to rename this Issue to "Indentation-based folding".

ilias-7565 avatar Feb 02 '24 13:02 ilias-7565