mirror of
https://github.com/schasse/tmux-jump.git
synced 2026-09-10 07:06:15 -04:00
rename to tmux-jump
This commit is contained in:
parent
0273b19164
commit
55224bba58
|
|
@ -4,7 +4,7 @@
|
|||
title="tmux-jump" />
|
||||
</p>
|
||||
|
||||
[](https://travis-ci.org/schasse/tmux-easymotion)
|
||||
[](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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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}\"")
|
||||
|
|
@ -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"
|
||||
|
|
@ -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
|
||||
|
|
@ -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"
|
||||
Loading…
Reference in a new issue