-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
show title instead of filename #2309
Comments
An idea if someone wants to implement this in the future: Don't change names in the file manager. Instead add a template key for the file subtext which pulls the title from the file. |
Parsing content from each and every file has high performance cost. You can also have duplicate, bad or misleading names in the list this way. (Not much keen on it)
|
@gsantner I mean, you can always cache it to save on performance - and I wouldn't suggest it as a default-on feature, but it would mean much better compatibility with apps like Obsidian and Zettlr. |
Orchestrating this kind of cache is a huge pain. Android timestamps are notoriously untrustworthy. We had to jump through quite a few hoops to get file IO working reliably. |
Closing. You need to know that a specific file having a specific title stored in it's content is possible, but not all formats have such. What is also a title, works in every file management application and not is optional: The file name. Suggestion is to use a somewhat meaningful proper file name. This helps you not only with Markor to find things, but any application, be it some Markdown specific software or not. |
I don't know if I should be commenting on a closed issue, but I would like to register my desire for this option. I recently started using Currently in Markor, I just see a bunch of files like this: 20241011094325.md. Not very usable. If this was an option, I would gladly take any performance hit to extract the headings, or they could be cached as suggested. Regarding the possibility of duplicated "names", yes this is a potential "problem", but the files still retain their underlying datetime filenames, so there is no problem at the filesystem level. If I have two files with the same heading, I can either change the headings, or maybe there is a reason for it, and having the files sorted by filename (datetime in my case) would display the latest version with the duplicated heading first. Maybe this would be desired by the user. Either way, it would always be something the user could change to suit his needs. What about an option to use "Heading 1" in the "file description format"? With a new line character like this: 20241011094325.mbThis is the text that is stored as Heading 1 or better yet: This is the text that is stored as Heading 120241011094325.mb |
Choosing a meaningful filename helps. / instructing your other software to create meaningful filenames. Not only with Markor, but any software - especially filrmanagers. Believing that some words somewhere in a file that might be a textfile of specific format form the title VS giving the file a meaningful filename. Markor is also not just Markdown. And not every format has such a way with title in frontmatter. Reading files is performance critical, guessing title from hundreds of files is not a good idea. |
Thanks for taking the time to respond. I understand your response as a developer wanting to create a tool that can work like a Swiss Army Knife on many different filetypes. There is always tension when introducing new features. I am glad you heard my request. Maybe one day you will find a good solution. I won't try to convince you to implement this change, only to inform you of my use case, and maybe the use case of others. Regarding meaningful filenames, that of course is subjective. For me, "datetime.md" is a great choice and is meaningful. I will push back slightly though. It's not "some words somewhere in a file". I am proposing that there be an option to display the file as noted above (Heading1; Filename; Date and Time) only for .md files with a Heading1 in the first line. Otherwise, display the name as it is currently. The Heading isn't some words somewhere, but very deliberately chosen words for a specific purpose. I understand the performance consideration. I would accept a performance hit, but I can understand that as a developer that may not sit well with you. I am relatively new to your app and am very much enjoying it so far. Thank you for a great app and keep up the good work. |
Description
I would love the ability to show the title from a markdown file (that is, the content of the first h1) instead of the filename, by default (falling-back to filename if no title is found, of course).
Information
Android version: 11
Device: Unihertz Jelly 2
App Version: 2.12.1
Source
F-Droid
Format / File type
Markdown
Additional info / Log
No response
The text was updated successfully, but these errors were encountered: