Compare commits
2 commits
fc6f2e2cde
...
4da9cee1ee
| Author | SHA1 | Date | |
|---|---|---|---|
| 4da9cee1ee | |||
| 4054a399da |
2 changed files with 20 additions and 0 deletions
|
|
@ -63,6 +63,8 @@
|
||||||
["ctrl+f6", "open_version_info"],
|
["ctrl+f6", "open_version_info"],
|
||||||
["alt+shift+t", "set_session_tab_width"],
|
["alt+shift+t", "set_session_tab_width"],
|
||||||
["alt+d", ["shell_execute_insert", "date", "--iso-8601"]],
|
["alt+d", ["shell_execute_insert", "date", "--iso-8601"]],
|
||||||
|
["alt+=", "expand_centered_view"],
|
||||||
|
["alt+-", "shrink_centered_view"],
|
||||||
["ctrl+alt+shift+d", ["shell_execute_insert", "date", "--iso-8601=seconds"]]
|
["ctrl+alt+shift+d", ["shell_execute_insert", "date", "--iso-8601=seconds"]]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1424,6 +1424,24 @@ const cmds = struct {
|
||||||
self.allocator.free(removed.text);
|
self.allocator.free(removed.text);
|
||||||
}
|
}
|
||||||
pub const clipboard_delete_meta: Meta = .{};
|
pub const clipboard_delete_meta: Meta = .{};
|
||||||
|
|
||||||
|
pub fn expand_centered_view(_: *Self, _: Ctx) Result {
|
||||||
|
const conf = config_mut();
|
||||||
|
conf.centered_view_width = conf.centered_view_width + 1;
|
||||||
|
conf.centered_view_min_screen_width = conf.centered_view_min_screen_width + 1;
|
||||||
|
try save_config();
|
||||||
|
resize();
|
||||||
|
}
|
||||||
|
pub const expand_centered_view_meta: Meta = .{ .description = "Expand centered view" };
|
||||||
|
|
||||||
|
pub fn shrink_centered_view(_: *Self, _: Ctx) Result {
|
||||||
|
const conf = config_mut();
|
||||||
|
conf.centered_view_width = conf.centered_view_width - @min(1, conf.centered_view_width);
|
||||||
|
conf.centered_view_min_screen_width = conf.centered_view_min_screen_width - @min(1, conf.centered_view_min_screen_width);
|
||||||
|
try save_config();
|
||||||
|
resize();
|
||||||
|
}
|
||||||
|
pub const shrink_centered_view_meta: Meta = .{ .description = "Shrink centered view" };
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const MiniMode = struct {
|
pub const MiniMode = struct {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue