summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/config.zig b/src/config.zig
index 79fd7fc9..c9d414ca 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -224,10 +224,18 @@ pub const leader_path = paths: {
// Native-only filesystem theme commands. ThemeFile needs an operand and
// DumpThemes is intentionally occasional, so both stay word-executed
// rather than spending leader chords.
- if (pardes.platform != .web) {
+ if (pardes.hosted) {
table.set(.ThemeFile, null);
table.set(.DumpThemes, null);
}
+ // The bare-metal memory words. Peek, Poke and Hexdump all take an ADDRESS,
+ // so none of them can have a leader path for the reason Theme and Msg have
+ // none: a key path names a builtin and can never carry an operand.
+ if (builtins.Peek.enabled) {
+ table.set(.Peek, null);
+ table.set(.Poke, null);
+ table.set(.Hexdump, null);
+ }
// The pane-local PDF commands exist only in MuPDF builds through their
// explicit registry availability, so name their paths inside the same
// comptime branch. PdfTint/PdfFit retain their display slots and
@@ -787,6 +795,10 @@ pub const pdf_sections_buffer = "+PdfSections";
pub const hover_buffer = "+Hover";
pub const lsp_buffer = "+Lsp";
pub const changelog_buffer = "+Changelog";
+/// The two memory windows a bare-metal build's Peek and Hexdump render. Absent
+/// from every hosted build along with the builtins that name them.
+pub const peek_buffer = "+Peek";
+pub const hexdump_buffer = "+Hexdump";
/// The empty buffer New and Newcol open: no file behind it yet, so Save asks
/// for a path (prefilled with the inherited directory).
pub const scratch_buffer = "+New";