Commit Graph

88 Commits

Author SHA1 Message Date
Alexey Semenko
18bc6368bf titles_visibility configuration option 2010-08-25 15:35:37 +02:00
Andrzej Rybczak
d962653c76 make feature 'display separators between albums' work in all screens 2010-07-12 09:14:15 +02:00
Frank Blendinger
13dbf65350 key_select_album also works in search results now 2010-07-05 16:22:26 +02:00
Andrzej Rybczak
2583487ffb check for emptiness in some more places
these containers can be empty escpecially if one wants to go for a trip
around ncmpcpp screens while connection to mpd is lost. this is highly
unlikely to happen, but should be secured anyway.
2010-03-25 00:51:56 +01:00
Andrzej Rybczak
a63e1fa27d improvements for 6b5ed187 2010-03-05 21:17:45 +01:00
Frank Blendinger
6b5ed187a1 add new movement keys: {Up,Down}{Album,Artist} 2010-03-04 15:10:58 +01:00
Andrzej Rybczak
bd64052f11 center cursor directly in Menu class
centering in Screen::Scroll is hacky and works
only for scrolling, not e.g. selecting.
2010-02-05 15:49:20 +01:00
Andrzej Rybczak
08daa61907 update copyright notices 2010-01-30 16:24:24 +01:00
Andrzej Rybczak
af12b75b93 use key (F)4 to reset search engine state while being in this screen 2010-01-23 21:49:43 +01:00
Andrzej Rybczak
153081158d add support for built-in mpd searching in search engine 2010-01-22 21:35:34 +01:00
Andrzej Rybczak
45acbfe862 get rid of case sensivity switch in search engine
I don't think anybody was using it.
2010-01-22 20:56:02 +01:00
Andrzej Rybczak
794fbbab3d use predefined contants in Search Engine instead of numbers 2010-01-22 19:32:37 +01:00
Andrzej Rybczak
a27332a825 get rid of using directives
these in ncmpcpp.cpp stay since a lot of memebers are used.
2010-01-22 19:17:35 +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
5aaafba545 if there is no selected items, treat the current one as selected 2009-11-26 22:01:27 +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
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
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
aad9146397 make use of CaseInsensitiveStringComparison() instead of copying strings 2009-09-22 00:56:51 +02:00
Andrzej Rybczak
31a5363434 search engine: throw away SearchedPattern class and generalize the code 2009-09-22 00:31:22 +02:00
Andrzej Rybczak
70910b77ed make ncmpcpp compile with -fno-exceptions 2009-09-21 06:01:21 +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
27687fd2b1 pass Buffer/Window to ShowTag() by reference
returning new Buffer and passing it to Window by operator<<()
was rather bad idea since it required unnecessary copying.
2009-09-15 16:36:26 +00:00
Andrzej Rybczak
18e611bee2 make sorting window use main ncmpcpp loop 2009-08-30 02:47:46 +02:00
Andrzej Rybczak
101f01941d new feature: alternative user interface 2009-08-12 02:08:13 +02:00
Andrzej Rybczak
ea1edd4d4a use common interface for adding item(s) to playlist
this also removes a few code duplications.
2009-08-09 15:51:24 +02:00
Andrzej Rybczak
f5fc2dbe8a fix displaying messages in search engine 2009-08-09 12:52:00 +02:00
Andrzej Rybczak
853164575f adjust mouse bindings a bit and document them in help screen 2009-08-08 21:18:46 +02:00
Andrzej Rybczak
c20d8694ae new feature: allow for fixed size columns 2009-07-10 19:17:12 +02:00
Andrzej Rybczak
ddaf141f2e rename MPD::Song::{Get,Set}Year to {Get,Set}Date 2009-07-05 14:16:15 +02:00
Andrzej Rybczak
f60cc71b91 some MPD::Song improvements and syntax simplifications 2009-07-05 14:13:18 +02:00
Andrzej Rybczak
df051bf674 remove using declarations 2009-07-05 12:19:22 +02:00
Andrzej Rybczak
9dab25e02c use prefix ++ instead of postfix where available 2009-07-04 06:41:35 +02:00
Andrzej Rybczak
2eb913fe22 define MPD::Connection handler as an object, not pointer 2009-07-04 06:07:00 +02:00
Andrzej Rybczak
450bf1b636 initialize screens only if necessary 2009-06-26 18:48:00 +02:00
Andrzej Rybczak
10a9427270 throw away Menu::GetPosition() as Menu::Choice() does the same
oh cool, I forgot that such function already exists under different name ~~
2009-05-26 22:11:49 +02:00
Andrzej Rybczak
d965f4e517 new feature: mouse support 2009-05-25 21:46:36 +02:00
Andrzej Rybczak
ecd4c8cc17 get rid of C style casts 2009-05-21 23:51:56 +02:00
Andrzej Rybczak
ce73ecae2e real fix for bug 2252 2009-04-14 07:50:21 +02:00
Andrzej Rybczak
c8f99be7d0 do not limit year tag to 4 digits 2009-04-09 08:35:05 +02:00
Andrzej Rybczak
310b6c0ecd new feature: cyclic scrolling 2009-03-30 20:03:23 +02:00
Andrzej Rybczak
a20469b403 never get full playlist from mpd, always request for changes 2009-03-13 12:58:17 +01:00
Andrzej Rybczak
24c37eb592 do not store commands list in MPD::Connection
it should have sent commandlist begin and end commands from the beginning,
having separated functions just to handle queueing commands was plainly ugly.
2009-03-12 17:30:25 +01:00
Andrzej Rybczak
2f68c48eb0 make SearchEngine::CaseSensitive regex flag 2009-03-09 11:23:55 +01:00
Andrzej Rybczak
14a817e83e fix memory leak in search engine
while performing case insensitive and exact match searching Song was
really copied, so clearing its internal mpd_Song ptr resulted in memleak.
2009-03-09 11:09:13 +01:00
Andrzej Rybczak
29f49415dd add support for regular expressions (basic and extended)
it intruduces regex support in search engine
and filtering/searching in all screens
2009-03-08 22:16:18 +01:00
Andrzej Rybczak
eed4fb03ff use CamelCase for variables in Global namespace / some cleaning 2009-03-08 01:58:49 +01:00
Andrzej Rybczak
b21ede24f4 move searching to Menu class, also remember last constraint
this improvement also make that list of found items is not cleared
if one switches to another screen. it's remebered until the content
of screen changes (e.g. item is deleted from playlist)
2009-03-07 18:23:31 +01:00
Andrzej Rybczak
73f7980019 make blocking search constraints change after successful searching optional
it's still enabled by default though.
2009-03-03 21:13:02 +01:00