feat: add status message on input mode change

This commit is contained in:
CJ van den Berg 2024-03-01 22:37:51 +01:00
parent daaa524088
commit 9537c54962
6 changed files with 8 additions and 0 deletions

View file

@ -30,6 +30,7 @@ pub fn create(a: Allocator) !tui.Mode {
return .{
.handler = EventHandler.to_owned(self),
.name = root.application_logo ++ root.application_name,
.description = "default",
};
}

View file

@ -20,6 +20,7 @@ pub fn create(a: std.mem.Allocator) !tui.Mode {
return .{
.handler = EventHandler.to_owned(self),
.name = root.application_logo ++ root.application_name,
.description = "home",
};
}

View file

@ -30,6 +30,7 @@ pub fn create(a: Allocator) !tui.Mode {
return .{
.handler = EventHandler.to_owned(self),
.name = root.application_logo ++ "INSERT",
.description = "vim",
};
}

View file

@ -31,6 +31,7 @@ pub fn create(a: Allocator) !tui.Mode {
return .{
.handler = EventHandler.to_owned(self),
.name = root.application_logo ++ "NORMAL",
.description = "vim",
.line_numbers = .relative,
};
}

View file

@ -31,6 +31,7 @@ pub fn create(a: Allocator) !tui.Mode {
return .{
.handler = EventHandler.to_owned(self),
.name = root.application_logo ++ "VISUAL",
.description = "vim",
};
}