Find and execute tmux commands rather view a list with the ? key binding. A great way to memorize the keys.
now i works
2 files changed, +6 -4
+2-1scripts/get_and_run.sh
| @@ -1,4 +1,5 @@ | ||
| 1 | -#!/bin/bash | |
| 1 | +#!/usr/bin/env bash | |
| 2 | + | |
| 2 | 3 | get_and_run() { |
| 3 | 4 | local selection=$( |
| 4 | 5 | tmux list-keys | |
+4-3tmux-fzf-keys.tmux
| @@ -1,3 +1,4 @@ | ||
| 1 | -if-shell '[ -n "#{plugin_path}" ]' \ | |
| 2 | - "bind ? display-popup -E '#{plugin_path}/scripts/get_and_run.sh'" \ | |
| 3 | - "bind ? display-popup -E '$HOME/.tmux/local/tmux-fzf-keys/scripts/get_and_run.sh'" | |
| 1 | +#!/usr/bin/env bash | |
| 2 | + | |
| 3 | +CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| 4 | +tmux bind-key ? display-popup -E "$CURRENT_DIR/scripts/get_and_run.sh" |