Commit Graph

1021 Commits

Author SHA1 Message Date
Andrzej Rybczak f53f81c140 bump version to 0.5_pre 2009-12-19 00:31:06 +01:00
Andrzej Rybczak 5f6f915a3a switch from selected items adder to old screen if db was updated
not doing so inctroduces a very obscure bug: db update forces modification
of browser, media library etc by clearing them and letting theirs Update()
function populate them. but since selected items adder is active at the
moment, this function is never called and we end up trying to add songs
from screen that is empty, which in most cases leads to an out_of_range
exception being thrown.
2009-12-19 00:27:00 +01:00
Andrzej Rybczak 055cf43af3 handle update "properly" (as it's possible) with <mpd-0.16
<mpd-0.16 doesn't support MPD_IDLE_UPDATE, so we need another
extra hack to support that. This whole idle things really starts
to pissing me off.
2009-12-19 00:19:14 +01:00
Andrzej Rybczak ea4c035c4a send idle command immediately after actions that doesn't change mpd status 2009-12-18 23:44:21 +01:00
Andrzej Rybczak 0007ba4082 remove hack that guaranteed proper status update (not needed anymore)
it's fixed for mpd-git, newest mpd-0.15.x doesn't seem to suffer
from this bug anymore, mpd-0.13 doesn't support idle. no idea about
mpd-0.14 though, but come on. if you use it, upgrade.
2009-12-18 23:44:15 +01:00
Andrzej Rybczak 35894b048a require >=libmpdclient-2.1 2009-12-18 23:44:08 +01:00
Frank Blendinger 486f2d32cd enable selecting and add sel. menu in media lib
Previously, selecting entries was only possible in the "songs" column of
the media library. Now it works in the "artists" and "albums" column as
well, allowing one to add whole albums and artist collections to the
playlist at specific positions via the "add selection" menu.
2009-12-11 20:59:44 +01:00
Frank Blendinger b504b346af screen_switcher between current and last screen
Setting the new config variable "screen_switcher_browser_only" to "no"
will make the "key_screen_switcher" key switch between the current and
the last used screen, sort of like the Alt+Tab window switching
mechanism in many window managers.

This (intendedly) works only for the "main" screens (playlist, browser,
media library, etc.) and not for info/lyrics/server info. Those screens
can be closed with the screen_switcher key, but the will not be
remembered.

indentation correction in config
2009-12-09 00:24:15 +01:00
Frank Blendinger 64f64895ac hide inact. "cur playlist" entry in selection menu 2009-12-09 00:24:15 +01:00
Jacek Sowiński 2b6e24131d add bash completion for ncmpcpp 2009-12-09 00:20:29 +01:00
Andrzej Rybczak e6a359ae76 fix crash that happened with empty playlist and pressed space 2009-12-06 14:02:23 +01:00
Andrzej Rybczak d2d716fd35 fix updating bitrate of current song 2009-12-06 01:21:53 +01:00
Andrzej Rybczak 70d1124800 fix refreshing screens with more than one column after seaching/filtering
this bug was caused by db5efc6e
2009-12-06 00:54:50 +01:00
Frank Blendinger e9df8062e7 sort playlists in SelectedItemsAdder menu 2009-12-02 01:50:13 +01:00
Andrzej Rybczak 6f3eca898a refresh lyrics window after local lyrics are reloaded 2009-11-28 12:24:58 +01:00
Andrzej Rybczak ce7be2d476 make SelectedItemsAdder work with local directories 2009-11-26 22:08:31 +01:00
Andrzej Rybczak 5aaafba545 if there is no selected items, treat the current one as selected 2009-11-26 22:01:27 +01:00
Andrzej Rybczak 03129784d4 new feature: add selected items to playlist at given position 2009-11-26 21:41:30 +01:00
Andrzej Rybczak d2b9aee650 add missing files: tolower.{cpp,h} 2009-11-23 21:25:33 +01:00
Andrzej Rybczak 6cd420511d perform case insensitive searching in text fields 2009-11-23 20:18:57 +01:00
Andrzej Rybczak 5aa1613cfb make binding responsible for going to parent dir work in tag editor 2009-11-23 19:25:51 +01:00
Andrzej Rybczak 0dc076742f tag editor: add support for numerating tracks using xx/xx format 2009-11-14 03:42:21 +01:00
Andrzej Rybczak 07099d4dc0 clear menu option right before rewriting it, not earlier
when it was cleared earlier, mpd status tracer could refresh window
while ncmpcpp was waiting for new string and empty line was visible.
2009-11-13 19:38:47 +01:00
Andrzej Rybczak fdb9bfcd4f remove a piece of code that was overwriting statusbar without any checks
maybe it made a difference in the past, but it's redundant now.
2009-11-13 19:34:08 +01:00
Andrzej Rybczak 3365b066c3 window: store strings history in list instead of deque 2009-11-13 18:28:13 +01:00
Andrzej Rybczak 180d71ed28 tag editor: refresh filename parser windows properly 2009-11-13 16:50:52 +01:00
Andrzej Rybczak 9a5a053ec3 improve handling columns in media library a bit
given column should clear only the first column on its right, not all.
2009-11-13 16:39:43 +01:00
Andrzej Rybczak 495ec25a0a simplify Clear() in Window and its derivatives
it removes argument responsible for immediate refreshing.
since after all calls that were refreshing screen there was
call to Refresh() anyway, this switch doesn't make much sense.
2009-11-13 15:59:18 +01:00
Andrzej Rybczak b83adc01b9 check for errors after calling status updater 2009-11-13 15:30:02 +01:00
Andrzej Rybczak d4fddf4466 update directory after db update only if current screen is browser 2009-11-13 15:26:17 +01:00
Andrzej Rybczak 3b7f19f095 new feature: support for centered cursor (disabled by default) 2009-11-11 00:50:14 +01:00
Andrzej Rybczak 35a182d79e add support for scrolling the list with mouse wheel by given number of lines 2009-11-11 00:31:52 +01:00
Andrzej Rybczak c6e26e121f do not ask if one wants to enter password, just ask for password 2009-11-08 19:34:10 +01:00
Andrzej Rybczak 5b2dbe026c do not delete items from playlist if sending command delete failed 2009-11-05 22:16:54 +01:00
Andrzej Rybczak 60d932ef68 fix 'db update' flag not being updated if mpd is stopped 2009-11-02 05:29:49 +01:00
Andrzej Rybczak 0a95aebd7c improve elapsed time handling
this also throws away hack that was used to count elapsed
time locally while polling mpd, it's not needed anymore.
2009-10-30 20:04:47 +01:00
Andrzej Rybczak b6059e2255 visualizer: set interval between "synchronizations" to sane value
ugh, I set it to 5 seconds for testing purposes and then forgot
to change it back ~~ it should be at least 120 seconds.
2009-10-30 01:05:55 +01:00
Andrzej Rybczak dfb4653669 fix MPD::Connection::Add() 2009-10-28 19:23:43 +01:00
Andrzej Rybczak db5efc6eb9 update screen in TraceMpdStatus(), not in the main loop
this makes screen update even if ncmpcpp is in Window::GetString().
2009-10-28 19:21:35 +01:00
Andrzej Rybczak b9a14e37ab fix screen resize
ncmpcpp was sometimes segfaulting while resizing screen, this commit fixes that.
2009-10-28 15:16:54 +01:00
Andrzej Rybczak fa9b58627a fix seeking with f/b in visualizer
visualizer specific timeout is too small, so we
need to set it to default value while seeking.
2009-10-27 02:40:40 +01:00
Andrzej Rybczak 23d5601968 fix config option description in man page 2009-10-27 02:34:29 +01:00
Andrzej Rybczak 95ce4065ae add event handler for MPD_IDLE_OUTPUT notification 2009-10-27 02:30:28 +01:00
Andrzej Rybczak e43ea18d29 provide a way to sync between visualization and sound
workaround for http://musicpd.org/mantis/view.php?id=2503
2009-10-27 02:15:51 +01:00
Andrzej Rybczak 164d32c079 use one global timer instead of several local ones 2009-10-26 18:14:06 +01:00
Andrzej Rybczak a91d02e181 fix bug that could cause ncmpcpp termination
steps to reproduce it:
- go to local browser
- edit tags of the last item using tiny tag editor
- move item to another directory by renaming it
- save tags

tadam! but it's no more.
2009-10-26 16:24:58 +01:00
Andrzej Rybczak dd866e9337 fix visualizer 2009-10-25 23:24:12 +01:00
Andrzej Rybczak b947575528 move code responsible for screen resize to SIGWINCH handler 2009-10-25 22:22:05 +01:00
Andrzej Rybczak 9f5e9e60ff use idle mask to see what changed instead of comparing old and new status 2009-10-25 21:16:21 +01:00
Andrzej Rybczak dd04406ee5 poll both stdin and mpd using one select()
this allows for immediate reading mpd events
2009-10-25 20:44:07 +01:00