Andrzej Rybczak
b01801ea22
update playlist's timer while scrolling with fancy_scrolling disabled
...
not updating it caused highlight to be disabled
during scrolling if key was being held long enough.
16 years ago
Andrzej Rybczak
bd64052f11
center cursor directly in Menu class
...
centering in Screen::Scroll is hacky and works
only for scrolling, not e.g. selecting.
16 years ago
Andrzej Rybczak
08daa61907
update copyright notices
16 years ago
Andrzej Rybczak
a27332a825
get rid of using directives
...
these in ncmpcpp.cpp stay since a lot of memebers are used.
16 years ago
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
16 years ago
Andrzej Rybczak
e6a359ae76
fix crash that happened with empty playlist and pressed space
17 years ago
Andrzej Rybczak
5aaafba545
if there is no selected items, treat the current one as selected
17 years ago
Andrzej Rybczak
03129784d4
new feature: add selected items to playlist at given position
17 years ago
Andrzej Rybczak
dd04406ee5
poll both stdin and mpd using one select()
...
this allows for immediate reading mpd events
17 years ago
Andrzej Rybczak
601c8e3ef2
playlist: support for range sort/reverse
17 years ago
Andrzej Rybczak
03f6fd904f
new screen: mpd server info
17 years ago
Andrzej Rybczak
f61b4716a2
add support for multiple tags
17 years ago
Andrzej Rybczak
66d4883728
fix compilation --with-iconv
17 years ago
Andrzej Rybczak
3bdb798852
clean NCurse::List class a bit and remove a few redundant functions
17 years ago
Andrzej Rybczak
8109d26daf
refresh main screen only if necessary
17 years ago
Andrzej Rybczak
2cdbee4124
display message about sorting playlist a bit earlier
...
since actual sorting takes more time than telling mpd how to
sort, message should be displayed before a call to std::sort()
17 years ago
Andrzej Rybczak
d6fbb2f657
remove wrapper for Scroller() needed with --enable-unicode
17 years ago
Andrzej Rybczak
8cf7a7cab6
do not copy strings while doing case insensitive comparison
17 years ago
Andrzej Rybczak
18e611bee2
make sorting window use main ncmpcpp loop
17 years ago
Andrzej Rybczak
89e18096d9
rearrange sequence of arguments to Scroller()
17 years ago
Andrzej Rybczak
8787c19666
fix Playlist::SongInColumnsToString() which was broken since cbbabee0
17 years ago
Andrzej Rybczak
c961ab411c
add song_status_format_no_colors to display it in a message
17 years ago
Andrzej Rybczak
ecf3d20995
enclose song format in braces in Playlist::SongInColumnsToString
17 years ago
Andrzej Rybczak
abdc042b04
fix possible issues with additinal windows due to too small screen size
17 years ago
Andrzej Rybczak
101f01941d
new feature: alternative user interface
17 years ago
Andrzej Rybczak
ea1edd4d4a
use common interface for adding item(s) to playlist
...
this also removes a few code duplications.
17 years ago
Andrzej Rybczak
853164575f
adjust mouse bindings a bit and document them in help screen
17 years ago
Andrzej Rybczak
c20d8694ae
new feature: allow for fixed size columns
17 years ago
Andrzej Rybczak
ddaf141f2e
rename MPD::Song::{Get,Set}Year to {Get,Set}Date
17 years ago
Andrzej Rybczak
df051bf674
remove using declarations
17 years ago
Andrzej Rybczak
9dab25e02c
use prefix ++ instead of postfix where available
17 years ago
Andrzej Rybczak
2eb913fe22
define MPD::Connection handler as an object, not pointer
17 years ago
Andrzej Rybczak
450bf1b636
initialize screens only if necessary
17 years ago
Andrzej Rybczak
049d0d9b35
play song in playlist by clicking on it with RMB, not LMB
17 years ago
Andrzej Rybczak
d965f4e517
new feature: mouse support
17 years ago
Andrzej Rybczak
7e479de3e0
use C++ style casts in Playlist::Init()
17 years ago
Andrzej Rybczak
e3d731d269
handle height of sorting window properly
...
before, if terminal was less than 18 lines high, ncmpcpp
would exit at start throwing NCurses::Window::BadSize,
because sort dialog's height was hardcoded. now its size
changes dynamically, depending on actual screen size.
17 years ago
Andrzej Rybczak
7f85a0dcd1
use flag to force status update rather than doing additional update
17 years ago
Andrzej Rybczak
89c06db1f4
refresh playlist immediately after highlighting was enabled
17 years ago
Andrzej Rybczak
310b6c0ecd
new feature: cyclic scrolling
17 years ago
Andrzej Rybczak
cf3746f301
always poll mpd twice per second
17 years ago
Andrzej Rybczak
2c1647d57a
new feature: reverse playlist
17 years ago
Andrzej Rybczak
0aa36f3fb2
move Global::Timer to Playlist class
17 years ago
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.
17 years ago
Andrzej Rybczak
8a4ee22b61
swap songs internally while sorting to keep their properties
17 years ago
Andrzej Rybczak
29f49415dd
add support for regular expressions (basic and extended)
...
it intruduces regex support in search engine
and filtering/searching in all screens
17 years ago
Andrzej Rybczak
eed4fb03ff
use CamelCase for variables in Global namespace / some cleaning
17 years ago
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)
17 years ago
Andrzej Rybczak
93fd687ec1
consider "ignore leading 'the' word" function while sorting playlist
17 years ago
Andrzej Rybczak
339bbb4925
while converting item in columns to string, if title is empty, use filename
17 years ago