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
This commit is contained in:
11 files changed
+56
-39
No files matched your search
+3
-2
@@ -1,6 +1,7 @@
|
||||
use std::ops::Range;
|
||||
|
||||
use alacritty_terminal::{grid::Scroll, term::TermMode};
|
||||
use ely_gpui_component::forms::{Copy, Paste, SelectAll};
|
||||
use gpui::{
|
||||
App, Bounds, Context, EntityInputHandler, KeyBinding, KeyDownEvent, KeyUpEvent, Keystroke,
|
||||
NoAction, Pixels, Point, UTF16Selection, Window, actions,
|
||||
@@ -11,7 +12,7 @@ use super::{
|
||||
view::TerminalView,
|
||||
};
|
||||
|
||||
actions!(elyterminal, [Copy, Paste, Find, FindNewer, SelectAll]);
|
||||
actions!(elyterminal, [Find, FindNewer]);
|
||||
|
||||
/// The key context a terminal's root sets.
|
||||
pub const CONTEXT: &str = "Terminal";
|
||||
@@ -19,7 +20,7 @@ pub const CONTEXT: &str = "Terminal";
|
||||
/// The key context of a terminal's find box.
|
||||
pub const FIND: &str = "TerminalFind";
|
||||
|
||||
/// Copy, paste, select all and find; Ely's focus keys go to the terminal's listeners instead.
|
||||
/// The terminal's keys; Ely's focus keys reach its listeners.
|
||||
pub fn bind_keys(cx: &mut App) {
|
||||
let (copy, paste, all, find) = if cfg!(target_os = "macos") {
|
||||
("cmd-c", "cmd-v", "cmd-a", "cmd-f")
|
||||
|
||||
Reference in new issue
Block a user