There are many ways to use Joplin, and by using different notebooks, we can use them in different ways. Then, it is often the case that the appropriate sort order (e.g. title or updated time) differs from notebook to notebook.
However, in the current GUI of desktop app there is no way to switch the sort order except using a menu bar. It is inefficient and cumbersome from the viewpoint of UX.
So, there are two long-wanted features, "Sort Order Buttons" and "Per-Notebook Sort Order". Now, I'm developing them. First, look at the following animations, which are real examples.
- Sort Order Buttons
- Per-Notebook Sort Order
I've already finished the initial implementations and am enjoying them.
In this topic, I'll show the current feature details. Then, I want to polish the features and implementations by discussing with the community here. After the implementation becomes stable, I'll send a pull request to the Joplin repository.
Any comments and questions are welcome. Thank you.
Detailed Features
-
Sort Order Buttons
- Two buttons, "Switch sort order field" and "Reverse sort order", are added at the top of NoteListPanel.
- The switch button cyclically switches the fields: Updated time → created time → title → cutome order → updated time ...
- The icon images of the both button shows the current state of the sort order.
- Of course, any themes are applicable.
- Besides, you can customize the icons using
userchrome.css
. - The two buttons are hidden when a global search is ongoing.
- Shortcuts
- Hitting one shortcut key enables you to quick get to your favorite sorting results.
- Currently, what shortcut keys are used is not determined. I'd like to ask your opinions.
- Hitting one shortcut key enables you to quick get to your favorite sorting results.
- Two buttons, "Switch sort order field" and "Reverse sort order", are added at the top of NoteListPanel.
-
Per-Field Reversal
- Normal/Reverse order is kept for each sort order field (updated time, created time, title or cutome order).
- In many cases, title tends to be normal-ordered and updated time tends to be reverse-ordered. By this feature, each field can have its own normal/reverse order preference.
- That is, when you watch the note list in the alphabetical order, you can change the reverse order of the updated time by one clicking (without cliking the reverse button).
- Its need is discussed here .
- You can see a working example in the above first animation.
- Normal/Reverse order is kept for each sort order field (updated time, created time, title or cutome order).
-
Per-Notebook Sort Order
- Some notebooks can have their own sort orders (field + reverse) for their notes inside.
- For example, I usually use the alphabetical order for reading. But I want some notebooks for editing to be sorted in the reverse order of updated time. This feature enables that only selecting a notebook immediately let its notes be sorted by its favorite order.
- Any number of notebooks can be specified to have their own sort orders via context menu.
- Other (unspecified) notebooks are sorted in the shared sort order as before.
- ”All notes" and tag results are also sorted in the shared sort order.
- Some notebooks can have their own sort orders (field + reverse) for their notes inside.
-
Backward Compatibilities
- The above features can be invisible/disabled from the option screen.
Current Status and Trial
The initial implementation is already finished and contains the full of the above features. You can immediately try them in the following forked Joplin (based on v.2.3.5).
In this topic, I want to discuss only about features. For the purpose to discuss the technical and implementation details, coding and bugs, I'll open issues at Joplin's github repo soon.
Related Posts
-
Feature request - By-Notebook sorting preference - Features - Joplin Forum
-
Add ability to set different sort for different notebooks - Features - Joplin Forum
-
Sort order individual for different notebooks - Features - Joplin Forum
-
Seperate note sort setting for each notebook · Issue #3608 · laurent22/joplin
-
Feature request: One-click (or one-keystroke) sorting - Features - Joplin Forum