summaryrefslogtreecommitdiff
path: root/src/builtins.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/builtins.zig')
-rw-r--r--src/builtins.zig13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/builtins.zig b/src/builtins.zig
index ef769b48..f73c5982 100644
--- a/src/builtins.zig
+++ b/src/builtins.zig
@@ -236,8 +236,8 @@ pub const registry = struct {
// are the default
.toggle, .transition, .scene, .dump_dir, .choice, .lift, .shader_animation, .motion, .shell => false,
.theme, .font, .tagline_size, .window_opacity, .window_blur, .message_ms, .shader, .inactive_dim, .grip_width => true,
- // bare, it says the width (exec.applySettingBuiltin)
- .tab => false,
+ // bare, it says the current value (exec.applySettingBuiltin)
+ .tab, .callstack_depth => false,
};
unreachable;
}
@@ -1839,6 +1839,7 @@ pub const Forward = struct {
/// Select the next Look location across panes; Enter opens it.
pub const LookNext = struct {
+ pub const quiet = true;
pub fn run(c: Ctx) void {
look.lookWalk(c.p, 1);
}
@@ -1846,6 +1847,7 @@ pub const LookNext = struct {
/// Select the previous Look location across panes; Enter opens it.
pub const LookPrev = struct {
+ pub const quiet = true;
pub fn run(c: Ctx) void {
look.lookWalk(c.p, -1);
}
@@ -1952,6 +1954,13 @@ pub const WsDiagnostics = struct {
}
};
+/// Show outermost callers first, with signatures and call sites (gc).
+pub const Callstack = struct {
+ pub fn run(c: Ctx) void {
+ c.p.lspRequest(c.id, .callstack, "");
+ }
+};
+
/// List the callers of the function under the cursor.
pub const Callers = struct {
pub fn run(c: Ctx) void {