Skip to content

Commit cf48d96

Browse files
committed
Merge branch 'main' of https://github.com/NotePlan/plugins
2 parents e9a390d + 2650ce8 commit cf48d96

5 files changed

Lines changed: 252 additions & 65 deletions

File tree

‎dwertheimer.Favorites/CHANGELOG.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Favorites Plugin Changelog
22

3+
## [1.4.1] - 2026-07-21 @dwertheimer
4+
5+
- **Fixed**: The unfavorite star icon on each note row was getting clipped at the top of the row.
6+
- **Feature**: Added a "Group favorites by folder" plugin setting (bool). This controls the initial state of the Notes list's "group by folder" toggle when the Favorites browser window opens; users can still switch modes from the toggle itself within the session.
7+
8+
## [1.4.0] - 2026-07-21 @dwertheimer
9+
10+
- **Feature**: Added a "Group by folder" toggle to the Favorites browser Notes view (next to the Notes/Commands segmented control). When enabled, favorite notes are grouped under folder headers instead of a flat list, making it easier to scan favorites when you have many of them across different folders.
11+
312
## [1.3.6] - 2026-04-13 @dwertheimer
413

514
- **PluginRequestEnvelope**: Favorites browser `requestFromPlugin` resolves with `@helpers/react/pluginRequestEnvelope` (`unwrapPluginRequestData` / explicit `success` + `data` + `message`). **Release together with np.Shared 1.0.7+** (or matching Root bundle).

‎dwertheimer.Favorites/plugin.json‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"plugin.name": "⭐️ Favorites",
77
"plugin.description": "Get fast access to commonly-used notes. Set any Project Note(s) as a Favorites and have quick access to choose/open the file",
88
"plugin.author": "@dwertheimer",
9-
"plugin.version": "1.3.6",
10-
"plugin.lastUpdateInfo": "1.3.6: PluginRequestEnvelope / requestFromPlugin aligned with np.Shared 1.0.7.\n1.3.5: Fix sidebar icon colour issue\n1.3.4: Fix dark mode issues (thx @clayrussell)\n1.3.3: Use new sidebar view feature\n1.3.0: Add new '/favorites browser' command to open favorites in a sidebar window to view and open favorite notes and commands\n1.3.1: Fix request timeout issue\n1.3.2: Fix frontmatter not being removed when unfavoriting",
9+
"plugin.version": "1.4.1",
10+
"plugin.lastUpdateInfo": "1.4.1: Fix clipped unfavorite star icon; add 'Group favorites by folder' setting.\n1.4.0: Add 'Group by folder' toggle to Favorites browser Notes view.\n1.3.6: PluginRequestEnvelope / requestFromPlugin aligned with np.Shared 1.0.7.\n1.3.5: Fix sidebar icon colour issue\n1.3.4: Fix dark mode issues (thx @clayrussell)\n1.3.3: Use new sidebar view feature\n1.3.0: Add new '/favorites browser' command to open favorites in a sidebar window to view and open favorite notes and commands\n1.3.1: Fix request timeout issue\n1.3.2: Fix frontmatter not being removed when unfavoriting",
1111
"plugin.dependencies": [],
1212
"plugin.requiredFiles": ["react.c.FavoritesView.bundle.dev.js"],
1313
"plugin.script": "script.js",
@@ -243,6 +243,14 @@
243243
"default": "-",
244244
"required": false
245245
},
246+
{
247+
"key": "groupFavoritesByFolder",
248+
"title": "Group favorites by folder",
249+
"description": "In the Favorites browser window, start the Notes list grouped by folder rather than sorted by name. You can still toggle this on/off from the browser window itself; this setting just controls the default it starts in.",
250+
"type": "bool",
251+
"default": false,
252+
"required": true
253+
},
246254
{
247255
"key": "favoriteIdentifier",
248256
"title": "How should favorite notes be identified?",

‎dwertheimer.Favorites/src/components/FavoritesView.css‎

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,41 @@
9090
font-weight: 600;
9191
}
9292

93+
.favorites-group-toggle-button {
94+
display: flex;
95+
align-items: center;
96+
justify-content: center;
97+
padding: 0.5rem 0.625rem;
98+
border: 1px solid var(--divider-color);
99+
background: var(--bg-main-color);
100+
border-radius: 6px;
101+
cursor: pointer;
102+
color: var(--fg-placeholder-color);
103+
transition: all 0.2s ease;
104+
flex-shrink: 0;
105+
}
106+
107+
.favorites-group-toggle-button:hover {
108+
background: var(--bg-mid-color);
109+
color: var(--fg-main-color);
110+
}
111+
112+
.favorites-group-toggle-button-active {
113+
background: var(--tint-color);
114+
border-color: var(--tint-color);
115+
color: var(--fg-main-color);
116+
}
117+
118+
.favorites-group-toggle-button-active:hover {
119+
background: var(--tint-color);
120+
}
121+
122+
.favorites-group-toggle-icon {
123+
font-size: 0.875rem;
124+
width: 14px;
125+
text-align: center;
126+
}
127+
93128
.favorites-new-button {
94129
display: flex;
95130
align-items: center;
@@ -179,11 +214,54 @@
179214
white-space: nowrap;
180215
}
181216

217+
/* Folder group header row */
218+
.favorites-item-folder-header {
219+
display: flex;
220+
align-items: center;
221+
gap: 0.4rem;
222+
width: 100%;
223+
min-width: 0;
224+
font-size: 0.75rem;
225+
font-weight: 600;
226+
text-transform: uppercase;
227+
letter-spacing: 0.02em;
228+
color: var(--fg-placeholder-color);
229+
}
230+
231+
.favorites-folder-header-icon {
232+
flex-shrink: 0;
233+
width: 12px;
234+
text-align: center;
235+
font-size: 0.75rem;
236+
}
237+
238+
.favorites-folder-header-label {
239+
overflow: hidden;
240+
text-overflow: ellipsis;
241+
white-space: nowrap;
242+
}
243+
244+
/* Folder headers are informational only - not selectable/clickable rows */
245+
.list-item:has(.favorites-item-folder-header) {
246+
cursor: default;
247+
background: transparent !important;
248+
border-color: transparent !important;
249+
pointer-events: none;
250+
margin-top: 0.5rem;
251+
}
252+
253+
.list-item:has(.favorites-item-folder-header):first-child {
254+
margin-top: 0.125rem;
255+
}
256+
182257
/* Unfavorite icon styling */
183258
.favorites-item-note .favorites-unfavorite-icon {
184259
margin-left: auto;
185260
margin-right: 0.25rem;
186261
flex-shrink: 0;
262+
/* Override InfoIcon's default `top: -0.5em` offset, which clips the icon against
263+
the overflow:hidden list-item-content wrapper in this tightly-padded list row */
264+
top: 0;
187265
}
188266

189267
/* Styles for Add Favorite Note Dialog with Markdown Preview */

0 commit comments

Comments
 (0)