From 86edf20b3cf4a3e8f49d1fac1bbd8dd3c8d8b2e0 Mon Sep 17 00:00:00 2001 From: graelo Date: Sat, 13 Mar 2021 11:27:40 +0100 Subject: [PATCH] refactor: better feat: copyrat.tmux script --- copyrat.tmux | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/copyrat.tmux b/copyrat.tmux index 08c5c1b..eb2bb4c 100755 --- a/copyrat.tmux +++ b/copyrat.tmux @@ -14,15 +14,17 @@ # bind-key -T foobar h new-window -d -n "[copyrat]" '/path/to/tmux-copyrat --window-name "[copyrat]" --pattern-name urls' # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # -# changing this will probably break integration - +# changing this script may break integration with `tmux-copyrat`. # -# Just make sure you first open a named window in the background and provide that name to tmux-copyrat. -# -# Don't even try to run tmux-copyrat with run-shell, this cannot work because Tmux launches these processes -# without attaching them to a pty. -# You could also entirely ignore this file (not even source it) and define all options and bindings -# in your `tmux.conf`. +# Just make sure you first open a named window in the background and provide +# that name to the binary `tmux-copyrat`. +# +# Don't even try to run tmux-copyrat with run-shell, this cannot work because +# Tmux launches these processes without attaching them to a pty. + +# You can also entirely ignore this file (not even source it) and define all +# options and bindings in your `tmux.conf`. CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" BINARY="${CURRENT_DIR}/tmux-copyrat" @@ -36,7 +38,8 @@ setup_option() { } -# Sets the window name when copyrat is run, providing a default if @copyrat-window-name was not defined. +# Sets the window name when copyrat is run, providing a default in case +# @copyrat-window-name was not defined. setup_option "window-name" "[copyrat]" # Sets the keytable for all bindings, providing a default if @copyrat-keytable was not defined.