summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/config.zig b/src/config.zig
index ea7a877a..bb033823 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -68,6 +68,7 @@ pub const leader_path = paths: {
.Recent = "fr",
.Grep = "fg",
.Config = "fc",
+ .DumpConfig = null,
.LocationsConfig = null,
.Tutor = "ht",
.Changelog = "hc",
@@ -266,7 +267,7 @@ pub const child_term = "xterm-256color";
pub const child_colorterm = "truecolor";
pub const child_term_program = "pardes";
-pub const topbar_str = "Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit";
+pub const topbar_str = "Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit";
pub const pane_builtins_str = "Tty Collapse Del";
pub const pdf_pane_builtins_str = "Tty PdfSections PdfTint Collapse Del";
@@ -452,7 +453,7 @@ pub const pipe_marker = " |";
pub const search_buffer = "+Search";
pub const help_buffer = "+Help";
-pub const config_buffer = "+Config";
+pub const dump_config_buffer = "+DumpConfig";
pub const effect_code_buffer = "+EffectCode";
pub const jumps_buffer = "+Jumps";
pub const recent_buffer = "+Recent";
@@ -968,7 +969,7 @@ pub const Runtime = struct {
}
};
- // The builtin registry and Config report share this command table.
+ // The builtin registry and DumpConfig report share this command table.
pub const settings = [_]Setting{
.{ .word = "Colors", .action = .{ .toggle = .colors }, .doc = "Syntax colours in text panes, on or off." },
.{ .word = "Wrap", .action = .{ .toggle = .wrap }, .doc = "Long lines wrap onto the next row, on or off." },
@@ -1292,7 +1293,7 @@ pub const Runtime = struct {
/// Each line reads as the command that would set it: the word, then the
/// value you would type after it. No colons, no units — `WindowOpacity 70`
- /// is both what Config prints and what you write back.
+ /// is both what DumpConfig prints and what you write back.
pub fn writeReport(out: *std.Io.Writer, context: ReportContext) !void {
const state = context.state;
var wrote_transition = false;
@@ -1653,7 +1654,7 @@ pub const Runtime = struct {
try std.testing.expect(FontSpec.parse(bad) == null);
}
- test "Config report observes every simple setting and all live context" {
+ test "DumpConfig report observes every simple setting and all live context" {
var state: Runtime = .{};
// Every setting, every context line: the report outgrows 4K.
var storage: [8192]u8 = undefined;