Skip to content

feat: Cmd+N for sibling notes, edit focus improvements#198

Merged
careck merged 6 commits into
developmentfrom
feat/add-sibling-shortcut
May 12, 2026
Merged

feat: Cmd+N for sibling notes, edit focus improvements#198
careck merged 6 commits into
developmentfrom
feat/add-sibling-shortcut

Conversation

@careck
Copy link
Copy Markdown
Member

@careck careck commented May 12, 2026

Summary

  • Cmd+N remapped from New Workspace to Add Sibling Note (more frequently used action)
  • Cmd+Shift+N stays as Add Child Note (label updated from generic "Add Note")
  • New Workspace remains in File menu, just without a keyboard shortcut
  • AddNoteDialog auto-focuses the type dropdown and pre-selects the sibling's schema type
  • Edit mode focuses the first schema field when the title field is hidden by the schema
  • Tag input no longer traps Tab/Enter when empty, allowing keyboard navigation and quick save

Test plan

  • Cmd+N with a note selected opens Add Sibling dialog with correct type pre-selected
  • Cmd+Shift+N opens Add Child dialog as before
  • Type dropdown is focused on dialog open — arrow keys change selection
  • With a schema that hides the title, entering edit mode focuses the first field
  • Tab moves through fields past an empty tag input; Tab with text in tag input still adds the tag
  • Enter on an empty tag input saves the note; Enter with text adds the tag
  • New Workspace still accessible from File menu (no shortcut)
  • All 7 locales display correct menu labels

careck added 6 commits May 12, 2026 11:22
Remap Cmd+N from New Workspace to Add Sibling Note — sibling creation
is far more frequent. Cmd+Shift+N remains Add Child Note. New Workspace
stays in the File menu without a shortcut.

Additional UX improvements:
- AddNoteDialog auto-focuses the type dropdown on open
- Adding a sibling pre-selects the reference note's schema type
- Edit mode focuses the first schema field when title is hidden
- Tag input no longer traps Tab/Enter when empty, allowing natural
  keyboard navigation and quick save via Enter
Focus the tree container after initial note selection so keyboard
navigation works immediately without needing a mouse click.
@careck careck merged commit 6a6bb03 into development May 12, 2026
1 of 2 checks 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.

1 participant