feat: use icons in mini mode labels

This commit is contained in:
CJ van den Berg 2024-03-03 22:00:08 +01:00
parent 9ba773c4a4
commit cf22ba38e7
7 changed files with 21 additions and 28 deletions

View file

@ -54,7 +54,7 @@ pub fn handler(self: *Self) EventHandler {
}
pub fn name(_: *Self) []const u8 {
return "find";
return "󱎸 find";
}
pub fn receive(self: *Self, _: tp.pid_ref, m: tp.message) error{Exit}!bool {

View file

@ -53,7 +53,7 @@ pub fn handler(self: *Self) EventHandler {
}
pub fn name(_: *Self) []const u8 {
return "find in files";
return "󰥨 find";
}
pub fn receive(self: *Self, _: tp.pid_ref, m: tp.message) error{Exit}!bool {

View file

@ -41,7 +41,7 @@ pub fn handler(self: *Self) EventHandler {
}
pub fn name(_: *Self) []const u8 {
return "goto";
return "goto";
}
pub fn receive(self: *Self, _: tp.pid_ref, m: tp.message) error{Exit}!bool {

View file

@ -54,12 +54,12 @@ pub fn handler(self: *Self) EventHandler {
pub fn name(self: *Self) []const u8 {
return switch (self.operation) {
.move => switch (self.direction) {
.left => "move left to char",
.right => "move right to char",
.left => "move",
.right => "move",
},
.select => switch (self.direction) {
.left => "select left to char",
.right => "select right to char",
.left => "󰒅 ↶ select",
.right => "󰒅 ↷ select",
},
};
}

View file

@ -44,7 +44,7 @@ pub fn handler(self: *Self) EventHandler {
}
pub fn name(_: *Self) []const u8 {
return "open file";
return "open";
}
pub fn receive(self: *Self, _: tp.pid_ref, m: tp.message) error{Exit}!bool {