Add physical keyboard parity aliases
This commit is contained in:
+5
-5
@@ -101,12 +101,12 @@ pub const Leader = struct {
|
||||
if (self.message) |message| return message;
|
||||
return switch (self.mode) {
|
||||
.idle => "",
|
||||
.rail => "leader: w save q quit o open p symbols s search r repeat x close",
|
||||
.rail => "leader: w save q quit o open p symbols s search r repeat (digits/%/Esc ok)",
|
||||
.symbol_rail => symbol_mod.rail_status,
|
||||
.search_rail => "search: f current file p project s symbols",
|
||||
.language_rail => "language: h hover s signature o open hover",
|
||||
.diagnostic_rail => "diagnostics: d/open n next p previous f filter-source",
|
||||
.tool_rail => "tools: l lint-file L lint-project b build t test c check x cancel j jump y yank",
|
||||
.language_rail => "language: h hover s sig f fmt o imports a actions (Space path)",
|
||||
.diagnostic_rail => "diagnostics: d open n/p next/prev f source (arrows/Enter ok)",
|
||||
.tool_rail => "tools: l/L lint b build t test c check x cancel j jump y yank",
|
||||
.open_prompt => "open: type path, Enter opens, Esc cancels",
|
||||
};
|
||||
}
|
||||
@@ -443,7 +443,7 @@ test "regular: space opens a visible leader rail and write dispatches" {
|
||||
defer leader.deinit();
|
||||
|
||||
try expectActionTag(.none, try leader.handleEvent(input.normalize(" ")));
|
||||
try std.testing.expectEqualStrings("leader: w save q quit o open p symbols s search r repeat x close", leader.status());
|
||||
try std.testing.expectEqualStrings("leader: w save q quit o open p symbols s search r repeat (digits/%/Esc ok)", leader.status());
|
||||
|
||||
try expectActionTag(.save, try leader.handleEvent(input.normalize("w")));
|
||||
try std.testing.expect(!leader.isActive());
|
||||
|
||||
Reference in New Issue
Block a user