Commit Graph

187 Commits

Author SHA1 Message Date
Přemysl Eric Janouch 993fe3f2d6
g_ctx -> g
Because it's just plain noise.  But I still enjoy the indicator.
2017-01-29 15:26:55 +01:00
Přemysl Eric Janouch 36e726eca0
Resolve the APP_ATTR situation 2017-01-29 15:17:35 +01:00
Přemysl Eric Janouch 5939c7135a
Handle disconnects better
Reset all state and update the UI.
2017-01-29 15:03:00 +01:00
Přemysl Eric Janouch ae67595c3e
Rewrite mpd_update_playback_state()
- no longer make destructive changes to the state
 - use "duration" and support millisecond precision
 - clean up
2017-01-28 01:53:57 +01:00
Přemysl Eric Janouch efc14a94f0
Trivial source code fixes 2017-01-27 23:53:09 +01:00
Přemysl Eric Janouch e0f005a723
Travis CI: brevify notifications 2017-01-27 23:52:21 +01:00
Přemysl Eric Janouch acd6e32983
Fix memory leaks in uses of the MPD_SIMPLE macro 2017-01-24 16:25:42 +01:00
Přemysl Eric Janouch 912b424515
Use binary search for key bindings 2017-01-24 16:23:20 +01:00
Přemysl Eric Janouch 9697898b42
Update copyright years 2017-01-24 00:18:03 +01:00
Přemysl Eric Janouch 30498ff856
Fix visual regression 2017-01-24 00:12:46 +01:00
Přemysl Eric Janouch f76b060dc2
Mark some memory leaks to be fixed 2017-01-23 23:32:59 +01:00
Přemysl Eric Janouch a1e9d660bd
Bump liberty 2017-01-23 23:32:30 +01:00
Přemysl Eric Janouch fc5981a361
Cleanup 2017-01-17 19:29:39 +01:00
Přemysl Eric Janouch e22eb22d29
Add .travis.yml 2017-01-17 19:26:32 +01:00
Přemysl Eric Janouch 4aea3239b9
Improve double click detection 2016-11-20 23:15:28 +01:00
Přemysl Eric Janouch 1fa2ddbdfd
Fix launch w/o configuration 2016-11-20 23:14:47 +01:00
Přemysl Eric Janouch b9a27cf187
Use case insensitive ordering 2016-10-23 18:51:07 +02:00
Přemysl Eric Janouch 214c6e848b
Show song length in the playlist 2016-10-23 01:01:07 +02:00
Přemysl Eric Janouch 1a1347839c
Handle double clicks on items 2016-10-13 14:03:17 +02:00
Přemysl Eric Janouch 62ac29993e
Nicer playlist 2016-10-13 02:03:32 +02:00
Přemysl Eric Janouch a8deb3c218
Factor out mpd_parse_kv() 2016-10-13 01:50:00 +02:00
Přemysl Eric Janouch 62a08ad4d3
Clean up mpd_process_info(), bump liberty
"command_list_ok_begin" allows us to partition the response easily.
2016-10-13 01:50:00 +02:00
Přemysl Eric Janouch 5bf0410587
Simplify mpd_process_info()
At a cost but still a win as I see it.
2016-10-13 01:49:56 +02:00
Přemysl Eric Janouch fd1d918832
Clean up library_tab_on_data() 2016-10-13 00:48:02 +02:00
Přemysl Eric Janouch 0c65af91d9
First round of Library tab cleanups 2016-10-12 23:45:48 +02:00
Přemysl Eric Janouch e92a23d679
Rename "user actions" to "actions" 2016-10-12 16:06:23 +02:00
Přemysl Eric Janouch 0999159b3d
Update README
Add a picture since people like pictures.
2016-10-12 15:51:50 +02:00
Přemysl Eric Janouch ea6b12ba7d
Hack together a Library tab
This needs serious clean up.  Even though it's not the first iteration.
2016-10-12 15:23:38 +02:00
Přemysl Eric Janouch d364f28039
Fix view after playlist update 2016-10-12 15:10:38 +02:00
Přemysl Eric Janouch 7b79dc3e57
Try to optimize playlists
I'm not entirely sure about this.
2016-10-12 15:10:32 +02:00
Přemysl Eric Janouch 4542bdd239
Move the MPD client interface to liberty
It seems like there aren't going to be any big changes any time soon.
2016-10-11 10:58:38 +02:00
Přemysl Eric Janouch fb75841154
Simplify mpd_client_on_timeout()
No real need to ping the daemon.
2016-10-11 10:58:38 +02:00
Přemysl Eric Janouch b3d9ac2514
Allow switching tabs with just numbers 2016-10-11 10:58:38 +02:00
Přemysl Eric Janouch c0e07ec5d1
Add some actions, implement playlist control 2016-10-11 10:58:14 +02:00
Přemysl Eric Janouch 0b9e21c7fe
Fix regression in appearance 2016-10-10 16:30:15 +02:00
Přemysl Eric Janouch d9f992b23d
Add a dumb Current tab 2016-10-10 16:25:16 +02:00
Přemysl Eric Janouch 01ab646b11
Clean up initialization a bit 2016-10-10 11:13:52 +02:00
Přemysl Eric Janouch e513102318
Rewrite Streams code to be more asynchronous
Also made cURL troubleshooting easier by adding a debug callback.
2016-10-10 10:40:12 +02:00
Přemysl Eric Janouch 29bc035ecf
Ensure UTF-8 when parsing playlists 2016-10-10 10:16:28 +02:00
Přemysl Eric Janouch 44e19d68f0
Bump liberty 2016-10-10 07:48:18 +02:00
Přemysl Eric Janouch 7944a91707
Factor out an abstraction for cURL multi interface 2016-10-10 07:45:17 +02:00
Přemysl Eric Janouch 43da7cd3c9
Generate a manual page
Also mention our fancy new stream feature in the README.
2016-10-09 15:47:25 +02:00
Přemysl Eric Janouch 1f565b4d32
Make the Streams tab actually work
Clean up work is required now.
2016-10-09 09:48:47 +02:00
Přemysl Eric Janouch 4480d3c0cf
Further simplify terminal output
Most mess has been eliminated now, I believe.

Also fixing a bug in row_buffer_space().
2016-10-07 22:15:46 +02:00
Přemysl Eric Janouch 44f114fc3b
Omitted part of the beeping commit 2016-10-07 21:41:32 +02:00
Přemysl Eric Janouch 6edf3d945e
Improve row_buffer_ellipsis()
Fixing a minor appearance regression from one of the last commits.
2016-10-07 00:51:49 +02:00
Přemysl Eric Janouch 4a1646c7e9
Beep on unhandled events
We have app_quit(), let's use the return booleans for something better.
2016-10-07 00:36:43 +02:00
Přemysl Eric Janouch f9744711b5
Simplify row_buffer_ellipsis() invocation 2016-10-07 00:19:22 +02:00
Přemysl Eric Janouch 74e6dd22ff
Factor out stupid column alignment loops 2016-10-06 07:21:36 +02:00
Přemysl Eric Janouch 54936c4bcb
Further optimize terminal output
By calling addstr() once instead of several addch() calls.

As a side effect, it's becoming easier to ditch ncurses altogether.
2016-10-06 07:03:51 +02:00