feat: add underlining keybinds ctrl+_, ctrl+= and ctrl+plus
ctrl+_ => select char to underline with ctrl+= => underline with '=' ctrl+plus => underline with '=' preserving spaces closes #350
This commit is contained in:
parent
f727c4882f
commit
223260887d
4 changed files with 79 additions and 0 deletions
|
|
@ -1189,6 +1189,11 @@ const cmds = struct {
|
|||
}
|
||||
pub const replace_meta: Meta = .{ .description = "Replace with character" };
|
||||
|
||||
pub fn underline(self: *Self, ctx: Ctx) Result {
|
||||
return enter_mini_mode(self, @import("mode/mini/underline.zig"), ctx);
|
||||
}
|
||||
pub const underline_meta: Meta = .{ .description = "Underline with character" };
|
||||
|
||||
pub fn open_file(self: *Self, ctx: Ctx) Result {
|
||||
if (get_active_selection(self.allocator)) |text| {
|
||||
defer self.allocator.free(text);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue