Skip to content

Commit

Permalink
Fix vi-copy
Browse files Browse the repository at this point in the history
  • Loading branch information
shfshanyue committed Sep 7, 2018
1 parent 772ac13 commit 77ad89d
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 16 deletions.
12 changes: 6 additions & 6 deletions .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ bind l select-pane -R # remove repeat, because of ls
bind -r j select-pane -D
bind -r k select-pane -U

# ------ vi -----------------------------------------
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-selection

# ------ status theme -------------------------------
set -g message-style "bg=#00346e, fg=#ffffd7" # tomorrow night blue, base3

Expand All @@ -43,6 +39,9 @@ set -g status-left-length 400
set -g status-right "#{?client_prefix, ⌨ , } #[bg=#0087ff] #(whoami)@#h #[bg=red] %Y-%m-%d %H:%M "
set -g status-right-length 600

set -g set-clipboard on
set -g history-limit 8000

set -wg window-status-format " #I #W "
set -wg window-status-current-format " #I #W "
set -wg window-status-separator ""
Expand All @@ -52,5 +51,6 @@ set -wg window-status-last-style "fg=red"
set -wg pane-active-border-style "fg=blue"
set -wg pane-border-style "fg=#585858" # base01

# ------- copyt to clipboard ------------------------
bind -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# ------- copy to clipboard ------------------------
# bind -t vi-copy y copy-pipe 'xclip -selection clipboard > /dev/null'
# bind -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
24 changes: 14 additions & 10 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Introduce

[tmux:打造精致与实用并存的终端](https://segmentfault.com/a/1190000008188987)

## Config
``` sh
$ git clone git@github.com:shfshanyue/tmux-config.git
Expand All @@ -6,8 +10,8 @@ $ cp tmux-config/.tmux.conf ~/.tmux.conf

## Screencast

![Screencast One](https://raw.githubusercontent.com/shfshanyue/tmux-config/master/images/tmux1.jpeg)
![Screencast One](https://raw.githubusercontent.com/shfshanyue/tmux-config/master/images/tmux2.jpeg)
![Screencast One](https://raw.githubusercontent.com/shfshanyue/tmux-config/assets/tmux1.jpeg)
![Screencast One](https://raw.githubusercontent.com/shfshanyue/tmux-config/assets/tmux2.jpeg)

## Animation

Expand All @@ -18,22 +22,22 @@ $ tmux new -s shanyue # 新建session
$ tmux a -t shanyue # attach
```

![Attach](https://raw.githubusercontent.com/shfshanyue/tmux-config/master/images/attach-origin.gif)
![Attach](https://raw.githubusercontent.com/shfshanyue/tmux-config/assets/attach-origin.gif)

### Split
```
<prefix> + % # 水平分屏
<prefix> + " # 垂直分屏
```

![Split Window](https://raw.githubusercontent.com/shfshanyue/tmux-config/master/images/split-origin.gif)
![Split Window](https://raw.githubusercontent.com/shfshanyue/tmux-config/assets/split-origin.gif)

### Multi Window
```
<prefix> + c # 新建窗口
```

![Multi Window](https://raw.githubusercontent.com/shfshanyue/tmux-config/master/images/multi-window.gif)
![Multi Window](https://raw.githubusercontent.com/shfshanyue/tmux-config/assets/multi-window.gif)

### Find Window
```
Expand All @@ -42,33 +46,33 @@ $ tmux a -t shanyue # attach
<prefix> + a # 切换到最近的窗口
```

![Find Window](https://raw.githubusercontent.com/shfshanyue/tmux-config/master/images/find-window.gif)
![Find Window](https://raw.githubusercontent.com/shfshanyue/tmux-config/assets/find-window.gif)

### Next Layout
```
<prefix> + space
```

![Next Layout](https://raw.githubusercontent.com/shfshanyue/tmux-config/master/images/respace.gif)
![Next Layout](https://raw.githubusercontent.com/shfshanyue/tmux-config/assets/respace.gif)

### Maximise
```
<prefix> + z
```

![Maximise](https://raw.githubusercontent.com/shfshanyue/tmux-config/master/images/prefixz-origin.gif)
![Maximise](https://raw.githubusercontent.com/shfshanyue/tmux-config/assets/prefixz-origin.gif)

### Copy Mode
```
<prefix> + [
[Vim Goto Command] # 任意 vim 跳转命令
```

![Copy](https://raw.githubusercontent.com/shfshanyue/tmux-config/master/images/copy-origin.gif)
![Copy](https://raw.githubusercontent.com/shfshanyue/tmux-config/assets/copy-origin.gif)

### Mouse Mode
```
$ tmux set mouse on # 通过鼠标滚动屏幕,切换窗口
```

![Mouse Mode](https://raw.githubusercontent.com/shfshanyue/tmux-config/master/images/mouse-origin.gif)
![Mouse Mode](https://raw.githubusercontent.com/shfshanyue/tmux-config/assets/mouse-origin.gif)
Binary file removed images/atach-640.gif
Binary file not shown.
Binary file removed images/attach-origin.gif
Binary file not shown.
Binary file removed images/copy-640.gif
Binary file not shown.
Binary file removed images/copy-origin.gif
Binary file not shown.
Binary file removed images/find-window.gif
Binary file not shown.
Binary file removed images/mouse-640.gif
Binary file not shown.
Binary file removed images/mouse-origin.gif
Binary file not shown.
Binary file removed images/multi-window.gif
Binary file not shown.
Binary file removed images/prefixz-640.gif
Binary file not shown.
Binary file removed images/prefixz-origin.gif
Binary file not shown.
Binary file removed images/respace-640.gif
Binary file not shown.
Binary file removed images/respace.gif
Binary file not shown.
Binary file removed images/split-640.gif
Binary file not shown.
Binary file removed images/split-origin.gif
Binary file not shown.
Binary file removed images/tmux1.jpeg
Binary file not shown.
Binary file removed images/tmux2.jpeg
Binary file not shown.

0 comments on commit 77ad89d

Please sign in to comment.