rename to tmux-jump

This commit is contained in:
schasse 2020-02-01 23:42:01 +01:00
parent 0273b19164
commit 55224bba58
No known key found for this signature in database
GPG key ID: 5497EFF3E3E1CACD
5 changed files with 6 additions and 6 deletions

View file

@ -4,7 +4,7 @@
title="tmux-jump" />
</p>
[![Build Status](https://travis-ci.org/schasse/tmux-easymotion.svg?branch=master)](https://travis-ci.org/schasse/tmux-easymotion)
[![Build Status](https://travis-ci.org/schasse/tmux-jump.svg?branch=master)](https://travis-ci.org/schasse/tmux-jump)
A fast way to jump wherever you want in your terminal without using the mouse. tmux-jump is written in ruby and can easily be installed via tpm.

View file

@ -81,7 +81,7 @@ def recover_alternate_screen_after
end
def prompt_char! # raises Timeout::Error
tmp_file = Tempfile.new 'tmux-easymotion'
tmp_file = Tempfile.new 'tmux-jump'
Kernel.spawn(
'tmux', 'command-prompt', '-1', '-p', 'char:',
"run-shell \"printf '%1' >> #{tmp_file.path}\"")

View file

@ -4,4 +4,4 @@ tmp_file="$(mktemp)"
tmux command-prompt -1 -p 'char:' "run-shell \"printf '%1' >> $tmp_file\""
current_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ruby "$current_dir/easymotion.rb" "$tmp_file"
ruby "$current_dir/tmux-jump.rb" "$tmp_file"

View file

@ -1,11 +1,11 @@
require_relative '../scripts/easymotion'
require_relative '../scripts/tmux-jump'
require 'pty'
require 'pry'
Config.pane_nr = '%68'
Config.pane_mode = '0'
RSpec.describe 'tmux-easymotion' do
RSpec.describe 'tmux-jump' do
before do
@read, @write = PTY.open
Config.pane_tty_file = @write.path

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
tmux bind-key j run-shell -b "$CURRENT_DIR/scripts/easymotion.sh"
tmux bind-key j run-shell -b "$CURRENT_DIR/scripts/tmux-jump.sh"