Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the tmux plugin installable with TMUX plugin manager. #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Optional and configurable: `xdg-open` (can be any url opener or browser) and

## Installation

### Manual

Place it somewhere in your path with name `tmux-url-select` and `chmod +x` it.

Add this to your `.tmux.conf`:
Expand All @@ -52,6 +54,13 @@ tmux prefix key (`` ` ``)

bind z run tmux-url-select

### TMUX Plugin Manager

To install tmux-autoreload with TPM (https://github.com/tmux-plugins/tpm), add the
following line to the end of your tmux configuration file:

set-option -g @plugin 'dequis/tmux-url-select'

## Usage

Once you're inside tmux-url-select, keybindings:
Expand Down
4 changes: 4 additions & 0 deletions url-select.tmux
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
tmux bind-key z run-shell "$CURRENT_DIR/tmux-url-select.pl"