Editor docs (#4097)
Release Notes: - N/A --------- Co-authored-by: Kirill <kirill@zed.dev>
This commit is contained in:
parent
647b08b101
commit
6cbc49e5f0
49 changed files with 507 additions and 376 deletions
|
@ -10,7 +10,11 @@ pub struct AutoHeightEditorStory {
|
|||
|
||||
impl AutoHeightEditorStory {
|
||||
pub fn new(cx: &mut WindowContext) -> View<Self> {
|
||||
cx.bind_keys([KeyBinding::new("enter", editor::Newline, Some("Editor"))]);
|
||||
cx.bind_keys([KeyBinding::new(
|
||||
"enter",
|
||||
editor::actions::Newline,
|
||||
Some("Editor"),
|
||||
)]);
|
||||
cx.new_view(|cx| Self {
|
||||
editor: cx.new_view(|cx| {
|
||||
let mut editor = Editor::auto_height(3, cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue