Commit Graph

932 Commits

Author SHA1 Message Date
Andrzej Rybczak
f7d9f89b12 update NEWS / version bump 2009-12-31 12:05:21 +01:00
Andrzej Rybczak
444354f860 fix drawing selected_item_{prefix,suffix} 2009-12-31 11:30:12 +01:00
Andrzej Rybczak
455f729bef reset scrollpad's start position while switching to lyrics/info screens 2009-12-27 16:47:51 +01:00
Andrzej Rybczak
934efd5383 do not try to convert to utf8 strings that are already encoded in it
such case may happen if conversion from utf8 to current locale fails.
2009-12-24 00:53:53 +01:00
Andrzej Rybczak
bdc65ead7a merge char_non_ascii() into has_non_ascii_chars() 2009-12-23 23:46:41 +01:00
Andrzej Rybczak
05fc53ba32 make MPD::Connection::Toggle() run playback if player is stopped 2009-12-23 21:36:05 +01:00
Andrzej Rybczak
43dcc8bd54 fix refreshing player state with classic user interface 2009-12-23 16:37:56 +01:00
Andrzej Rybczak
63178105c3 remove hack that concerns idle events mode.
fuck this. it's mpd problem, not mine (see bug 2612)
2009-12-23 16:23:33 +01:00
Andrzej Rybczak
2fb20fd572 add config options for communication mode with mpd (polling for default)
idle support in ncmpcpp is marked experimental since its support
in mpd is not ready for general use in full featured clients
(see bug 2612)
2009-12-23 16:21:11 +01:00
Andrzej Rybczak
c005b7b303 reenable hack disabled with 0007ba40
it seems it's still needed ;X
2009-12-22 19:16:13 +01:00
Andrzej Rybczak
73f9c8c320 display message properly 2009-12-20 21:54:25 +01:00
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