1
0
mirror of https://github.com/Morantron/tmux-fingers.git synced 2024-06-29 07:50:56 +02:00
tmux-fingers/scripts/help.sh
2017-04-23 19:04:55 +02:00

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
}