X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=tmux%2F.tmux.conf;h=7ca32a6469748f045d5f5f9b6929bc11a6d16d0c;hb=7518da30061fd45612e37e9eac07b1513bdb5b95;hp=c59768cdc34863856720d6fb5c8a5c73ef1c7fad;hpb=47f7d2b5f4a10a65950b0e3d5b07694bb2ce5dfa;p=dotfiles.git diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index c59768c..7ca32a6 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -1,9 +1,10 @@ set-option -g mode-keys vi set-option -g base-index 1 set-option -g default-terminal "screen-256color" -set-option -g escape-time 50 +set-option -g escape-time 1 set-option -g repeat-time 0 set-option -g history-limit 20000 +set-option -g renumber-windows on set-option -g prefix C-a unbind-key C-b @@ -12,6 +13,7 @@ bind-key C-a send-prefix bind-key -n C-PgUp previous-window bind-key -n C-PgDn next-window bind-key -n S-PgUp copy-mode -u + bind '"' split-window -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}" @@ -23,13 +25,35 @@ set-option -g status-justify centre set-window-option -g automatic-rename on set-window-option -g window-status-format "#I:#W:#T#F" -set-window-option -g window-status-bg green -set-window-option -g window-status-fg black +set-window-option -g window-status-style "bg=green fg=black" set-window-option -g window-status-current-format "#I:#W#F" -set-window-option -g window-status-current-bg red -set-window-option -g window-status-last-bg cyan +set-window-option -g window-status-current-style "bg=red" +set-window-option -g window-status-last-style "bg=cyan" -bind-key u capture-pane -J \; save-buffer /tmp/tmux-buffer \; split-window 'urlview /tmp/tmux-buffer' \; delete-buffer -bind-key y capture-pane -J \; save-buffer /tmp/tmux-buffer \; split-window 'vim /tmp/tmux-buffer' \; delete-buffer bind-key b set-option status unbind-key L + +bind-key t display-menu \ + dict d "popup -KE -R ~/bin/dict.sh" \ + top t "popup -KE -R \"top -s 1\"" + +bind-key u { + capture-pane -J + save-buffer /tmp/tmux-buffer + delete-buffer + popup -EK -R "urlview /tmp/tmux-buffer" +} + +bind-key y { + capture-pane -J + save-buffer /tmp/tmux-buffer + delete-buffer + split-window 'vim -c "set listchars=" -c "match ExtraWhitespace //" /tmp/tmux-buffer' +} + +bind-key Y { + capture-pane -J -S - -E - + save-buffer /tmp/tmux-buffer + delete-buffer + split-window 'vim -c "set listchars=" -c "match ExtraWhitespace //" /tmp/tmux-buffer' +}