Commit Graph

82 Commits

Author SHA1 Message Date
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
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
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
eff5ebba4e fix locating now playing song in browser (using 'o')
due to change of keybinding for switching to local browser,
the trigger is invoked in SwitchTo() if main screen is already
pointing to browser. since we use 'o' in browser to locate now
playing song, this function was switching browser to wrong mode
and thus requested song couldn't be found.
2009-10-24 01:01:32 +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
89779e6fb9 sort files in Browser::GetLocalDirectory()
files are read in kinda random order, so if one added local dir
to playlist, (s)he would get them not sorted at all. fix that by
sorting files that have been read recently from current dir, so
that we get files sorted within each read directory (if read
recursively), which is nice.
2009-10-08 16:09:45 +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
24627d8493 fix compilation --with-taglib 2009-09-22 23:12:19 +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
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
d6fbb2f657 remove wrapper for Scroller() needed with --enable-unicode 2009-09-15 21:07:37 +00:00
Andrzej Rybczak
18e611bee2 make sorting window use main ncmpcpp loop 2009-08-30 02:47:46 +02:00
Andrzej Rybczak
f0ebc47785 browser: do nothing if space is pressed and parent dir is highlighted 2009-08-29 20:41:56 +02:00
Andrzej Rybczak
89e18096d9 rearrange sequence of arguments to Scroller() 2009-08-26 03:33:31 +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
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
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
d5fb17aefb fix Browser::LocateSong() function 2009-06-26 19:24:26 +02:00
Andrzej Rybczak
450bf1b636 initialize screens only if necessary 2009-06-26 18:48:00 +02:00
Andrzej Rybczak
f6d9be350c new feature: add local directories recursively 2009-06-10 18:09:58 +02:00
Andrzej Rybczak
c497641908 do not load playlist with LMB 2009-06-06 08:38:22 +02:00
Andrzej Rybczak
25554ed100 be more verbose while deleting items in browser 2009-06-06 08:24:05 +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
8f5df28e62 new feature: allow for files and directories deletion in browser 2009-05-23 17:09:41 +02:00
Andrzej Rybczak
ecd4c8cc17 get rid of C style casts 2009-05-21 23:51:56 +02:00
Andrzej Rybczak
5682734840 make displaying hidden files in local browser optional 2009-05-07 15:17:59 +02:00
Andrzej Rybczak
ce73ecae2e real fix for bug 2252 2009-04-14 07:50:21 +02:00
Andrzej Rybczak
310b6c0ecd new feature: cyclic scrolling 2009-03-30 20:03:23 +02:00
Andrzej Rybczak
49a13222a3 get proper user home dir on WIN32 and adjust folders in this case a bit 2009-03-26 20:23:47 +01:00
Andrzej Rybczak
de98176198 make code from Browser::GetLocalDirectory() portable 2009-03-25 19:52:03 +01:00
Andrzej Rybczak
a1a2ba4eed show columns' titles if browser displays them at start 2009-03-18 18:42:36 +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
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
3523caa592 some fixes for non-unicode locales 2009-03-07 13:26:36 +01:00