Skip to content

ddzero2c/tmux-easymotion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TMUX Easymotion

  • Tmux prefix is Ctrl+q:
  • Trigger key is s

demo

Q: There are already many plugins with similar functionality, why do we need this one?

A: This one can jump between panes

Installation via TPM

Add plugin to the list of TPM plugins in ~/.tmux.conf:

set -g @plugin 'ddzero2c/tmux-easymotion'
set -g @easymotion-key 's'

Press prefix + I to install

Options:

# Keys used for hints (default: 'asdghklqwertyuiopzxcvbnmfj;')
set -g @easymotion-hints 'asdfghjkl;'

# Border characters
set -g @easymotion-vertical-border ''
set -g @easymotion-horizontal-border ''

# Use curses instead of ansi escape sequences (default: false)
set -g @easymotion-use-curses 'true'

# Debug mode - writes debug info to ~/easymotion.log (default: false)
set -g @easymotion-debug 'true'

# Performance logging - writes timing info to ~/easymotion.log (default: false)
set -g @easymotion-perf 'true'

# Case sensitive search (default: false)
set -g @easymotion-case-sensitive 'true'

# Enable smartsign feature (default: false)
set -g @easymotion-smartsign 'true'

Vim-like Configuration

set-window-option -g mode-keys vi
bind-key -T copy-mode-vi C-v send-keys -X begin-selection \; send-keys -X rectangle-toggle;
bind-key -T copy-mode-vi v send-keys -X begin-selection;
bind-key -T copy-mode-vi V send-keys -X select-line;

Usage

prefix + s -> hit a character -> hit hints (jump to position) -> press ve and y to copy

prefix + ] to paste

Run tests

pytest test_easymotion.py -v --cache-clear

Inspire by

Known issues

  • Render wield when tmux pane contain wide character. - ex. '哈哈'.
  • Scrolled up panes are not supported
  • Broken when tmux window has split panes
  • Jump between panes is not supported

Releases

No releases published

Packages

No packages published