Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
goulinkh committed Jun 28, 2020
1 parent 0e4712d commit a25a009
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 19 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,16 @@ sudo chmod +x /usr/local/bin/podcast-cli

### Keybindings

| Key | Action |
| ---------- | ------ |
| `Enter` | Select |
| `p, Space` | Pause |
| `Esc` | Back |
| `Right` | +10s |
| `Left` | -10s |
| `q` | Exit |
| Key | Action |
| ---------- | -------- |
| `Enter` | Select |
| `p, Space` | Pause |
| `Esc` | Back |
| `Right` | +10s |
| `Left` | -10s |
| `u` | Slowdown |
| `d` | Speedup |
| `q` | Exit |


## Issues
Expand Down
4 changes: 2 additions & 2 deletions ui/Podcasts.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ func (p *PodcastsUI) initGridWidget() error {
ui.NewRow(1.0,
ui.NewCol(1.0/2, p.listWidget),
ui.NewCol(1.0/2,
ui.NewRow(6.0/8, p.detailsWidget),
ui.NewRow(2.0/8, audioPlayerWidget.MainUI()))))
ui.NewRow(6.0/10, p.detailsWidget),
ui.NewRow(4.0/10, audioPlayerWidget.MainUI()))))
return nil
}
func (p *PodcastsUI) initListWidget() {
Expand Down
4 changes: 2 additions & 2 deletions ui/audio_player.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ func (ap *AudioPlayerWidget) HandleEvent(e *ui.Event) (Command, error) {
audioplayer.Seek(position)
}
}
case "]":
case "u":
if audioplayer.MainCtrl != nil && ap.nowPlaying != nil {
audioplayer.IncreaseSpeed()
}
case "[":
case "d":
if audioplayer.MainCtrl != nil && ap.nowPlaying != nil {
audioplayer.DecreaseSpeed()
}
Expand Down
4 changes: 2 additions & 2 deletions ui/episodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ func (e *EpisodesUI) initGridWidget() error {
ui.NewRow(1.0,
ui.NewCol(1.0/2, e.listWidget),
ui.NewCol(1.0/2,
ui.NewRow(6.0/8, e.detailsWidget),
ui.NewRow(2.0/8, audioPlayerWidget.MainUI()))))
ui.NewRow(6.0/10, e.detailsWidget),
ui.NewRow(4.0/10, audioPlayerWidget.MainUI()))))
return nil
}

Expand Down
4 changes: 2 additions & 2 deletions ui/genres.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (g *GenresUI) newGridWidget() error {
ui.NewRow(1.0,
ui.NewCol(1.0/2, g.listWidget),
ui.NewCol(1.0/2,
ui.NewRow(6.0/8, placeholder),
ui.NewRow(2.0/8, audioPlayerWidget.MainUI()))))
ui.NewRow(6.0/10, placeholder),
ui.NewRow(4.0/10, audioPlayerWidget.MainUI()))))
return nil
}
2 changes: 1 addition & 1 deletion ui/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func newHelpBarWidget() *widgets.Paragraph {
"[Esc ](fg:black)[Back](fg:black,bg:green) " +
"[Right ](fg:black)[+10s](fg:black,bg:green) " +
"[Left ](fg:black)[-10s](fg:black,bg:green) " +
"[ d ](fg:black)[Speeddown](fg:black,bg:green)" +
"[ d ](fg:black)[Slowdown](fg:black,bg:green)" +
"[ u ](fg:black)[Speedup](fg:black,bg:green)" +
"[ q ](fg:black)[Exit](fg:black,bg:green)"
helpBarWidget.Border = false
Expand Down
4 changes: 2 additions & 2 deletions ui/sub_genres.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ func (g *SubGenresUI) newGridWidget() error {
ui.NewRow(1.0,
ui.NewCol(1.0/2, g.listWidget),
ui.NewCol(1.0/2,
ui.NewRow(6.0/8, placeholder),
ui.NewRow(2.0/8, audioPlayerWidget.MainUI()))))
ui.NewRow(6.0/10, placeholder),
ui.NewRow(4.0/10, audioPlayerWidget.MainUI()))))
return nil
}
func (g *SubGenresUI) refreshComponents() {
Expand Down

0 comments on commit a25a009

Please sign in to comment.