gsantner / markor

Text editor - Notes & ToDo (for Android) - Markdown, todo.txt, plaintext, math, ..
https://github.com/gsantner/markor/discussions/2269
Other
3.79k stars 363 forks source link

add option to display first line of text in md files in the File Description Format of the file browser #2441

Open ehula opened 1 week ago

ehula commented 1 week ago

⚠️ This issue respects the following points: ⚠️

Description

  1. Add "firstline" option to Settings/Other/File Description Format that will display the first line of text from the file in the description line under the filename in the file browser.
  2. Add support for a new line character "\n" to allow for multi-line descriptions.

A "File description format" in Settings/Other like this:

firstline \n FS yyyy MMM dd:hh:ss aa

would display a description like this under the file in the file browser:

First line of text in the .md file
30KB 2020 Mar 20 11:24:52 PM

Information

Android version: 14 Device: Google Pixel 6 Pro App Version: v2.12.5 (154)

Source

GitHub Releases

Format / File type

Markdown

Additional info / Log

-
gsantner commented 1 week ago

Similar topics were asked a few times, most recently a few days ago: #2309

See my reasoning (=won't fix).

ehula commented 1 week ago

If someone were to contribute code, would you merge it? Are you opposed to the feature (which would be an option, not the default), or doing the actual coding?

I saw your reasoning, but you mentioned files other than markdown files, and guessing the title. Those things don't apply. Your reasoning seemed more philosophical.

This app would be an incredible compliment to nb with this added feature.

Maybe if enough people supported the feature, someone might contribute the code.

gsantner commented 1 week ago

Must not make it worse & not enabled by default, and not require much maintenance effort. If it means yet another point of failure that requires constant attention, it's bad. Proper working file management on Android is hard.