mirror of
https://github.com/Morantron/tmux-fingers.git
synced 2024-07-01 08:10:57 +02:00
24 lines
509 B
Bash
24 lines
509 B
Bash
#!/usr/bin/env bash
|
|
|
|
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
source $CURRENT_DIR/utils.sh
|
|
|
|
pushd $CURRENT_DIR
|
|
FINGERS_VERSION=$(git describe --tags | sed "s/-.*//g")
|
|
popd
|
|
|
|
function show_help() {
|
|
fingers_pane_id=$1
|
|
clear_screen "$fingers_pane_id"
|
|
|
|
cat << ENDOFHELP
|
|
tmux-fingers ( $FINGERS_VERSION ) help:
|
|
|
|
- a-z: yank a highlighted hint
|
|
- <space>: toggle compact hints on/off
|
|
- <Ctrl-C>: exit [fingers] mode
|
|
- <esc>: exit help or [fingers] mode
|
|
- ?: show/hide this help
|
|
ENDOFHELP
|
|
}
|