Skip to content

[Feat] Adaptive debounce: wait for typing pause before firing request #54

@PyDevC

Description

@PyDevC

File: lua/model_cmp/commands.lua:57

Feature Introduction: Currently uses a fixed delay timer. If the user is typing fast, the request fires mid-word with incomplete context. Adaptive debounce waits for a typing pause and uses the latest cursor position.

Feature Description:

  1. If user is typing fast (multiple keystrokes within the delay window), keep resetting the timer
  2. When user pauses (no keystrokes for the delay period), fire the request immediately
  3. Record the cursor position at fire time (not at first keystroke)

Is your feature possible with the current status of repo? Yes. Simple timer reset logic change in commands.lua.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI genIssue was generated by AIenhancementNew feature or requestmaintainer triagedmaintainer has triaged the issueneeds more infoAvailable is not sufficient for working on this issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions