mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2025-12-11 23:50:07 +01:00
feat: first complete workflow
This commit is contained in:
parent
58ceb190b6
commit
01d6e62689
5 changed files with 119 additions and 516 deletions
|
|
@ -6,9 +6,13 @@ DEFAULT_COPYRAT_KEY="space"
|
|||
COPYRAT_KEY=$(tmux show-option -gqv @copyrat-key)
|
||||
COPYRAT_KEY=${COPYRAT_KEY:-$DEFAULT_COPYRAT_KEY}
|
||||
|
||||
DEFAULT_COPYRAT_WINDOW_NAME="[copyrat]"
|
||||
COPYRAT_WINDOW_NAME=$(tmux show-option -gqv @copyrat-window-name)
|
||||
COPYRAT_WINDOW_NAME=${COPYRAT_WINDOW_NAME:-$DEFAULT_COPYRAT_WINDOW_NAME}
|
||||
|
||||
BINARY="${CURRENT_DIR}/target/release/tmux-copyrat"
|
||||
|
||||
tmux bind-key $COPYRAT_KEY run-shell -b "${BINARY} -T"
|
||||
tmux bind-key ${COPYRAT_KEY} new-window -d -n ${COPYRAT_WINDOW_NAME} "${BINARY} --window-name ${COPYRAT_WINDOW_NAME} --reverse --unique"
|
||||
|
||||
if [ ! -f "$BINARY" ]; then
|
||||
cd "${CURRENT_DIR}" && cargo build --release
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue