Commit Graph

10 Commits

Author SHA1 Message Date
Anton be71b5ba8a refract some code
* change some comments ## to #
* [code-reuse] use inv to print volume
* remove procedure brackets
2024-04-16 18:36:51 +05:30
Anton 7f35330d6b *[clean-code] push bycopy as pragma instead of individually.
*made notifyPlayerState a proc beacuse template just adds
duplicate code

 - [1] code look clean.
 - [2] obvious.
2024-04-10 09:13:49 +01:00
Anton 92e916e666 *[docs]place what we give you in the above
*[refraction]use export to not import terminal in main
*[design]replace rsplit to split (functionally latter make sense)
2024-04-05 10:02:36 +01:00
Anton c953521f4f *[crossPlat]use pathnorm.`/` instead of unix / to normalze filesys interactions 2024-04-02 21:10:55 +05:30
Anton 2471a09a37 * use getAppDir to make pnimrp run independently on from shell 2024-04-01 16:37:59 +05:30
Anton 84380689ea *[code refeaction]notes(): use reusable code and rm dup code
*dynLibName made a const with when defenition
2024-03-31 11:58:58 +05:30
Anton 444ded4518 *refraction 2024-03-30 12:08:06 +05:30
Anton bff7b33b5c *minor improvemnts
*indent enum val and using stmt properly
*make use default args for waitEvent (for polling), warn
*rearrange init args to better it in
2024-03-28 09:49:43 +05:30
Anton f33ce5bc91 *[regression][x86]fix pointer return SIGSEV when echo event.eventID using mpv_event_name()
*[maintainability]add Event to eventID enums for readability
*[robust]remove IDIdle as its deprecated
*[safety]use let instead var when possible
*[design]make isHttps private, remove isHttps param from doesLinkWork
*eraseLine for nowplaying and event state
*rm parseJ* -> merge to passJArray*
*replace low(qoutes) -> 0
2024-03-27 17:44:08 +05:30
Anton 5aba400859 * modularize term to smaller modules
* stop using fmt and remive strformat as dependency
* created player/ volume, mute , pause for cleaner code
2024-03-26 00:05:48 +05:30