tris203 / precognition.nvim

💭👀precognition.nvim - Precognition uses virtual text and gutter signs to show available motions.
MIT License
741 stars 9 forks source link

Come on when needed #62

Closed bdillahu closed 1 month ago

bdillahu commented 3 months ago

Just as a thought, maybe have it appear after someone hits hjkl keys too many times in a row - I.e. if somebody repeats j 30 times, there is probably a better way.

Then I’m sure people could come up with other rules to activate.

and if the user is commonly using the hints , just turn off.

I know, much easier said than done :-)

willothy commented 3 months ago

This is a cool idea! I really like the idea of triggering it via repeated hjkl, similar to hardtime.nvim. That likely wouldn't be too hard to implement - just copy what hardtime.nvim does and then call peek to show the hints until the next movement.

Turning off the hints when users are regularly using them though... that might be difficult. Would definitely be cool though!

tris203 commented 3 months ago

I dont know if this would be within the scope of this plugin.

I don't want to try to be hardtime.

Seeing that @m4xshen has liked the comment above, i wonder if hardtime would be open to the idea of a callback on notify that would allow other functions to be called.

Eg showing the precognition hint?

tris203 commented 1 month ago

This can now be achieved from hardtime