Skip to content

Access cheatsheets easily in a popup in tmux!

License

Notifications You must be signed in to change notification settings

alps2006/tmux-cht-sh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Access cheatsheets easily in a popup in tmux!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%