A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/commands.rs')
| -rw-r--r-- | src/commands.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commands.rs b/src/commands.rs index 2a56aac..4498513 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -115,6 +115,8 @@ commands!( @ Incoming: "callers-of", /// Functions this function calls @ Outgoing: "calling", + /// Reloads the file from disk. + | Reload: "reload", // /// View child modules // @ ViewChildModules: "child-modules", /// GoTo line, @@ -272,6 +274,7 @@ impl Editor { ..default() }); } + Cmd::Reload => self.reload(), z if z.needs_lsp() => return self.handle_lsp_command(z, w), x => unimplemented!("{x:?}"), } |