Rename mode command to enter_mode

This commit is contained in:
Isaac Freund 2020-06-01 00:04:05 +02:00
parent e43bb78160
commit 134eff2593
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11
3 changed files with 6 additions and 6 deletions

View file

@ -228,7 +228,7 @@ pub fn init(self: *Self, allocator: *std.mem.Allocator) !void {
allocator,
c.XKB_KEY_F11,
mod,
&[_][]const u8{ "mode", "passthrough" },
&[_][]const u8{ "enter_mode", "passthrough" },
));
// Change master orientation with Mod+{Up,Right,Down,Left}
@ -270,7 +270,7 @@ pub fn init(self: *Self, allocator: *std.mem.Allocator) !void {
allocator,
c.XKB_KEY_F11,
mod,
&[_][]const u8{ "mode", "normal" },
&[_][]const u8{ "enter_mode", "normal" },
));
// Float views with app_id "float"

View file

@ -29,7 +29,7 @@ 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 mode = @import("command/mode.zig").mode;
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;
@ -71,7 +71,7 @@ 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 = "mode", .impl = impl.mode },
.{ .name = "enter_mode", .impl = impl.enterMode },
.{ .name = "send_to_output", .impl = impl.sendToOutput },
.{ .name = "spawn", .impl = impl.spawn },
.{ .name = "tag_view", .impl = impl.tagView },

View file

@ -21,7 +21,7 @@ const Error = @import("../command.zig").Error;
const Seat = @import("../Seat.zig");
/// Switch to the given mode
pub fn mode(
pub fn enterMode(
allocator: *std.mem.Allocator,
seat: *Seat,
args: []const []const u8,