diff --git a/docs/changelog.rst b/docs/changelog.rst index 6387c0653..f07a0a8ee 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -99,6 +99,8 @@ Detailed list of changes - diff kitten: Abort when run inside a terminal that does not support the kitty keyboard protocol (:iss:`8185`) +- macOS: Allow using the Passwords app to autofill passwords via the Edit->Autofill menu mimicking other macOS applications (:pull:`8195`) + 0.38.1 [2024-12-26] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kitty/cocoa_window.m b/kitty/cocoa_window.m index a660c555b..14ccb2e97 100644 --- a/kitty/cocoa_window.m +++ b/kitty/cocoa_window.m @@ -755,10 +755,7 @@ cocoa_create_global_menu(void) { MENU_ITEM(appMenu, ([NSString stringWithFormat:@"Quit %@", app_name]), quit); [appMenu release]; - NSMenuItem* shellMenuItem = - [bar addItemWithTitle:@"Shell" - action:NULL - keyEquivalent:@""]; + NSMenuItem* shellMenuItem = [bar addItemWithTitle:@"Shell" action:NULL keyEquivalent:@""]; NSMenu* shellMenu = [[NSMenu alloc] initWithTitle:@"Shell"]; [shellMenuItem setSubmenu:shellMenu]; MENU_ITEM(shellMenu, @"New OS Window", new_os_window); @@ -770,8 +767,12 @@ cocoa_create_global_menu(void) { MENU_ITEM(shellMenu, @"Close Window", close_window); [shellMenu addItem:[NSMenuItem separatorItem]]; MENU_ITEM(shellMenu, @"Reset", reset_terminal); - MENU_ITEM(shellMenu, @"Clear to Cursor Line", clear_terminal_and_scrollback); [shellMenu release]; + NSMenuItem* editMenuItem = [bar addItemWithTitle:@"Edit" action:NULL keyEquivalent:@""]; + NSMenu* editMenu = [[NSMenu alloc] initWithTitle:@"Edit"]; + [editMenuItem setSubmenu:editMenu]; + MENU_ITEM(editMenu, @"Clear to Start", clear_terminal_and_scrollback); + [editMenu release]; NSMenuItem* windowMenuItem = [bar addItemWithTitle:@"Window"