All Projects → hozza → tmux-hints

hozza / tmux-hints

Licence: other
☕️ Automatically show a cheat sheet or notes for any command focused in tmux. e.i. Show vim, zsh, tmux notes/key-combos in a pane automatically while you're using them.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to tmux-hints

cheatsheets
📝 My personal list of cheatsheets
Stars: ✭ 17 (-73.02%)
Mutual labels:  tmux, cheatsheet
dotfiles-legacy
. .✧ · 🌎 ✷ ✫ 🌙 · ✵ 🚀✵ * ✵ · 🌌✫ ✷ · ✧ .
Stars: ✭ 15 (-76.19%)
Mutual labels:  tmux
dotfiles
My dotfiles.
Stars: ✭ 18 (-71.43%)
Mutual labels:  tmux
voyager-cheatsheet
Laravel Voyager Cheat Sheet
Stars: ✭ 32 (-49.21%)
Mutual labels:  cheatsheet
chaakoo
Slice and dice your TMUX windows and panes
Stars: ✭ 82 (+30.16%)
Mutual labels:  tmux
AndroidEssentialLibraries
👻 Android Essential Libraries - A couple of the Android Libraries to use in your Projects 🛠
Stars: ✭ 203 (+222.22%)
Mutual labels:  cheatsheet
dotfiles
cross-platform (linux (arch), macos, android (termux), windows (WSL)) dotfiles and scripts, using yadm
Stars: ✭ 17 (-73.02%)
Mutual labels:  tmux
dotfiles
no passwords here ... I hope 🤞
Stars: ✭ 51 (-19.05%)
Mutual labels:  tmux
dotfiles
⭐ My own world.
Stars: ✭ 12 (-80.95%)
Mutual labels:  tmux
dotfiles
🏡 My dotfiles
Stars: ✭ 64 (+1.59%)
Mutual labels:  tmux
ethz cs summaries
Summaries / Cheat Sheets created at ETH Zurich BsC Computer Science & MsC Data Science
Stars: ✭ 67 (+6.35%)
Mutual labels:  cheatsheet
dotfiles
🚀 tmux, ohmyzsh, powerlevel10k, neovim 🔧
Stars: ✭ 24 (-61.9%)
Mutual labels:  tmux
.dotfiles
💻 My settings for macOS, kitty, zsh, nvim, tmux, and more 🛠
Stars: ✭ 44 (-30.16%)
Mutual labels:  tmux
git-cheats-cli
Git Cheats CLI - A Companion For Gitcheats
Stars: ✭ 13 (-79.37%)
Mutual labels:  cheatsheet
tmux super fingers
A Tmux plugin to open file links from the terminal in vim
Stars: ✭ 44 (-30.16%)
Mutual labels:  tmux
dotfiles
Dotfiles for my personal UNIX-based machines
Stars: ✭ 16 (-74.6%)
Mutual labels:  tmux
scikit-image-cheatsheet
See all scikit-image methods for image creation & manipulation and their output at a glance.
Stars: ✭ 16 (-74.6%)
Mutual labels:  cheatsheet
dotfiles
There is no place like ~/
Stars: ✭ 19 (-69.84%)
Mutual labels:  tmux
pc guidelines
Guidelines for using IvLabs PC. General instructions for maintaining and using any PC/laptop while using Ubuntu for Robotics/DL/RL research.
Stars: ✭ 23 (-63.49%)
Mutual labels:  tmux
dot
No description or website provided.
Stars: ✭ 40 (-36.51%)
Mutual labels:  tmux

tmux-hints

Automatically show a cheat sheet or notes for any command focused in tmux. e.i. Show vim, zsh, tmux notes/key-combos in a pane when using them.

More info the blog post: https://benhoskins.dev/tmux-hints-sh-auto-cheatsheet-for-vim-zsh-tmux/

tmux-hint.sh Screenshot

Install

This is a bash script, you only need bash as a dependency (which you probably already have) and whatever programme you'd like to show the hint file with, default is cat.

$ git clone https://github.com/hozza/tmux-hints.git
$ cd tmux-hints/
$ chmod +x ./tmux-hints.sh
$ ./tmux-hints.sh

Usage

  1. Make some 'hint files' - notes, cheat-sheets or memos for to show when using various commands and save them in ~/hints/.

  2. Run ./tmux-hints.sh in a tmux pane of your choice.

  3. Profit.

When you focus on another pane, running for example, vim .. The pane running tmux-hints.sh will automatically load your 'hint file' within 1 second, when you focus on something else, such as, zsh it'll show your zsh hint file without you having todo anything or pull-up a different notes file.

What's a hint file? I hear you ask, it's a text file of notes you've written and saved in ~/hints/.

e.g. You could include key-combo/shortcut/custom-key-mappings of your new VIM/TMUX config, maybe also notes to remind you about some aspects of it's usage.

Markdown? If you have some sort of markdown viewer installed, and have md files as your hints. You can use the following:

./tmux-hints.sh -o markdown -x md

-o markdown specifies the markdown viewer/opener you have installed (it uses cat by default).

-x md specify the hint file extension.

Taken some other path? If you have your notes/hints stored somewhere else you can specify a path with:

./tmux-hints.sh -p ~/.dotfiles/hints/

e.g. you have your hint files stored like so ~/.dotfiles/hints/vim.txt

Not working?

Be gentle, this is my first attempt at bash scripting.

Use the -v option to show what it's doing and hopefully where it's going wrong.

It uses tmux's built in hooks, specifically pane-focus-in and the tmux format expansion #{pane_current_command}. If you're running a bash script, tmux only returns 'bash' as the command not the script name. So you can't have hint files for specific scripts unfortunately (just put script specific hints in your ~/hints/bash.txt hint file and see them all at once)

This does not come with the 'hint files' - as they are notes personal to you and your setup, and so you'll need to write some! e.g. If you have new vim plugins with custom maps that you can't quite remember just yet.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].