]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
tmux.conf: Run urlview on current screen content with Ctrl-B.
authorSimon Ruderich <simon@ruderich.org>
Mon, 8 Oct 2012 14:24:39 +0000 (16:24 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 8 Oct 2012 14:24:39 +0000 (16:24 +0200)
tmux.conf

index 2d92790968183d1167d274c48f25fe58690a153c..1083a7f6831b216dd13f28b8af490278c424f965 100644 (file)
--- a/tmux.conf
+++ b/tmux.conf
@@ -82,4 +82,9 @@ bind-key C-] paste-buffer
 bind-key -t vi-edit C-n history-down
 bind-key -t vi-edit C-p history-up
 
+# Run urlview on the current screen content. Very useful to follow links.
+# Thanks to Arch wiki (https://wiki.archlinux.org/index.php/Tmux) for the
+# basic idea.
+bind-key C-b capture-pane \; save-buffer ~/.tmp/tmux-urlview \; new-window "$SHELL -c 'urlview < ~/.tmp/tmux-urlview'"
+
 # vim: ft=tmux