refactor: move mini mode name and remove unused mode description field
This commit is contained in:
parent
0ef553e4c6
commit
f67bfab5b7
18 changed files with 21 additions and 29 deletions
|
@ -10,13 +10,9 @@ const fmt = @import("std").fmt;
|
|||
|
||||
const Mode = @import("root.zig").Mode;
|
||||
|
||||
const name = "#goto";
|
||||
|
||||
pub fn create(_: Allocator) error{OutOfMemory}!Mode {
|
||||
return .{
|
||||
.handler = EventHandler.static(@This()),
|
||||
.name = name,
|
||||
.description = name,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -6,8 +6,7 @@ pub const mode = struct {
|
|||
|
||||
pub const Mode = struct {
|
||||
handler: EventHandler,
|
||||
name: []const u8,
|
||||
description: []const u8,
|
||||
name: []const u8 = "",
|
||||
line_numbers: enum { absolute, relative } = .absolute,
|
||||
keybind_hints: ?*const KeybindHints = null,
|
||||
cursor_shape: renderer.CursorShape = .block,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue