Skip to content

feat(notes): open the panel in a context via panel-open/panel-toggle - #149

Merged
ItsLemmy merged 7 commits into
noctalia-dev:mainfrom
Yocraft-2000:feat/notes-ipc-context
Nov 13, 2026
Merged

ItsLemmy merged 7 commits into
noctalia-dev:mainfrom
Yocraft-2000:feat/notes-ipc-context

Conversation

@Yocraft-2000

@Yocraft-2000 Yocraft-2000 commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Summary

panel-open and panel-toggle now accept an optional context:

Context Result
scratchpad Opens the scratchpad note.
home / list Shows the note list.
note:<name> Opens the note called <name> (with or without the file extension), an unknown name starts an empty note that is created on the first edit.
<name> Opens the note called <name>, or shows the list when no note matches.
noctalia msg panel-toggle noctalia/notes:panel scratchpad
noctalia msg panel-toggle noctalia/notes:panel home
noctalia msg panel-toggle noctalia/notes:panel "note:buy milk"

Toggling with the same context on an already open panel closes it, a different context switches the open panel in place.

Also did a little refactor, 2 helper functions resetEditor and showList since it was repeting a lot.

Motivation

Open specific notes from keybinds.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Build / packaging

Related Issue

Closes #148.

Testing

Tested manually to open my different notes from ipc, works as expected.

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

@ItsLemmy

Copy link
Copy Markdown
Member

Nice feature.

@ItsLemmy
ItsLemmy merged commit 0341138 into noctalia-dev:main Nov 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] noctalia/notes: Open specific note from terminal

2 participants