691 Commits

Author SHA1 Message Date
dependabot[bot]
08cb9c3796
build(deps): bump golang.org/x/image from 0.5.0 to 0.10.0 (#69)
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.5.0 to 0.10.0.
- [Commits](https://github.com/golang/image/compare/v0.5.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-05 10:01:40 +08:00
dependabot[bot]
880d87eab5
build(deps): bump golang.org/x/image from 0.3.0 to 0.5.0 (#67)
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.3.0 to 0.5.0.
- [Commits](https://github.com/golang/image/compare/v0.3.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-26 20:45:48 +08:00
Marcelina Hołub
4288b08fee
Make the app more platform agnostic and bump deps versions (#66)
* chore(deps): bump several dependency versions

* fix(playlist): add darwin build constraints

fix(playlist): add darwin build constraint
2023-01-14 18:04:16 +08:00
Marcelina Hołub
50f449ec58
Better config/new test for start.go (#65)
* chore(tests): add test for getArgs in ./start.go

* test(start): add unit test for getArgs

* fix(todos): Change XDG_* to os.UserHomeDir
2023-01-11 18:51:42 +08:00
raziman
e8ddb8b326 readme improvement 2022-07-03 10:18:46 +08:00
raziman
a393aec7ab add description to termusic 2022-07-03 10:18:01 +08:00
raziman
89b3c7ef7b add similar projects 2022-07-03 10:16:27 +08:00
Raziman Mahathir
cda14ffa11
Merge pull request #63 from voidshard/master
Fix panic on Ctrl+Arrow
v2.1.2
2022-07-03 09:30:16 +08:00
augustus
51d55bb102 Fix panic on Ctrl+Arrow
I often hit fn+arrow up / down to page up / down. If I accidentally
hit ctrl gomu panics.

Investigated it today and the issue is the rune extraction -- it assumes
we'll always have Ctrl+<rune> but in the case of an arrow key we have
Ctrl+Up or Ctrl+Down.

Essentially this simply checks if the regex found any matches, if not we
return not result akin to a failed map lookup. I considered raising an
error, but that would be just as annoying as a panic when I fat finger
Ctrl :)

```golang
panic: runtime error: index out of range [0] with length 0 [recovered]
	panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/rivo/tview.(*Application).Run.func1()
	/home/augustus/go/pkg/mod/github.com/rivo/tview@v0.0.0-20210312174852-ae9464cc3598/application.go:243 +0x4d
panic({0xadb840, 0xc00076a000})
	/usr/local/go/src/runtime/panic.go:1038 +0x215
github.com/issadarkthing/gomu/anko.extractCtrlRune({0xc00003cc90, 0x9})
	/home/augustus/go/src/github.com/issadarkthing/gomu/anko/anko.go:216 +0x75
github.com/issadarkthing/gomu/anko.(*Anko).KeybindExists(0xb23243, {0xb2591b, 0x6}, 0xc00007e040)
	/home/augustus/go/src/github.com/issadarkthing/gomu/anko/anko.go:158 +0x78
main.start.func4(0xc00007e040)
	/home/augustus/go/src/github.com/issadarkthing/gomu/start.go:516 +0x14b
github.com/rivo/tview.(*Application).Run(0xc00023e2a0)
	/home/augustus/go/pkg/mod/github.com/rivo/tview@v0.0.0-20210312174852-ae9464cc3598/application.go:318 +0x6d2
main.start(0xc00023e2a0, {0xc00028e840, 0xc00003d4b6, 0xc00028e850, 0xc00003d4b7})
	/home/augustus/go/src/github.com/issadarkthing/gomu/start.go:546 +0xceb
main.main()
	/home/augustus/go/src/github.com/issadarkthing/gomu/main.go:21 +0x10e
```
2022-07-02 17:07:55 +01:00
raziman
3f27aafd10 remove commented code 2022-03-29 12:17:11 +08:00
Raziman Mahathir
2f6d4afc46
add donation link 2021-06-14 05:21:50 +00:00
Raziman Mahathir
09c253f550
Merge pull request #55 from tramhao/refactor
Refactor
2021-05-08 10:31:11 +08:00
tramhao
7cd23d3256 go.mod reference for id3v2 changed to indirect 2021-05-06 17:09:54 +08:00
tramhao
2b2523ee03 minor fix: data race for subtitle pointer 2021-05-06 14:36:51 +08:00
tramhao
644c4fa695 Fix tests 2021-04-30 16:08:16 +08:00
tramhao
371c358847 minor fix: delete not needed audio 2021-04-30 15:59:57 +08:00
tramhao
c745a91ec2 Refactor: minor fix: new to initialize struct 2021-04-30 15:53:12 +08:00
tramhao
16a1f7287e refactor: new keyword to initialize the struct 2021-04-30 15:44:24 +08:00
tramhao
dcb8fda7ba refactor: extract audiofile.go from playlist.go 2021-04-30 15:33:53 +08:00
tramhao
05bf59e30a minor fix: size of tageditor 2021-04-28 22:37:06 +08:00
Raziman Mahathir
399edd1a69
Merge pull request #54 from tramhao/master
Fix for album photo
2021-04-26 11:35:32 +08:00
tramhao
d6ded154d1 change photo position to right-down corner of queue panel 2021-04-21 15:43:16 +08:00
tramhao
c8f71a8b28 fix: resize photo when adjust terminal size 2021-04-19 22:50:02 +08:00
tramhao
c123051716 More reliable resize of photo 2021-04-19 16:18:38 +08:00
Raziman Mahathir
3c95c94980
Merge pull request #51 from tramhao/master
Fix race conditions. Add thumbnail preview. Fix search bar freezes whole UI
2021-04-18 08:50:25 +08:00
tramhao
e2853a94f4 README update info about album cover 2021-04-17 01:12:20 +08:00
tramhao
008c39e925 Rename GetLyric interface to conform to standard naming conventions 2021-04-14 11:11:47 +08:00
tramhao
a740744d27 hide album photo when big popup on top 2021-04-13 23:34:30 +08:00
tramhao
5b5c6be651 Minor Fix: clear album photo if no photo embeded 2021-04-13 14:20:00 +08:00
tramhao
29894636cc Refactor lrc.go:GetText() 2021-04-13 14:02:34 +08:00
tramhao
fca438aa32 1. Fix: lyric negative offset means timestamp add. 2. Refactor: add lyric.GetText() and hide details from gomu 2021-04-13 13:22:17 +08:00
tramhao
17b91bd9ff adjust order of imports in playingbar.go 2021-04-09 10:42:45 +08:00
tramhao
037aacdd48 remove unnecessary import C 2021-04-09 10:33:29 +08:00
tramhao
ae123b4db1 fix: playing song is saved when queue is empty 2021-04-08 23:11:37 +08:00
tramhao
ca5051fa13 Fixed:position of photo window 2021-04-08 22:54:22 +08:00
tramhao
f8c1d36c3e not fully fixed: position of ueberzug window 2021-04-08 17:13:51 +08:00
tramhao
4313d904da don't quit when error happens 2021-04-08 15:21:09 +08:00
tramhao
34ec606f81 show photo of embeded 2021-04-08 15:14:37 +08:00
tramhao
904c89562e testing ueberzug 2021-04-08 12:05:48 +08:00
tramhao
5a3f418a2c error handling for deleteSong and deletePlaylist 2021-04-08 03:04:39 +08:00
tramhao
f229a8b97a minor fix:1.deleteitem in queue move more natural. 2. Add queue to the first item so that it can be played with skip 2021-04-08 02:36:47 +08:00
tramhao
c916a2f914 minor fix: move to next node before delete file and folder, not to go back root every time 2021-04-08 02:24:52 +08:00
tramhao
a30e18c787 Refactor updateCurrentSong into 3 different functions and now it's more clear 2021-04-07 11:52:13 +08:00
tramhao
d5ee151c34 minor fix updatecurrentSong 2021-04-06 23:32:40 +08:00
tramhao
a7ba78fed2 Minor Fix: updateCurrentSong handles folder rename and paste 2021-04-06 17:18:11 +08:00
tramhao
126f7f7820 fix updateCurrentSong to handle delete 2021-04-06 14:55:40 +08:00
tramhao
7695bc6a7f minor fix: updateCurrentSong check for situation of delete song and playlists 2021-04-06 13:34:41 +08:00
tramhao
010dcc9258 minor fix: refreshbynode fix a bug for rename folders 2021-04-06 12:18:45 +08:00
tramhao
e0ed6b3b17 Minor Fix: remove unnecessary error returned. 2021-04-06 11:38:57 +08:00
tramhao
5435979dc9 remove comments 2021-04-04 00:17:27 +08:00