=== removed file 'tmux-buffer-urls' --- tmux-buffer-urls 2012-07-29 12:56:14 +0000 +++ tmux-buffer-urls 1970-01-01 00:00:00 +0000 @@ -1,48 +0,0 @@ -#!/bin/zsh -zparseopts -D \ - h=H -help=H \ - a=A -append=A \ - p:=P -prompt:=P - -if [[ -n $H ]]; then cat <] - -options: - -h --help this help - -a --append append url to the command - -p --prompt TEXT use TEXT as a prompt - -description: - Checks current tmux buffer for URLs and shows them using slmenu. When - user selects one URL it is then passed to a command that was given as - an argument via stdin. In case -a option was used, it is passed as last - argument instead. - If no command was given, the result is saved as new tmux buffer. -END - exit 0 -fi - -#set -x - -if [[ $# == 0 ]]; then - cmd=( tmux load-buffer - ) - A=() -else - cmd=( "$@" ) -fi - -if [[ $#P == 2 ]]; then - sl_args=( -p ${P[2]} ) -else - sl_args=( -p 'open url' ) -fi - -print $+A $#A -URL_RE='(http|ftp)s?://[-[:alnum:]/_.?&#]+' -tmux save-buffer - | egrep -o $URL_RE | slmenu $sl_args -l $(($LINES-2)) | read url -[[ -z "$url" ]] && exit -if (($#A)); then - $cmd $url -else - print -r -- $url | $cmd -fi === removed file 'tmux-capture-urls' --- tmux-capture-urls 2012-07-29 12:56:14 +0000 +++ tmux-capture-urls 1970-01-01 00:00:00 +0000 @@ -1,3 +0,0 @@ -#!/bin/sh -tmux capture-pane -tmux neww "tmux-buffer-urls $*" === removed file 'tmux-rowcount' --- tmux-rowcount 2012-07-29 12:56:14 +0000 +++ tmux-rowcount 1970-01-01 00:00:00 +0000 @@ -1,2 +0,0 @@ -#!/bin/zsh -tmux list-panes -F "#{pane_id} #{pane_height}" | while read pane height; do if [[ $pane == $TMUX_PANE ]]; then print $height; fi; done