laktak / extrakto

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

How to make the default filter as "lines" ? #72

Closed vnea closed 3 years ago

vnea commented 3 years ago

Hello,

In my tmux conf, I had this line to make the default filter as "lines":

set -g @extrakto_default_opt "lines"

I updated the plugin and now this setting does not work anymore.

In the documentation it is said that this option has been removed in favor of the "new filter mode": image

But I don't really understand what is this new filter mode.

How can I make "lines" as the default filter mode with the new version (git tag is de8ac3e) ?

jtroo commented 3 years ago

Seems like this section of the README is what you're looking for.

My guess is the first option in the extrakto.conf file will be the default.

laktak commented 3 years ago

I removed this setting when we changed the filter because while 'lines' would still be valid 'path/url' would not.

For now you can't change the default. If you'd like this feature back please submit a PR. The option should be called @extrako_startup_filter, values word, line, all.

vnea commented 3 years ago

I understand, thank you.

As a workaround for the moment, I changed the local source code to use the line mode by default.

For now you can't change the default. If you'd like this feature back please submit a PR. The option should be called @extrako_startup_filter, values word, line, all.

Maybe one day, if i am motivated :D.