Created
April 1, 2014 08:40
-
-
Save morhekil/9910296 to your computer and use it in GitHub Desktop.
vroom and tmux setup to to quickly zoom rspec's pane and put it into copy mode.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# quick zoom of another pane, with a given title ("target" in this example) | |
bind-key k run "~/bin/tmux-zoom-pane target" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vroom setup | |
let g:vroom_clear_screen=0 | |
let g:vroom_use_vimux=1 | |
let g:vroom_use_bundle_exec=0 | |
let g:vroom_use_binstubs=0 | |
let g:vroom_use_bundle_exec=0 | |
let g:vroom_rspec_version='1.x' | |
let g:vroom_use_colors=0 | |
" this gives rspec's pane a title "target", that we'll late use to find its id | |
let g:vroom_spec_command="printf '\\033]2;target\\033\\\\' && rspec " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
target_title=$1 | |
target_id=`tmux list-panes -F '#{pane_id},#{pane_title}' | grep $target_title | cut -f1 -d,` | |
tmux resize-pane -Z -t "$target_id" \; copy-mode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment