Tig: Vertical diff split?

Created on 14 Aug 2012  路  8Comments  路  Source: jonas/tig

Is it possible to have a vertical diff split pane when hit ?

Most helpful comment

Add

set vertical-split = yes

to your ~/.tigrc ...

All 8 comments

I think this is related to #47.

@v0n #47 seems to be requiring the side-by-side diff, but what I want is just moving the diff pane from the bottom to the right or left of the window when is hit in log view.

Add

set vertical-split = yes

to your ~/.tigrc ...

Add

set vertical-split = yes

to your ~/.tigrc ...

Or even type :set vertical-split = yes in the main view for runtime switch ;-D

Thanks Jonas!

True, I used that for testing. ;) However, there is a potential bug when writing it while in a horizontal split view.

Anyway, now we just need to add `:vsplit diff'? ;)

Thanks @Jonas, I didn't expect such a quick response and fix.

As you say, there is indeed a bug existed when you type :set vertical-split = yes while the horizontal split view is currently open, a vertical view separating line is shown but horizontal view is still there, I have to press <q> and <enter> again to get a vertical split.

So, I think may be a detection should be set to determine if you are in a horizontal view and :set vertical-split = yes is typed, or, if you are in a vertical view and :set vertical-split = no is typed, then just quit and reopen the split view?

To anyone looking at this now I would direct you to this page:
https://www.hscripts.com/tutorials/vim-commands/vertical-diffsplit.html

Thanks @jonas, I didn't expect such a quick response and fix.

As you say, there is indeed a bug existed when you type :set vertical-split = yes while the horizontal split view is currently open, a vertical view separating line is shown but horizontal view is still there, I have to press <q> and <enter> again to get a vertical split.

So, I think may be a detection should be set to determine if you are in a horizontal view and :set vertical-split = yes is typed, or, if you are in a vertical view and :set vertical-split = no is typed, then just quit and reopen the split view?

reopen terminal works for me馃槤

Was this page helpful?
0 / 5 - 0 ratings