feat: add configurable editor idle actions hover and highlight_references

closes #370
This commit is contained in:
CJ van den Berg 2025-11-07 13:37:07 +01:00
parent 06e967a69d
commit 6e78564599
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 18 additions and 2 deletions

View file

@ -93,7 +93,6 @@ pub const ClipboardEntry = struct {
const keepalive = std.time.us_per_day * 365; // one year
const idle_frames = 0;
const input_idle_time_milliseconds = 500;
const mouse_idle_time_milliseconds = 3000;
const init_delay = 1; // ms
@ -313,7 +312,7 @@ fn update_input_idle_timer(self: *Self) void {
_ = self.send_widgets(tp.self_pid(), m) catch {};
}
const delay = std.time.us_per_ms * @as(u64, input_idle_time_milliseconds);
const delay = std.time.us_per_ms * @as(u64, self.config_.input_idle_time_ms);
if (self.input_idle_timer) |*t| {
t.cancel() catch {};
t.deinit();