IngoMeyer441 / tmux-easy-motion

Vim's easy-motion for tmux
MIT License
81 stars 6 forks source link

Improve docs on how to invoke bidirectional motion #18

Closed mikehaertl closed 2 years ago

mikehaertl commented 2 years ago

Just tried your plugin and it really looks very promising.

I just don't get how to invoke a bidirectional motion. I may be stupid but I read through the README a couple of times now and don't get the meaning of this:

bd-w (bd-* -> bidirectional motion) bd-W bd-e bd-E bd-j

Obviously bd- does not mean that I should press b then d and so on as b already invokes a word-wise back motion. But what does it mean? How do I invoke bidirectional motion?

IngoMeyer441 commented 2 years ago

Hey and thanks for trying my tmux plugin. All key bindings are configurable and in the default setup, the bidirectional motions are not bound to any key. The key-bindings section explains how to configure key bindings or how to set a default motion if you only want to use bd-w, for example.

You could, for example, add this to your .tmux.conf:

set -g @easy-motion-binding-bd-w "w"

and w will highlight all word beginnings, independently of the cursor position.

But I agree with you, that the documentation could be more clear on this.

mikehaertl commented 2 years ago

I see, thanks for the clarification. Maybe really worth a note in the README?

IngoMeyer441 commented 2 years ago

I have added a note a few seconds ago in commit ba3b60ada7cb96bb0af9978e9bb43e1982665c71. :smiley: Thanks for pointing me to this.

mikehaertl commented 2 years ago

Looks good, thanks!