1
0
mirror of https://github.com/Morantron/tmux-fingers.git synced 2024-07-03 08:31:02 +02:00
tmux-fingers/scripts/help.sh
2016-10-17 23:15:06 +02:00

20 lines
407 B
Bash

#!/usr/bin/env bash
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $CURRENT_DIR/utils.sh
function show_help() {
fingers_pane_id=$1
clear_screen "$fingers_pane_id"
cat << ENDOFHELP
tmux-fingers 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
}