Skip to content

Commit

Permalink
Add tmux-open, update tmux e command
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Slusny <[email protected]>
  • Loading branch information
deathbeam committed Jan 19, 2017
1 parent 7f48ba0 commit a43217d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,6 @@
[submodule "lib/vim/vim-gutentags"]
path = lib/vim/vim-gutentags
url = https://github.com/ludovicchabant/vim-gutentags
[submodule "lib/tmux/tmux-open"]
path = lib/tmux/tmux-open
url = https://github.com/tmux-plugins/tmux-open
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,12 @@ To see all helper commands, run `dottool --help`.
* [vim-wiki](https://github.com/vimwiki/vimwiki): Personal Wiki for Vim

### Tmux
* [tmux-sensible](https://github.com/tmux-plugins/tmux-sensible): basic tmux settings everyone can agree on
* [tmux-yank](https://github.com/tmux-plugins/tmux-yank): Plugin for copying to system clipboard
* [tmux-continuum](https://github.com/tmux-plugins/tmux-continuum): Continuous saving of tmux environment. Automatic restore when tmux is started. Automatic tmux start when computer is turned on.
* [tmux-copycat](https://github.com/tmux-plugins/tmux-copycat): Enhances tmux search
* [tmux-open](https://github.com/tmux-plugins/tmux-open): Tmux key bindings for quick opening of a highlighted file or url
* [tmux-resurrect](https://github.com/tmux-plugins/tmux-resurrect): Persists tmux environment across system restarts
* [tmux-continuum](https://github.com/tmux-plugins/tmux-continuum): Continuous saving of tmux environment. Automatic restore when tmux is started. Automatic tmux start when computer is turned on.
* [tmux-sensible](https://github.com/tmux-plugins/tmux-sensible): basic tmux settings everyone can agree on
* [tmux-yank](https://github.com/tmux-plugins/tmux-yank): Plugin for copying to system clipboard
* [vim-tmux-navigator](https://github.com/christoomey/vim-tmux-navigator): Seamless navigation between tmux panes and vim splits

## Thanks to..
Expand Down
9 changes: 5 additions & 4 deletions dotfiles/tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
# Clear screen fix
bind C-l send-keys 'C-l'

# Pipe entire current buffer to vim
bind e run-shell 'tmux capture-pane -S - && tmux split-window -v "tmux show-buffer | view - +$ +\"set clipboard=unnamed\""'
# Pipe entire current buffer to vim and load copied text to tmux buffer
bind e run-shell 'tmux capture-pane -S - && tmux split-window -v "tmux show-buffer | sed \'/^\s*$/d\' | reattach-to-user-namespace view - +$ +\"set clipboard=unnamed\"; reattach-to-user-namespace pbpaste | tmux load-buffer -"'
# }}}
Expand Down Expand Up @@ -104,16 +104,17 @@
# Plugins {{{

run-shell "$DOTHOME/lib/tmux/tmux-sensible/sensible.tmux"
run-shell "$DOTHOME/lib/tmux/vim-tmux-navigator/vim-tmux-navigator.tmux"
run-shell "$DOTHOME/lib/tmux/tmux-yank/yank.tmux"
run-shell "$DOTHOME/lib/tmux/tmux-copycat/copycat.tmux"
run-shell "$DOTHOME/lib/tmux/tmux-resurrect/resurrect.tmux"
run-shell "$DOTHOME/lib/tmux/tmux-open/open.tmux"
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-strategy-nvim 'session'
set -g @resurrect-capture-pane-contents 'on'
run-shell "$DOTHOME/lib/tmux/tmux-resurrect/resurrect.tmux"
set -g @continuum-restore 'on'
set -g @continuum-save-interval '10'
run-shell "$DOTHOME/lib/tmux/tmux-continuum/continuum.tmux"
run-shell "$DOTHOME/lib/tmux/vim-tmux-navigator/vim-tmux-navigator.tmux"

# }}}

Expand Down
1 change: 1 addition & 0 deletions lib/tmux/tmux-open
Submodule tmux-open added at ae3e22

0 comments on commit a43217d

Please sign in to comment.