Iced Editor Tutorial using latest version

So to help with documentation, I decided to do the same thing @hecrj did in his YouTube tutorial (linked in this discussion: Video tutorial: Building a simple text editor) but with latest version. Is something like this useful?

I am planning to kind of “sweep behind” what the experienced people did to help newbies like me. I would also like to contribute to maintaining the documentation as I get more experience (also bring in the “unofficial” ones written by community members).

Here is a link to the GitHub repo: iced-editor-tutorial

One caveat is that iced::keyboard::Modifiers::COMMAND seems to be broken. When I replace Modifiers::COMMAND with Modifiers::CONTROL , it works fine.

At first I thought this would be an explanation of how the code works, how its parts interact with each other etc., but it seems like this is just the code… so what makes it different than iced/examples/editor at 0.13 · iced-rs/iced · GitHub?

1 Like

I honestly didn’t know about this one. Will delete this discussion. Thanks. Maybe I will bring it back up when I add explanations. Great suggestion!

EDIT: It seems I can’t delete it. But if anyone can, please do so.

No need to delete, the discussion being here doesn’t hurt anyone. A thorough, written explanation could be a good exercise for you and helpful for others!

1 Like

Also, Modifiers::command should be working. I’m using it right now in an app with iced master. Some code for reference: iced-builder/src/main.rs at master · pml68/iced-builder · GitHub

1 Like

When I use text_editor::key_binding instead of subscription to get Ctrl/Command + S to save the document, it works now. Sorry for the noise