T22: Edit's Copy, Paste and Select All are Ely's text input actions, which Ely a2cb531 exports and the terminal handles too, so the menu reaches find and every field; Select All counts a space under a combining mark as a character; comments cut to one short line; the Ely pin moves to a2cb531; AGENTS.md says gpui draws a shot window only while macOS shows it
CI / platforms (windows-latest) (push) Failing after 7s
CI / macos (push) Failing after 8m50s
CI / platforms (ubuntu-24.04) (push) Canceled after 0s

This commit is contained in:
ZacharyZhang-NY committed 2026-10-15 10:15:53 -04:00
1 parent 5ee67bd406
commit 37220a72d4
11 files changed
+56 -39

No files matched your search

+4 -4
View File
@@ -17,7 +17,7 @@ pub fn number(window: &gpui::Window) -> anyhow::Result<u32> {
u32::try_from(number).context("window number out of range")
}
/// Shows the window and makes it the app's key window, which AppKit sends keys to, without activating the app: gpui draws it, real input stays put.
/// Shows the window as key, the app left inactive.
pub fn front(number: u32) -> anyhow::Result<()> {
unsafe {
let app: *mut Object = msg_send![class!(NSApplication), sharedApplication];
@@ -29,7 +29,7 @@ pub fn front(number: u32) -> anyhow::Result<()> {
Ok(())
}
/// The class of each view under the window's content, as AppKit names it; gpui's blur is a `BlurredView`.
/// AppKit's class of each view under the content.
pub fn views(number: u32) -> anyhow::Result<Vec<String>> {
unsafe {
let app: *mut Object = msg_send![class!(NSApplication), sharedApplication];
@@ -50,7 +50,7 @@ pub fn views(number: u32) -> anyhow::Result<Vec<String>> {
}
}
/// The menu bar's items as AppKit holds them: menu, item, then the key and its modifier mask.
/// Each menu item with its key and modifier mask.
pub fn menus() -> Vec<String> {
let text = |string: *mut Object| -> String {
let bytes: *const std::ffi::c_char = unsafe { msg_send![string, UTF8String] };
@@ -80,7 +80,7 @@ pub fn menus() -> Vec<String> {
lines
}
/// Writes the window `number` as a PNG; the app's own window needs no permission.
/// Writes window `number` as a PNG.
pub fn snapshot(number: u32, path: &Path) -> anyhow::Result<()> {
use core_graphics::{
geometry::{CGPoint, CGRect, CGSize},