You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Recognise emojis in note titles and show them in the note list #2190
Hello there! This is a vague feature request or suggestion, aimed at adding some colour to the Note List, to help scanning and finding notes visually.
At the moment, I can prefix the name of a note with an emoji, for example, "📚 Books". This works great in QOwnNotes, but the emoji becomes part of the filename on disc, creating some trouble in the shell, and for other tools that have difficulties with these characters.
Would it be possible to check if the text of a note opens with an emoji, and show this in the Note List, before the note name? For example, a note names book-list.md and opening with this heading
📚 Books
======
would appear in the Note List as "📚 book-list". This way we could keep filenames simple and compatible with other tools, but help specific notes stand out.
The position of the image could be ambiguous, for example if we had another file actually named 📚 stack-list.md. To avoid this issue, the "promoted" emoji could be rendered as the Note List line icon, replacing the "text placeholder" icon, as in the quick Paint mock below.
Interesting idea, a lot of parts would need to be changed to attempt to make that work (with a lot of possible regressions). And of course this wouldn't work with Nextcloud Notes...
Agreed, it is a tricky one, and more "delight" that fundamental functionality.
Complexity that I can think of:
the Note List needs to be capable to render both icons and text (the emoji) in front of each line
QOwnNotes needs to read the contents, or at least the opening characters, of every note; on sync, on edit, on file change...
the emoji might need to be stored in a new table in notes.sqlite; or maybe it could be implemented as an (invisible?) tag; either way, the Note List would need access to that data
And of course this wouldn't work with Nextcloud Notes...
Sorry, I am not accustomed with Nextcloud. Do you mean that the emoji would not appear in the same way in Nextcloud, or that this feature would be incompatible with it, breaking sync?
This is actually not that hard to do, I mean showing the icons. One just needs to assign an icon to each tree widget item and that's it. That is, the simplest way to do it I guess.
The hard part, is i.e., figuring out the icon, which I don't think is implementable given the size of our team and complexity of the problem. For example, English is just one language, there are tons of other languages and we don't know how to analyze them.
But it can be done in the way that you manually assign an icon to some note etc.
The hard part, is i.e., figuring out the icon, which I don't think is implementable given the size of our team and complexity of the problem. For example, English is just one language, there are tons of other languages and we don't know how to analyze them.
Oh, I would not expect QOwnNotes to guess the correct icon based on the title of the note. I was just thinking "whatever emoji is already present in the title". So if the note opens with
Added a new checkbox "Don't use leading emojis in note filename" in the General settings (enabled by default): when a note title starts with an
emoji, the emoji is stripped from the generated filename so filenames stay
compatible with other tools (for #2190)
Added a new checkbox "Show leading emoji from note title as icon in the note
list" in the Panels settings (enabled by default): when a note title
starts with an emoji, the emoji is rendered as the icon for that note in the
note list and note tree, replacing the standard document icon
(for #2190)
Activity
pbek commentedon Jul 19, 2021
Interesting idea, a lot of parts would need to be changed to attempt to make that work (with a lot of possible regressions). And of course this wouldn't work with Nextcloud Notes...
fran-f commentedon Jul 19, 2021
Agreed, it is a tricky one, and more "delight" that fundamental functionality.
Complexity that I can think of:
notes.sqlite; or maybe it could be implemented as an (invisible?) tag; either way, the Note List would need access to that dataSorry, I am not accustomed with Nextcloud. Do you mean that the emoji would not appear in the same way in Nextcloud, or that this feature would be incompatible with it, breaking sync?
pbek commentedon Jul 19, 2021
plus much more 😁
I don't think it would break sync. Haven't tested it...
Waqar144 commentedon Aug 11, 2021
This is actually not that hard to do, I mean showing the icons. One just needs to assign an icon to each tree widget item and that's it. That is, the simplest way to do it I guess.
The hard part, is i.e., figuring out the icon, which I don't think is implementable given the size of our team and complexity of the problem. For example, English is just one language, there are tons of other languages and we don't know how to analyze them.
But it can be done in the way that you manually assign an icon to some note etc.
fran-f commentedon Aug 11, 2021
Oh, I would not expect QOwnNotes to guess the correct icon based on the title of the note. I was just thinking "whatever emoji is already present in the title". So if the note opens with
then the 🍰 emoji would appear in the notes list next to this file.
Waqar144 commentedon Aug 11, 2021
That I guess can be done with the help of an item delegate and an emoji font
pbek commentedon Aug 15, 2021
Or "converting" the emoji to an icon (if that's possible) and set it in:
QOwnNotes/src/mainwindow.cpp
Line 2335 in f3bf7dd
#2190 notelist: allow emoji as list icon
pbek commentedon Jul 4, 2026
26.7.1
General settings (enabled by default): when a note title starts with an
emoji, the emoji is stripped from the generated filename so filenames stay
compatible with other tools (for #2190)
list" in the Panels settings (enabled by default): when a note title
starts with an emoji, the emoji is rendered as the icon for that note in the
note list and note tree, replacing the standard document icon
(for #2190)
#2190 demonotes: add emojis to the note title of the welcome notes