laktak / extrakto

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

extrakto.py: error: argument -a/--add: expected one argument #112

Closed JiyuFang-git closed 6 months ago

JiyuFang-git commented 9 months ago

Hi there,

I did not define my own filter and I leave extrakto.conf as it is.

I'm not setting @extrakto_filter_order either.

But when l start extrakto its always reporting: extrakto.py: error: argument -a/--add: expected one argument

and I'm seeing ^f=filter[] (aka the filter field is empty)

JiyuFang-git commented 9 months ago

ok I think the issue is coming from helpers.sh 6601703823671_ pic

I changed line 149 to readarray -t modes_list <<< "$(get_option @extrakto_filter_order) "

and it works like a charm

could this have sth to do with my bash version?

$ bash --version
GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
laktak commented 9 months ago

Yes, it's listed in the README. Also see https://github.com/laktak/extrakto/wiki/Bash4