Skip to content

Add "Recently Used" font menu#1532

Open
cyanzhong wants to merge 1 commit into
mainfrom
develop
Open

Add "Recently Used" font menu#1532
cyanzhong wants to merge 1 commit into
mainfrom
develop

Conversation

@cyanzhong

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a “Recently Used” submenu to the editor font picker, allowing users to quickly re-select fonts they’ve used recently without opening the full font browser/panel.

Changes:

  • Introduces a new localized string for the “Recently Used” menu item.
  • Extends FontPickerConfiguration to supply the new menu title and renames the font-panel title parameter for menu-item consistency.
  • Implements recent-font discovery via NSFontCollection(name: .recentlyUsed) and displays those entries in the FontPicker menu.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
MarkEditMac/Sources/Settings/EditorSettingsView.swift Wires new configuration titles into the app’s settings font picker configuration.
MarkEditMac/Sources/Main/AppResources.swift Adds Localized.Settings.recentlyUsed string constant.
MarkEditMac/Resources/Localizable.xcstrings Adds translations for the new “Recently Used” localization key.
MarkEditMac/Modules/Sources/FontPicker/FontPickerConfiguration.swift Adds recentlyUsedItemTitle and renames openPanelButtonTitleopenPanelItemTitle.
MarkEditMac/Modules/Sources/FontPicker/FontPicker.swift Adds the “Recently Used” submenu populated from recent font families.
MarkEditMac/Modules/Sources/AppKitExtensions/UI/NSFont+Extension.swift Adds NSFont.recentFamilyNames(maxCount:) helper backed by the .recentlyUsed font collection.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants