laktak / extrakto

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

Seperate keybindings tied to filters #123

Closed oysandvik94 closed 3 months ago

oysandvik94 commented 4 months ago

Usually I know whether I want to copy a word or a line before I trigger Extracto. It would be great if I could have one keybinding for each filter, instead of having to change filter once the fzf window is open.

I wouldn't mind trying to make a PR if this is a feature that makes sense.

laktak commented 4 months ago

@marcdeop implemented a feature in #118 to set the initial filter with a second argument to open.sh.

I haven't gotten around to document this in the README yet. It works like this:

tmux bind-key YOUR-KEY run-shell "~/.tmux/plugins/extrakto/scripts/open.sh \"#{pane_id}\" FILTER-NAME"

Would that work for you?

oysandvik94 commented 3 months ago

Sorry for the late answer, that's exactly what I needed. Thanks!