Build a Playlist Manager with egui — Vec State & CRUD | Rust GUI Ep 27
99views
1likes
09:44
T
Taught by Celeste AI - AI Coding Coach
View on YouTubeDescription
Build a Playlist Manager with add, remove, and favorites in egui! In this episode, we combine text inputs, buttons,
checkboxes, scroll area, and Vec state into a complete CRUD app — all coded in Neovim.
Student code: https://github.com/GoCelesteAI/egui_playlist_manager
What You'll Learn:
- Vec for managing playlist state
- TextEdit::singleline with add_sized for fixed-width inputs
- add_enabled() to disable buttons until fields are filled
- ScrollArea::vertical() for scrollable song lists
- RichText::new().strong() for bold labels
- Layout::right_to_left() for right-aligned remove buttons
- Deferred removal with Option to avoid borrow conflicts
- Neo-tree — natural project navigation
This is Episode 27 of the "Learn egui in Neovim" series where we build real desktop apps with Rust's egui framework, all
coded in Neovim with Neo-tree.
Chapters:
0:00 Intro
0:12 App Preview
0:22 What We'll Cover
0:54 Create Project
1:12 Edit Cargo.toml
1:26 Write main.rs
2:14 Create app.rs — Song Struct
2:42 MyApp Struct & Default
4:12 App Trait — Panels
5:18 Bottom Panel — Add Song Form
6:10 Central Panel — Song List
7:02 ScrollArea & Favorites
7:58 Remove Button & Deferred Removal
8:48 Build & Run
9:10 Neo-tree Browse
9:25 App Demo
10:13 Recap
Next: Episode 28 — Calculator
#rust #egui #neovim #rustlang #gui #tutorial #playlist #desktopapp
Tags: egui, rust, gui, tutorial, neovim, playlist manager, Vec, ScrollArea, add_enabled, Layout, CRUD, desktop app, rust
programming, learn rust, beginner