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
feat(notes): support multiple comma-separated file extensions - #152
Allow the extension setting in the Notes plugin to accept multiple comma-separated file extensions (e.g. md, txt, org, todo, markdown).
Parses comma-separated extensions in both panel.luau and launcher.luau (/nt).
Notes across all configured extensions are indexed and displayed in the panel list and launcher search.
When creating a new note via + or /nt, the first configured extension is used as the default.
When renaming an existing note, its current extension is preserved.
Updated the setting description in translations/en.json.
Motivation
Allow using the Notes plugin with notes directories containing multiple plain-text formats (such as Obsidian vaults or directories with .md, .txt, and .org files) without being restricted to only one format.
Type of Change
Bug fix
New feature
Breaking change
Refactoring
Build / packaging
Related Issue
None
Testing
Ran noctalia plugins lint notes: 0 errors, 0 warnings.
Ran python .github/workflows/validate-plugins.py: 14 manifests validated.
Configured extension = "md, txt, org, todo" and tested on Umbriel:
Notes with .md, .txt, .org, and .todo appear in the panel and launcher list.
Non-matching files (e.g. .pdf) are excluded.
Existing notes can be opened, edited, and autosaved.
Creating a new note creates a .md note.
Renaming preserves the original file extension.
Manual Coverage
Tested on Niri
Tested on Hyprland
Tested on Sway
Tested on another compositor: Umbriel
Tested with different bar positions and density settings
Tested at different interface scaling values
Tested with multiple monitors
Screenshots / Videos
Checklist
This PR is ready for review, or it is marked as Draft.
I self-reviewed the changes.
I added or updated translations/en.json, or this PR adds no new user-facing strings.
I did not edit non-English translation files unless this PR is explicitly for translation tooling, an import/export sync, or a maintainer-requested locale change.
Additional Notes
Backwards-compatible: existing single-extension configs (e.g. "md") continue working without changes.
Thanks for the PR, fixed a few things on the branch. there are two minor nits left.
nit - notes/panel.luau:48
When the same name exists with two configured extensions (for example foo.md and foo.txt), both show as "foo" in the panel list and in the /nt results (notes/launcher.luau:46). The user can't tell them apart. Each row's key is the full filename, so opening the right file still works. One option is to show the extension for files that don't use the default suffix. That also affects how the rename field is seeded.
nit - notes/panel.luau:61
The scratchpad is always SCRATCHPAD_BASE .. defaultSuffix. If the user reorders the list (for example "md, txt" to "txt, md"), the old scratchpad.md still matches a configured suffix. It then appears as an ordinary note called "scratchpad" next to the pinned Scratchpad entry (notes/panel.luau:102, notes/launcher.luau:178). Before this PR, changing the extension hid the old scratchpad instead. It's a minor edge case.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Allow the
extensionsetting in the Notes plugin to accept multiple comma-separated file extensions (e.g.md, txt, org, todo, markdown).panel.luauandlauncher.luau(/nt).+or/nt, the first configured extension is used as the default.translations/en.json.Motivation
Allow using the Notes plugin with notes directories containing multiple plain-text formats (such as Obsidian vaults or directories with
.md,.txt, and.orgfiles) without being restricted to only one format.Type of Change
Related Issue
None
Testing
noctalia plugins lint notes: 0 errors, 0 warnings.python .github/workflows/validate-plugins.py: 14 manifests validated.extension = "md, txt, org, todo"and tested on Umbriel:.md,.txt,.org, and.todoappear in the panel and launcher list..pdf) are excluded..mdnote.Manual Coverage
Screenshots / Videos
Checklist
translations/en.json, or this PR adds no new user-facing strings.Additional Notes
Backwards-compatible: existing single-extension configs (e.g.
"md") continue working without changes.