Compare commits
3 commits
21fe6103bf
...
ac2a7cfa83
Author | SHA1 | Date | |
---|---|---|---|
ac2a7cfa83 | |||
e7324dc110 | |||
3ed13a4ab8 |
2 changed files with 14 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"project": {
|
||||
"press": [
|
||||
["ctrl+alt+shift+r", "restart"],
|
||||
["ctrl+e", "find_file"],
|
||||
["ctrl+shift+n", "create_new_file"],
|
||||
["ctrl+r", "open_recent_project"],
|
||||
|
@ -38,6 +39,7 @@
|
|||
["f5", ["create_scratch_buffer", "*test*"], ["shell_execute_insert", "zig", "build", "test"]],
|
||||
["f7", ["create_scratch_buffer", "*build*"], ["shell_execute_insert", "zig", "build"]],
|
||||
["ctrl+f6", "open_version_info"],
|
||||
["alt+shift+t", "set_session_tab_width"],
|
||||
["alt+d", ["shell_execute_insert", "date", "--iso-8601"]],
|
||||
["ctrl+alt+shift+d", ["shell_execute_insert", "date", "--iso-8601=seconds"]]
|
||||
]
|
||||
|
|
|
@ -756,7 +756,10 @@ const cmds = struct {
|
|||
try save_config();
|
||||
self.logger.print("tab width {}", .{tab_width});
|
||||
}
|
||||
pub const set_tab_width_meta: Meta = .{ .description = "Set tab width" };
|
||||
pub const set_tab_width_meta: Meta = .{
|
||||
.description = "Set tab width",
|
||||
.arguments = &.{.integer},
|
||||
};
|
||||
|
||||
pub fn set_buffer_tab_width(self: *Self, ctx: Ctx) Result {
|
||||
var tab_width: usize = 0;
|
||||
|
@ -766,7 +769,10 @@ const cmds = struct {
|
|||
command.executeName("set_editor_tab_width", ctx) catch {};
|
||||
self.logger.print("buffer tab width {}", .{tab_width});
|
||||
}
|
||||
pub const set_buffer_tab_width_meta: Meta = .{ .description = "Set tab width for current buffer" };
|
||||
pub const set_buffer_tab_width_meta: Meta = .{
|
||||
.description = "Set tab width for current buffer",
|
||||
.arguments = &.{.integer},
|
||||
};
|
||||
|
||||
pub fn set_session_tab_width(self: *Self, ctx: Ctx) Result {
|
||||
var tab_width: usize = 0;
|
||||
|
@ -777,7 +783,10 @@ const cmds = struct {
|
|||
command.executeName("set_editor_tab_width", ctx) catch {};
|
||||
self.logger.print("session tab width {}", .{tab_width});
|
||||
}
|
||||
pub const set_session_tab_width_meta: Meta = .{ .description = "Set tab width for current session" };
|
||||
pub const set_session_tab_width_meta: Meta = .{
|
||||
.description = "Set tab width for current session",
|
||||
.arguments = &.{.integer},
|
||||
};
|
||||
|
||||
pub fn set_theme(self: *Self, ctx: Ctx) Result {
|
||||
var name: []const u8 = undefined;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue