Skip to content

Control timeout of instant jump/instant repeat labels separately #150

Open
@thenyeguy

Description

@thenyeguy

Currently, all uses of 2-character search use the same timeout (exit_after_idle_msecs.labeled). However, I would like the timeout to behave differently when an instant jump is triggered. Ultimately, the config I would like to use is for normal labeled jumps to have no timeout (so I have time to process the labels that have been selected), but I would like instant jumps to behave like 1 character search (e.g. the labels disappear quickly).

My general reasoning is that for a normal 2-character search, I'm not done until after I've selected the final label, and once a final label is selected all labels disappear. When using an instant repeat, there will continue to be labels even after my cursor has reached its final destination, and I would like those to disappear automatically after a short timeout.

This is especially confusing for me when an instant jump is triggered, since it feels like lightspeed has exited already, but there are still phantom labels in case I choose to do an instant repeat after.

I'm not sure exactly what fits best with this plugin's philosophy, but one of these two things would definitely match my intuition:

  1. Add a third exit_after_idle_msecs.instant timeout, that I can set to some small value
  2. Use exit_after_idle_msecs.unlabeled for instant jumps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions