laktak / extrakto

extrakto for tmux - quickly select, copy/insert/complete text without a mouse
MIT License
878 stars 45 forks source link

Suggestion for setting @extrakto_key to '' does not work. #61

Closed systemmonkey42 closed 3 years ago

systemmonkey42 commented 3 years ago

The key binding to start. If you have any special requirements (like a custom key table) set this to '' and define a binding in your .tmux.conf. See extrakto.tmux for a sample.

This does not work as described.

The only workaround I've found is to unbind the key afterwards, which is too late as its already removed my existing tab binding.

laktak commented 3 years ago

Yes, this must have stopped working when we added the helper script for the configuration.

Please try set -g @extrakto_key "none"

systemmonkey42 commented 3 years ago

Please try set -g @extrakto_key "none"

Can you make it case-insensitive? (Just in case..)

if [[ "${extrakto_key,,}" != none ]]; then
    tmux bind-key ${extrakto_key} run-shell "\"$extrakto_open\" \"#{pane_id}\""
fi
laktak commented 3 years ago

OK, I'm not overly sensitive on that ;-)