Skip to content

Commit

Permalink
feat: toggle unfold with hotkey
Browse files Browse the repository at this point in the history
    * added hotkey functionality for unfold
    * added key-bindings description for unfold
  • Loading branch information
coolabhays committed Dec 25, 2022
1 parent a251280 commit 023727f
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 @@ -567,6 +567,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 @@ -693,6 +696,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[-:-:-]
[::u]Pager[-:-:-]
Expand Down

0 comments on commit 023727f

Please sign in to comment.