summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/config.zig b/src/config.zig
index 9a7e6848..50748b60 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -1,7 +1,6 @@
const std = @import("std");
const builtin = @import("builtin");
const layout = @import("layout.zig");
-const animation = @import("animation.zig");
const limits = @import("memory.zig").limits;
const pardes = @import("pardes.zig");
const builtins = @import("builtins.zig");
@@ -166,7 +165,6 @@ pub const leader_path = paths: {
if (builtins.capabilities.lift) table.set(.CursorBlink, null);
table.set(.JumpTrail, null);
table.set(.ProgramEsc, null);
- table.set(.Motion, null);
if (builtins.capabilities.lift) table.set(.GripWidth, null);
table.set(.InactiveDim, null);
if (builtins.capabilities.lift) table.set(.Pet, null);
@@ -713,11 +711,6 @@ pub const Runtime = struct {
/// of the theme's `rail_px` (acme's 12px Scrollwid at a 17px tagline):
/// a pixel shell's (docs/typ/themes.typ).
grip_width: u16 = 150,
- /// How the fx track's animations move (animation.Motion): off for
- /// reduced motion.
- /// Smooth by default, tuned so arrivals land inside ยง8.1's 220 ms; the
- /// slower flavours are a choice.
- motion: animation.Motion.Flavour = .smooth,
/// Builtins announce themselves on the message row.
verbose: bool = true,
@@ -879,8 +872,6 @@ pub const Runtime = struct {
window_blur,
message_linger,
dump_dir,
- /// A motion flavour.
- motion,
/// A percentage, 0 through 100.
inactive_dim,
grip_width,
@@ -937,7 +928,6 @@ pub const Runtime = struct {
.{ .word = "CursorBlink", .action = .{ .toggle = .cursor_blink }, .doc = "The cursor blinks, solid while typing, on or off." },
.{ .word = "JumpTrail", .action = .{ .toggle = .jump_trail }, .doc = "A jump of the cursor leaves a short trail that fades, on or off." },
.{ .word = "ProgramEsc", .action = .{ .toggle = .program_esc }, .doc = "In a raw terminal, Esc goes to the program and Shift-Esc backs out, on; off (the default) swaps them." },
- .{ .word = "Motion", .action = .motion, .doc = "How animations move: off, crisp, smooth, bouncy or playful." },
.{ .word = "GripWidth", .action = .grip_width, .doc = "The grip and scrollbar width, as a percent of the theme's rail." },
.{ .word = "InactiveDim", .action = .inactive_dim, .doc = "Fade the unfocused panes' text by a percentage, 0 through 100, 0 off." },
.{ .word = "Pet", .action = .{ .choice = .pet }, .doc = "The window's companion in the workspace tag's blank space: off, cat or frog." },
@@ -1035,7 +1025,6 @@ pub const Runtime = struct {
now.* = stepped(@TypeOf(now.*), now.*, argument) orelse return false;
},
},
- .motion => state.motion = stepped(animation.Motion.Flavour, state.motion, argument) orelse return false,
.inactive_dim => state.inactive_dim = number(u8, argument, " \t\r\n%", 0, 100) orelse return false,
.grip_width => state.grip_width = number(u16, argument, " \t\r\n%", 50, 300) orelse return false,
.callstack_depth => state.callstack_depth = number(u8, argument, " \t\r\n", 1, @import("lsp/lsp.zig").callstack_max_depth) orelse return false,
@@ -1062,7 +1051,6 @@ pub const Runtime = struct {
.choice => |which| switch (which) {
inline else => |field| comptime words.of(@FieldType(Runtime, @tagName(field))),
},
- .motion => comptime words.of(animation.Motion.Flavour),
else => null,
};
}
@@ -1194,7 +1182,6 @@ pub const Runtime = struct {
.choice => |which| switch (which) {
inline else => |field| try out.print("{s} {s}\n", .{ setting.word, @tagName(@field(state, @tagName(field))) }),
},
- .motion => try out.print("{s} {s}\n", .{ setting.word, @tagName(state.motion) }),
};
if (context.locations.len > 0) try out.print("LocationsConfig {s}\n", .{context.locations});
}
@@ -1370,8 +1357,8 @@ pub const Runtime = struct {
.{ "TaglineSize", "73" }, .{ "WindowOpacity", "85" }, .{ "WindowBlur", "40" },
.{ "MessageLinger", "1500" }, .{ "DumpDir", "~/dumps" }, .{ "TermImages", "petscii" },
.{ "JumpScope", "all" }, .{ "SearchPlace", "column" }, .{ "SearchPane", "new" },
- .{ "Motion", "playful" }, .{ "GripWidth", "200" }, .{ "InactiveDim", "35" },
- .{ "CallstackDepth", "16" }, .{ "Tab", "8" }, .{ "SearchRows", "12" },
+ .{ "GripWidth", "200" }, .{ "InactiveDim", "35" }, .{ "CallstackDepth", "16" },
+ .{ "Tab", "8" }, .{ "SearchRows", "12" },
};
for (values) |v| try std.testing.expect(apply(&state, find(v[0]).?, v[1]));
try std.testing.expect(state.font.requested_name.set("Wanted Mono"));