LoginSignup
1
0

More than 5 years have passed since last update.

tig のdiff で長い行が見切れて見えない時

Last updated at Posted at 2019-01-14

tig で diff を見てたら

スクリーンショット 2019-01-14 午後11.27.18.png

右側が見切れていて見れないときがある。

j, k で上下に移動するvim キーバインドなので h, l で左右見れると思ったら別のキーバインドに割り当てられていて悲しい。

まあ 普通に Left キーと Right キーを押せば左右にスクロールします。
でもカーソルキーなんて押したくないですよね(ですよね)。

そこで便利なのが O (大文字のo) を押せば今見ているdiff が最大化されて全画面に表示されます。

または .tigrc に以下を追加すれば折返しが有効になり、デフォルトで見れるようになります。

set wrap-lines = yes
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0