summaryrefslogtreecommitdiff
path: root/nncmpp.c
Commit message (Collapse)AuthorAgeFilesLines
* Process focus eventsPřemysl Eric Janouch2021-06-291-3/+17
| | | | Should help prevent accidents in other windows.
* Minor clarificationsPřemysl Eric Janouch2020-11-051-1/+3
|
* Comment the "poll_elapsed_time" optionPřemysl Eric Janouch2020-10-241-0/+6
|
* Show song duration in the libraryPřemysl Eric Janouch2020-10-241-4/+11
| | | | | | | | Ideally we'd make columns configurable, which isn't trivial. This brings the "Current" and "Library" tabs closer together. Closes #2
* Skip playlists in lsinfo responsesPřemysl Eric Janouch2020-10-241-4/+11
| | | | Instead of merging the fields into other items.
* Refactor the library tab, track durationPřemysl Eric Janouch2020-10-241-66/+73
| | | | | | The `struct strv` was clunky, it's better to store items directly in the format we use for all processing. The additional memory cost is negligible.
* Use '-' instead of '?' for unknown durationPřemysl Eric Janouch2020-10-241-34/+33
| | | | | | | | It is less distracting. Also use mpd_read_time() and load "duration" as well. This value isn't rounded to whole seconds, so we load it before "time" as a fail-safe measure.
* Improve the MPD time parserPřemysl Eric Janouch2020-10-241-9/+18
| | | | | | - reject negative values, which strtoul() happily accepts - deal with an arbitrary number of decimal digits - don't return milliseconds when we fail to parse seconds
* Bind M-Up to the "up" actionPřemysl Eric Janouch2020-10-231-0/+1
| | | | Taken from Windows Explorer, which abandoned the Backspace binding.
* CleanupPřemysl Eric Janouch2020-10-231-25/+30
| | | | No functional change.
* Avoid jumping around in polling modePřemysl Eric Janouch2020-10-231-7/+18
| | | | | | | | While still avoiding busy loops. It works well enough to enable this by default. Closes #1
* Add a comment and update another onePřemysl Eric Janouch2020-10-181-0/+4
|
* Give up and implement elapsed time pollingPřemysl Eric Janouch2020-10-181-4/+35
| | | | | | | | | | | Playback may sometimes stall but it won't produce any events. This popular workaround likes to jump around, though. It might be a good idea to use some kind of hybrid approach. Therefore this is disabled by default so far. Updates #1
* Explain the ticking mechanismPřemysl Eric Janouch2020-10-181-1/+7
| | | | Took time to read. Also fix an invalid comment.
* Bump liberty and termoPřemysl Eric Janouch2020-10-101-10/+6
|
* Make direct SHOUTcast streams work againPřemysl Eric Janouch2020-10-101-0/+4
| | | | | | Might be an issue specific to my bbc-on-ice, since we're not asking for SHOUTcast by including "Icy-MetaData: 1" in request headers but the proxy always outputs an "ICY 200 OK" header.
* Remove unnecessary quotes from macro definitionsPřemysl Eric Janouch2020-09-201-73/+73
| | | | The behaviour is defined by the standard.
* Support iterating tabs with C-PgUp/Down and C-Left/RightPřemysl Eric Janouch2020-09-071-7/+29
|
* Support vi-like scrolling with C-y and C-ePřemysl Eric Janouch2020-08-011-0/+2
|
* Name changePřemysl Eric Janouch2020-08-011-1/+1
|
* Workaround cURL bugPřemysl Janouch2019-02-241-0/+3
|
* Fix unmarking behaviour, cleanupPřemysl Janouch2018-10-291-18/+26
|
* Allow moving multiple items in the Current tabPřemysl Janouch2018-10-291-13/+29
|
* Remove an outdated commentPřemysl Janouch2018-10-291-1/+0
|
* Make holding Shift+Up/Down behave betterPřemysl Janouch2018-10-291-25/+37
|
* Update selection on playlist changesPřemysl Janouch2018-10-291-1/+54
|
* Add actions for repeat/random/single/consumePřemysl Janouch2018-10-291-0/+16
| | | | | Now the user can at least toggle them from the help tab, or even bind them as necessary.
* Make help tab items actionablePřemysl Janouch2018-10-291-18/+57
|
* Show unbound actions in helpPřemysl Janouch2018-10-291-3/+30
|
* Implement multiselect for deletion in Current tabPřemysl Janouch2018-10-211-3/+25
|
* Add keyboard shortcut d for deletionPřemysl Janouch2018-10-211-0/+1
| | | | As in vi(1).
* Add keyboard shortcuts g/G for goto top/bottomPřemysl Janouch2018-10-211-0/+2
| | | | As in less(1).
* Add a search feature for Library tabPřemysl Janouch2018-10-211-27/+113
|
* CleanupPřemysl Janouch2018-10-201-24/+23
|
* Implement sequential multiselect for Library tabPřemysl Janouch2018-10-201-12/+106
|
* Fix input handlingPřemysl Janouch2018-10-201-1/+1
| | | | | When app_process_termo_event() returns false, it always means to beep, not to quit the application.
* Mark an issue for laterPřemysl Janouch2018-10-201-0/+2
|
* Move the line editor into its own filePřemysl Janouch2018-10-201-263/+59
| | | | Trying to make it reusable in other projects.
* Use a common algorithm for scrollbarsPřemysl Janouch2018-10-201-23/+19
| | | | Let's have reasonable behaviour with Unicode one as well.
* Improve fallback scrollbar behaviourPřemysl Janouch2018-10-201-8/+29
|
* Bind the </> keys to previous/nextPřemysl Janouch2018-09-261-0/+2
| | | | As in mpv.
* Fix undefined behaviourPřemysl Janouch2018-07-211-2/+5
|
* Relicense to 0BSD, update mail addressPřemysl Janouch2018-06-241-3/+2
| | | | | | | | | I've come to the conclusion that copyright mostly just stands in the way of software development. In my jurisdiction I cannot give up my own copyright and 0BSD seems to be the closest thing to public domain. The updated mail address, also used in my author/committer lines, is shorter and looks nicer. People rarely interact anyway.
* CleanupPřemysl Janouch2017-06-271-10/+8
|
* Reorganize actionsPřemysl Janouch2017-06-271-45/+45
|
* Improve the Help tabPřemysl Janouch2017-06-271-19/+51
| | | | | | | | There are now up to three bindings per action by default, so grouping is desirable. We can even follow the more or less logical order given by enumeration values. It should be much easier to find what you need.
* CleanupPřemysl Janouch2017-06-271-19/+16
|
* Customizable key bindingsPřemysl Janouch2017-06-271-88/+186
|
* Make Del/Bksp eat whole graphemesPřemysl Janouch2017-06-261-5/+17
| | | | Tested on some zalgo text.
* Make left/right skip non-spacing charactersPřemysl Janouch2017-06-261-2/+6
|