Clone this repo to the home folder (~)
Install GNU Stow
Create ~/.config/ if the folder does not exist
cd into ~/dotfiles
Use stow to create symlinks:
stow --target ~ /.config . # Use `stow --target ~/.config -D .` to delete
stow zsh
只列自己客製化的部分。LazyVim / Ghostty / Tmux 原生預設快捷鍵不重複列出。
Key
Action
Cmd + C / Cmd + V
Copy / Paste
Cmd + ,
Open config
Cmd + Shift + ,
Reload config
Cmd + Shift + O
Toggle background opacity
Key
Action
jk (insert)
Exit to normal mode (vi-mode)
Ctrl + P
History search backward (prefix match)
Ctrl + N
History search forward (prefix match)
t (command)
Attach/create tmux session main
Prefix 已從預設 Ctrl+B 改為 Ctrl + S 。以下 <prefix> 代表按一次 prefix 後再按的鍵。
Key
Action
<prefix> |
Split pane 左右
<prefix> _
Split pane 上下
<prefix> h / j / k / l
Resize pane(可連按)
<prefix> r
Reload tmux.conf
<prefix> Ctrl + S
Save session (tmux-resurrect)
<prefix> Ctrl + R
Restore session (tmux-resurrect)
Ctrl + h / j / k / l
Seamless 切換 vim/tmux 窗格 (vim-tmux-navigator)
v (copy-mode)
Begin selection
y (copy-mode)
Copy selection
Leader 為 <space>(LazyVim 預設)。
Key
Action
jk (insert)
Exit insert mode
<leader>nh
Clear search highlights
Ctrl + A
Select all (gg V G)
Ctrl + D
Jump to next diagnostic
Key
Action
<leader>sv
Split vertical
<leader>sh
Split horizontal
<leader>se
Equalize splits
<leader>sx
Close current split
Key
Action
Tab
Next buffer
Shift + Tab
Previous buffer
Ctrl + P
Pick buffer
<leader>X
Close current buffer
<leader>A
Close all buffers except current
Treesitter (incremental selection)
Key
Action
S
Start / expand selection
Backspace
Shrink selection
Key
Action
]n / [n
Next / previous test
]N / [N
Next / previous failed test
Key
Action
<leader>cf
Crate features popup
<leader>cd
Crate dependencies popup
<leader>cH
Open crate homepage
<leader>cG
Open crate repository
<leader>cD
Open crate documentation
<leader>cC
Open on crates.io