Skip to content

Commit

Permalink
Merge pull request #82 from coolabhays/feature/unfold_hotkey
Browse files Browse the repository at this point in the history
feat: toggle unfold with hotkey
  • Loading branch information
sachaos committed Dec 26, 2022
2 parents df88523 + 96f0f93 commit 96f6bd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions viddy.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,9 @@ func (v *Viddy) Run() error {
v.SetIsShowDiff(!v.isShowDiff)
case 't':
v.SetIsNoTitle(!v.isNoTitle)
case 'u':
b.SetWrap(v.unfold)
v.unfold = !v.unfold
case 'x':
if v.isDebug {
v.ShowLogView(!v.showLogView)
Expand Down Expand Up @@ -709,6 +712,7 @@ var helpTemplate = `Press ESC or q to go back
Toggle diff : [yellow]d[-:-:-]
Toggle header display : [yellow]t[-:-:-]
Toggle help view : [yellow]?[-:-:-]
Toggle unfold : [yellow]u[-:-:-]
Quit Viddy : [yellow]Q[-:-:-]
[::u]Pager[-:-:-]
Expand Down

0 comments on commit 96f6bd2

Please sign in to comment.