tig icon indicating copy to clipboard operation
tig copied to clipboard

[BUG] %(text) isn't set in status view, resulting in a problem

Open psprint opened this issue 3 years ago • 0 comments

Hi, I would like to configure tig so that patches are colorized when displayed. I select the patches comfortably in status view, but they aren't by default processed nor colorized in the pager view that opens them. Solution could be the following binding:

bind status <Enter> <zsh -c 'cat %(text) | tig'

However the %(text) var is substituted to an empty string. I see this as a general bug, not only a bug for this particular use case – %(text) should be set as it is also in other views, like the pager view (%(text) is there set to the current highlighted line).

psprint avatar Aug 25 '22 12:08 psprint