Skip to content

Commit d8cf188

Browse files
authored
🔀 Merge pull request #185 from davep/improve-tag-suggestions
Improve the look of tag suggestions
2 parents e8549cb + de78314 commit d8cf188

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

ChangeLog.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Braindrop ChangeLog
22

3+
## Unrealised
4+
5+
**Released: WiP**
6+
7+
- Sorted tag suggestions in the raindrop editing dialog.
8+
([#185](https://github.com/davep/braindrop/pull/185))
9+
- Added some colour to the tat suggestions to better emphasise the
10+
difference between suggestions from tags used by the user before and
11+
never-before-used tags.
12+
([#185](https://github.com/davep/braindrop/pull/185))
13+
314
## v0.11.0
415

516
**Released: 2025-09-23**

src/braindrop/app/screens/raindrop_input.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,10 @@ def _format_tag_suggestions(self, suggestions: Suggestions) -> list[str]:
225225
"""
226226
local_tags = {tag.tag for tag in self._data.all.tags}
227227
return [
228-
f"{tag}" if tag in local_tags else f"[dim i]{tag}[/]"
229-
for tag in suggestions.tags
228+
f"[$text-primary]{tag}[/]"
229+
if tag in local_tags
230+
else f"[dim i $text-secondary]{tag}[/]"
231+
for tag in sorted(suggestions.tags)
230232
]
231233

232234
@work(exclusive=True)

0 commit comments

Comments
 (0)