irongit

Find and execute tmux commands rather view a list with the ? key binding. A great way to memorize the keys.

now i works

huncholanehuncholaneauthored
parent 3d81502commit e8b9478fc59e84228aa47ed5af236d8d59f0bd8aBrowse files

2 files changed, +6 -4

+2-1scripts/get_and_run.sh
@@ -1,4 +1,5 @@
1-#!/bin/bash
1+#!/usr/bin/env bash
2+
23 get_and_run() {
34 local selection=$(
45 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"