abhinav / tmux-fastcopy

easymotion-style text copying for tmux.
GNU General Public License v2.0
66 stars 5 forks source link

Allow binding of non-prefixed key #181

Open niqodea opened 11 months ago

niqodea commented 11 months ago

Hi! Thank you for this plugin, it is a huge leap forward from the clunky native yanking experience.

In my workflow, I am used to assign non-prefixed keybindings for my most common actions. Would it be possible to have an option to specify this in the configuration? I can also write the PR for it if needed.

abhinav commented 11 months ago

Hello! Thanks for the kind words.

Two things:

(1) Yes, that's something that makes sense for tmux-fastcopy to support. This is where the binding is installed, so we'd just need to add -n there based on some opt-in.

(2) This is also already possible today if you invoke tmux-fastcopy directly -- if that's something you'd prefer. e.g. this will work:

bind-key -n C-M-f run-shell -b tmux-fastcopy

That said, again, I'm supportive of having this be possible using the standard way (as a Tmux plugin). I'll be happy to accept a PR for this.