aboutsummaryrefslogtreecommitdiff
path: root/src/command.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-06-01 00:20:49 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-06-01 00:20:49 +0200
commitd59b0791a9722f4b74fafea635daff7b4b5cb162 (patch)
tree23deb5824c78bbd40f7a89116b3a2c463b13d01b /src/command.zig
parent134eff259382edad729bdce4f2b36185111898a2 (diff)
downloadriver-d59b0791a9722f4b74fafea635daff7b4b5cb162.tar.gz
river-d59b0791a9722f4b74fafea635daff7b4b5cb162.tar.xz
Implement declare_mode
Diffstat (limited to 'src/command.zig')
-rw-r--r--src/command.zig6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/command.zig b/src/command.zig
index e2c32b1..bec1b8f 100644
--- a/src/command.zig
+++ b/src/command.zig
@@ -21,6 +21,8 @@ const Seat = @import("Seat.zig");
const impl = struct {
const close = @import("command/close.zig").close;
+ const declareMode = @import("command/declare_mode.zig").declareMode;
+ const enterMode = @import("command/enter_mode.zig").enterMode;
const exit = @import("command/exit.zig").exit;
const focus = @import("command/focus.zig").focus;
const focusAllTags = @import("command/focus_all_tags.zig").focusAllTags;
@@ -29,7 +31,6 @@ const impl = struct {
const layout = @import("command/layout.zig").layout;
const modMasterCount = @import("command/mod_master_count.zig").modMasterCount;
const modMasterFactor = @import("command/mod_master_factor.zig").modMasterFactor;
- const enterMode = @import("command/enter_mode.zig").enterMode;
const sendToOutput = @import("command/send_to_output.zig").sendToOutput;
const spawn = @import("command/spawn.zig").spawn;
const tagView = @import("command/tag_view.zig").tagView;
@@ -63,6 +64,8 @@ const Definition = struct {
// zig fmt: off
const str_to_impl_fn = [_]Definition{
.{ .name = "close", .impl = impl.close },
+ .{ .name = "declare_mode", .impl = impl.declareMode},
+ .{ .name = "enter_mode", .impl = impl.enterMode },
.{ .name = "exit", .impl = impl.exit },
.{ .name = "focus", .impl = impl.focus },
.{ .name = "focus_all_tags", .impl = impl.focusAllTags },
@@ -71,7 +74,6 @@ const str_to_impl_fn = [_]Definition{
.{ .name = "layout", .impl = impl.layout },
.{ .name = "mod_master_count", .impl = impl.modMasterCount },
.{ .name = "mod_master_factor", .impl = impl.modMasterFactor },
- .{ .name = "enter_mode", .impl = impl.enterMode },
.{ .name = "send_to_output", .impl = impl.sendToOutput },
.{ .name = "spawn", .impl = impl.spawn },
.{ .name = "tag_view", .impl = impl.tagView },