wfxr / tmux-fzf-url

πŸš€ Quickly open urls on your terminal screen!
Other
526 stars 42 forks source link

ERROR: '/home/jason/.local/share/tmux/plugins/tmux-fzf-url/fzf-url.sh '' screen' returned 2 #32

Open eggbean opened 1 year ago

eggbean commented 1 year ago

It's been a while since I used this, but now everything works as expected until I select a URL and then I get this error:

'/home/jason/.local/share/tmux/plugins/tmux-fzf-url/fzf-url.sh '' screen' returned 2

What does this mean?

tony-sol commented 9 months ago

Almost same here, got

~/.config/tmux/plugins/tmux-fzf-url/fzf-url.sh '' screen ''' returned 1

Linux Tony 5.15.123.1-microsoft-standard-WSL2 #1 SMP Mon Aug 7 19:01:48 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux tmux 3.3a

~/.config/tmux/plugins/tmux-fzf-url βœ” $ git status                                                            [master]
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
~/.config/tmux/plugins/tmux-fzf-url βœ” $ git remote -v                                                         [master]
origin  https://git::@github.com/wfxr/tmux-fzf-url (fetch)
origin  https://git::@github.com/wfxr/tmux-fzf-url (push)
~/.config/tmux/plugins/tmux-fzf-url βœ” $ git log -1                                                            [master]
5ad2fe23dbf46976a7e6323fda7cf28dc7adac7a 2023-11-04 23:40:09 +0800 (10 weeks ago) Wenxuan Zhang E feat: allow '_' when parsing github path (HEAD -> master, origin/master, origin/HEAD) (Wenxuan Zhang) [95b9097] Signed-off-by: Wenxuan Zhang <wenxuangm@gmail.com>
~/.config/tmux/plugins/tmux-fzf-url βœ” $  
eggbean commented 9 months ago

I don't think I have tried using this since I posted this, but I just now thought, why does it mention "screen"? Does this plugin work with screen as well or something? Is it trying to pass the command to screen rather than tmux?

tony-sol commented 9 months ago

No, it doesn't use screen (if you mean screen as terminal multiplexer) In my case, there is error in read processing, 'cause i've got read failed 9: Bad file descriptor after some research

eggbean commented 9 months ago

The plugin is actually working perfectly fine for me.

These are my settings in my tmux.conf:

# tmux-fzf-URL
set -g @plugin 'wfxr/tmux-fzf-url'
set -g @fzf-url-fzf-options '-w 50% -h 60% --multi -0 --no-preview --layout reverse --prompt "url: " --no-info --pointer ÔùÅ --color "prompt:#bd93f9,pointer:#bd93f9"'
set -g @fzf-url-history-limit '50'

It works within a popup windows, I have fzf aliased to something called fzfp-tmux and I can't remember if that is a name I came up with myself.

eggbean commented 9 months ago

I just remembered something which may help: When I was having problems like this with a couple of tmux plugins (I can't remember if one of them was this one), it worked on some computers but now on other, and I realised that the ones it didn't work on were Debian-based. Make sure that you have gawk installed, so that awk is aliased to gawk and not mawk. Try:

awk --version