Zettlr: Alphabetical sorting of note titles separate for filename and YAML titles

Created on 18 Jun 2020  ·  6Comments  ·  Source: Zettlr/Zettlr

Description

Zettlr shows a list of all notes in a folder in the left side pane. When sorting this list of notes alphabetically, the sorting is done separately for:

  • Notes whose title is defined in the file name (i.e. whose ID appears in the file content);
  • Notes whose title is defined in the YAML header (i.e. whose ID is the file name).

Reproducing

Put three notes in a folder:

  1. a note with filename "a note.md" and some ID in the note text.
  2. a note with filename "z note.md" and some ID in the note text.
  3. a note with ID as filename a "title: b note" inside a YAML header in the note text.

Note 3 should be sorted in between 1. and 2. but will be sorted separately.

Expected behaviour

All notes should be sorted alphabetically, irrespective of how their titles are defined.


Screenshots
sorttitles

Platform

  • OS and version: Windows 10
  • Zettlr Version: 1.7.0-beta.11
  • Screen Resolution: 2560 x 1440
bug [non-critical] confirmed feature mid v1.7.x

All 6 comments

Thanks so much for opening up your first issue here on the repository! 🎉 We would like to warmly welcome you to the community behind the app! ☺️ We'll check in soon and have a look at your issue. In the meantime, you can check your issue and make sure it aligns with our contribution guidelines! Here's the comprehensive list:

Enhancements

An enhancement takes a feature and improves or alters its behaviour. Please make sure to argue how your proposition will aid non-technical text workers, and why it can't be emulated easily with other features or apps!

Feature requests

Feature requests introduce whole new features into the app. This requires a lot of work, so these might be turned down if the implementation costs supersede the benefits we expect to see from implementing it. Please do not be disappointed if that happens. It likely has nothing to do with your great request but simply with us and our missing resources!
You can of course always ask someone to implement this feature, because a PR with a working new feature has much higher chances of being merged! :)

Bug reports

Please note that one of the main reasons for why bug reports cannot be addressed is that there's not enough information for us to find and fix the bug you describe, so make sure you try to pinpoint the bug as close as possible.
The ideal bug report for us has two qualities:

  1. The bug is always reproducible, at least within a certain context. 2. We know exactly what specifically goes wrong, and there is consensus on
    what should happen instead.

Please note that if you encounter behaviour that does not align with your expectations of what would happen, this might as well be simply intended behaviour and we need to simply _clarify_ why the behaviour is the way it is. This is not to be considered a bug and such issues may be closed! Suggest an enhancement instead!
But now, have a great day and thank you again!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Reason: the sorter ignores YAML headers (and H1) as of now. Will have to amend the corresponding function.

Fixed!

Awesome! This may look like just a small thing (from a user perspective, I honestly don't know how hard it was for you to fix it) but this really helps with my workflow! Thank you Hendrik!

Thankfully, it was rather easy, and I was able to fix a few other things as well …

Was this page helpful?
0 / 5 - 0 ratings