Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# prg318 fork information
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this README note should be removed when merging into master.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be also great to add the urlscan into dependency list below.

This fork adds compatibility for urlscan to the tmux urlview plugin

# Tmux urlview

Quickly open any url on your terminal window!
Expand Down
4 changes: 3 additions & 1 deletion urlview.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ find_executable() {
echo "urlview"
elif type extract_url >/dev/null 2>&1; then
echo "extract_url"
elif type urlscan >/dev/null 2>&1; then
echo "urlscan"
fi
}

readonly key="$(get_tmux_option "@urlview-key" "u")"
readonly cmd="$(find_executable)"

if [ -z "$cmd" ]; then
tmux display-message "Failed to load tmux-urlview: neither urlview nor extract_url were found on the PATH"
tmux display-message "Failed to load tmux-urlview: neither urlview, urlscan, nor extract_url were found on the PATH"
else
tmux bind-key "$key" capture-pane -J \\\; \
save-buffer "${TMPDIR:-/tmp}/tmux-buffer" \\\; \
Expand Down