Search the current tmux pane for URLs, use fzf to select one, and either open it or copy it to the system clipboard.
Using TPM
Add this line to your tmux config file, then hit prefix + I:
set -g @plugin 'junegunn/tmux-fzf-url'All you need to do is associate a tmux keybinding to run the Ruby
script. Add something like this to your .tmux.conf configuration file:
bind-key u run -b "/path/to/fzf-url.rb";
If you use byobu, you can put the script in
your byobu configuration directory and use
$BYOBU_CONFIG_DIR/fzf-url.rb.
Press PREFIX + u.
# Bind-key (default: 'u')
set -g @fzf-url-bind 'u'This project is a fork of wfxr/tmux-fzf-url. However, most of the code was completely rewritten.
The MIT License (MIT)
Copyright (c) 2021 Junegunn Choi
Copyright (c) 2018 Wenxuan Zhang