Editor docs (#4097)

Release Notes:

- N/A

---------

Co-authored-by: Kirill <kirill@zed.dev>
This commit is contained in:
Piotr Osiewicz 2024-01-18 00:48:37 +01:00 committed by GitHub
parent 647b08b101
commit 6cbc49e5f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
49 changed files with 507 additions and 376 deletions

View file

@ -2,7 +2,7 @@ mod persistence;
pub mod terminal_element;
pub mod terminal_panel;
use editor::{scroll::autoscroll::Autoscroll, Editor};
use editor::{scroll::Autoscroll, Editor};
use gpui::{
div, impl_actions, overlay, AnyElement, AppContext, DismissEvent, EventEmitter, FocusHandle,
FocusableView, KeyContext, KeyDownEvent, Keystroke, Model, MouseButton, MouseDownEvent, Pixels,
@ -357,7 +357,7 @@ impl TerminalView {
}
}
fn select_all(&mut self, _: &editor::SelectAll, cx: &mut ViewContext<Self>) {
fn select_all(&mut self, _: &editor::actions::SelectAll, cx: &mut ViewContext<Self>) {
self.terminal.update(cx, |term, _| term.select_all());
cx.notify();
}