Commit Graph

451 Commits

Author SHA1 Message Date
Frank Blendinger
a5882ee27f added a key to jump to a song in the media library
This commit introduces a new key to bind, key_go_to_media_library. It
will switch to the media library and select the song under the cursor.
2010-01-05 10:20:53 +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
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
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
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
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
5b2dbe026c do not delete items from playlist if sending command delete failed 2009-11-05 22:16:54 +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
95ce4065ae add event handler for MPD_IDLE_OUTPUT notification 2009-10-27 02:30:28 +01:00
Andrzej Rybczak
164d32c079 use one global timer instead of several local ones 2009-10-26 18:14:06 +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
dd04406ee5 poll both stdin and mpd using one select()
this allows for immediate reading mpd events
2009-10-25 20:44:07 +01:00
Andrzej Rybczak
1a3e10dab7 new feature: toggle replay gain mode (requires >=mpd-0.16) 2009-10-23 18:20:52 +02:00
Andrzej Rybczak
62b7df69f3 new feature: refetch lyrics 2009-10-20 00:35:51 +02:00
Andrzej Rybczak
03f6fd904f new screen: mpd server info 2009-10-11 17:03:00 +02:00
Andrzej Rybczak
3551057dbb new feature: sort songs in browser by mtime (optional) 2009-10-10 23:32:05 +02:00
Andrzej Rybczak
b48133a743 change keybinding for changing browse mode
I shouldn't do that, but the old one will be much better for
choosing whether songs in browser have to be sorted by names
or modification date. Besides, binding this to browser key
makes browser behaviour more "compatible" with media library.
2009-10-10 22:32:18 +02:00
Andrzej Rybczak
833f608d60 shorten long names in messages displayed in statusbar 2009-10-10 18:37:53 +02:00
Andrzej Rybczak
6f7b77c84e editing lyrics shouldn't require mpd_music_dir variable to be set 2009-10-06 07:46:50 +02:00
Andrzej Rybczak
f61b4716a2 add support for multiple tags 2009-10-04 21:10:57 +02:00
Andrzej Rybczak
409d60ed18 Merge branch 'libmpdclient2'
Conflicts:
	src/browser.cpp
	src/ncmpcpp.cpp
2009-10-04 16:23:42 +02:00
Andrzej Rybczak
55173cb419 move local_browser variable from settings to Browser class 2009-10-01 00:30:18 +02:00
Andrzej Rybczak
1b2999ef8e fix compilation under mingw32 2009-09-30 23:47:38 +02:00
Andrzej Rybczak
45884e0895 fix a few bugs progressbar related (redrawing, colors) 2009-09-30 18:59:36 +02:00
Andrzej Rybczak
cada9f4355 bold expected keys while waiting for keypress 2009-09-30 16:25:24 +02:00
Andrzej Rybczak
9e20858977 do not show cursor while waiting for only one keypress 2009-09-27 15:50:31 +02:00
Andrzej Rybczak
048fd2ffce refresh status window immediately after prompting user
this fixes #2537.
2009-09-27 15:48:03 +02:00
Andrzej Rybczak
0d9f6fab7d add MPD::Connection::Toggle() and throw away MPD::Connection::Execute() 2009-09-23 05:47:51 +02:00
Andrzej Rybczak
e304a6b7de WIN32 compilation fix 2009-09-23 02:50:10 +02:00
Andrzej Rybczak
66d4883728 fix compilation --with-iconv 2009-09-23 02:45:48 +02:00
Andrzej Rybczak
dec7bd9c0e make ncmpcpp use external libmpdclient (--without-taglib and --without-iconv) 2009-09-22 22:37:33 +02:00
Andrzej Rybczak
70910b77ed make ncmpcpp compile with -fno-exceptions 2009-09-21 06:01:21 +02:00
Andrzej Rybczak
5a887861d7 move code responsible for marking song as now playing to display functions 2009-09-20 23:52:43 +02:00
Andrzej Rybczak
20b0bcc85e define NCURSES_MOUSE_VERSION if pdcurses is used 2009-09-20 18:56:30 +02:00
Andrzej Rybczak
ad685091bc rename Menu::BoldOption() to Menu::Bold() 2009-09-19 02:44:44 +02:00
Andrzej Rybczak
3bdb798852 clean NCurse::List class a bit and remove a few redundant functions 2009-09-19 01:18:41 +02:00
Andrzej Rybczak
2f971147b1 change all Mpd.GetState </> psPlay/psStop to (!)Mpd.isPlaying() 2009-09-18 02:17:30 +00:00
Andrzej Rybczak
8109d26daf refresh main screen only if necessary 2009-09-17 00:59:30 +00:00
Andrzej Rybczak
ff84ba8d9d reverse evaluation order so SetFormatting() won't be invoked if findme is empty 2009-09-16 22:25:40 +00:00
Andrzej Rybczak
6723808c4f remove wrapper for Scrollpad::SetFormating() used with --enable-unicode 2009-09-16 22:21:17 +00:00
Andrzej Rybczak
d7491f8acb limit trigger for mouse actions to prevent execution of the same action twice 2009-09-09 21:47:38 +02:00
Andrzej Rybczak
30b8622776 get total time from mpd status, not from currently playing track
it seems that even if track info doesn't provide total track length,
mpd status does, which allows for seeking and displaying progressbar.
2009-09-09 18:32:57 +02:00
Andrzej Rybczak
3108fbf0c0 fix two minor bugs with colors
1. I used statusbar_color instead of header_color by accident
2. state_line_color has to be explicitely turned off before setting new color
2009-09-06 12:55:46 +02:00
Andrzej Rybczak
56be1cb753 make Window::SetColor protected as it doesn't respect stacked colors
it should only be used internally by Window and derives.
2009-09-06 12:51:48 +02:00
Andrzej Rybczak
3aa0f6a03b make color of separators used in alternative user interface customizable 2009-09-06 12:15:39 +02:00