Skip to content

Latest commit

 

History

History
77 lines (51 loc) · 1.27 KB

README.md

File metadata and controls

77 lines (51 loc) · 1.27 KB

Tmux cht.sh

Access cheatsheets easily in a popup in tmux!

FZF Selection Viewing

Requirements

  • curl
  • tmux
  • fzf
  • bash

Installation

Install using TPM

Put this in your configuration file,

set -g @plugin 'kenos1/tmux-cht-sh'

Install manually using git

  1. Clone the repository
git clone https://github.com/kenos1/tmux-cht-sh ~/clone/path
  1. Put this line in your config
run-shell ~/clone/path/tmux-cht-sh.tmux
  1. Restart tmux

Usage

To invoke the cheatsheet use the keybind prefixS

Configuration

# cht-sh default options
set -g @cht-sh-win-height '80%'
set -g @cht-sh-win-width '80%'
set -g @cht-sh-key 'S'
  • @cht-sh-key
    Description: Trigger key for the cht searching with prefix-
    Default: S
    Values: A char

  • @cht-sh-win-width
    Description: A operation window width
    Default: 80%
    Values: A number or percent string

  • @cht-sh-win-height
    Description: A operation window height
    Default: 80%
    Values: A number or percent string

Change the pager by changing your PAGER environment variable. This means adding this to your shell config:

# Bash/ZSH example using less
export PAGER="less"