screen: check if song and lyrics screens are enabled
The patch "screen swap works with song/lyrics screens" broke the
build, because it didn't check whether the song screen and the lyrics
screen were enabled.
The patch "screen swap works with song/lyrics screens" broke the
build, because it didn't check whether the song screen and the lyrics
screen were enabled.
screen_browser: select/add for visual selection
The select (toggle in playlist) and add (append to playlist) commands now work
for visual selections in browser screens. The status output should eventually
be reconsidered - a message is wastefully printed for each item before it is overwritten by one displaying a count of items added.
The "enter" (CMD_PLAY) command has been disabled for multiple selection for
now; this is better than acting just on the item at the end of the selection
range. Eventually it should do something fancy like appending all selected
items (directory, song, or playlist) then playing the first song of the first
item.
The select (toggle in playlist) and add (append to playlist) commands now work
for visual selections in browser screens. The status output should eventually
be reconsidered - a message is wastefully printed for each item before it is overwritten by one displaying a count of items added.
The "enter" (CMD_PLAY) command has been disabled for multiple selection for
now; this is better than acting just on the item at the end of the selection
range. Eventually it should do something fancy like appending all selected
items (directory, song, or playlist) then playing the first song of the first
item.
screen swap works with song/lyrics screens
The screen swap command now gets handled outside of screen.c when
appropriate, to allow passing the currently selected song to the
song/lyrics screens.
The screen swap command now gets handled outside of screen.c when
appropriate, to allow passing the currently selected song to the
song/lyrics screens.
screen_help: keydef screen
Added keydef commands to the help screen. Also updated help text for
CMD_UPDATE_LYRICS (it fetches lyrics for the currently playing song).
Added keydef commands to the help screen. Also updated help text for
CMD_UPDATE_LYRICS (it fetches lyrics for the currently playing song).
screen_keydef: parent directory command
Allow CMD_GO_PARENT_DIRECTORY on the keydef screen (for returning from
subcmd to command list).
Allow CMD_GO_PARENT_DIRECTORY on the keydef screen (for returning from
subcmd to command list).
list_window: search in strings with the "jump" command
This patch extends the jump function. Current jump only searches the
start of the lines, but with this patch it searches through the whole
line for a match. Since this takes more cpu power, I have inlined it
back to the original behavior in MINI.
This patch extends the jump function. Current jump only searches the
start of the lines, but with this patch it searches through the whole
line for a match. Since this takes more cpu power, I have inlined it
back to the original behavior in MINI.
screen_utils: Fixed a minor bug with the jump command.
When pressing delete J was printed in the jump input. Now pressing delete,
removes the last character.
When pressing delete J was printed in the jump input. Now pressing delete,
removes the last character.
de.po: Update the german translation.
Added a german translation for the new strings which were
added to the song screen.
Added a german translation for the new strings which were
added to the song screen.
screen_song: Some clean-up and more comments.
screen_song: Added some statistics about mpd to the song screen.
Make it possible to switch to the song viewer from anywhere.
screen_song: Refactor screen_song, so it can be opened by screen_switch().
screen_song should be more like the other screens as lyrics screens, so we
can switch to the song screen from everywhere in ncmpc.
screen_song should be more like the other screens as lyrics screens, so we
can switch to the song screen from everywhere in ncmpc.
Added status-message-time option
Controls the length of time a status message displays; the previous
setting of 3 seconds from options.c is the default value.
Controls the length of time a status message displays; the previous
setting of 3 seconds from options.c is the default value.
Disabled visual selection in keydef screen
If we someday have a command like "reset to default" we may want this
back, but for now, no commands have multiple-selection meanings on the
keydef screen.
If we someday have a command like "reset to default" we may want this
back, but for now, no commands have multiple-selection meanings on the
keydef screen.
Save lyrics uses CMD_SAVE_PLAYLIST
Much more intuitive than using CMD_ADD.
Much more intuitive than using CMD_ADD.
Center the cursor on a second Ctrl-L
To aid in getting to info/lyrics screen, or in selecting ranges
involving the currently playing song. Ctrl-L followed by M will achieve
the same result as long as the playlist is at least as long as the
screen, but this is faster to type and will work for short playlists
too.
An alternative method would be to center the cursor whenever Ctrl-L will
not cause the screen to move; this could be implemented as an option
perhaps, but would be annoying if you just wanted to repaint the screen.
To aid in getting to info/lyrics screen, or in selecting ranges
involving the currently playing song. Ctrl-L followed by M will achieve
the same result as long as the playlist is at least as long as the
screen, but this is faster to type and will work for short playlists
too.
An alternative method would be to center the cursor whenever Ctrl-L will
not cause the screen to move; this could be implemented as an option
perhaps, but would be annoying if you just wanted to repaint the screen.
Fixed lyricwiki plugin
LyricWiki returns a page with "Not found" in place of the song lyrics if
the song is not found; check for this.
LyricWiki returns a page with "Not found" in place of the song lyrics if
the song is not found; check for this.
Renamed lyrics plugins
Lyrics plugins are tried in alphabetic order by filename. Numeric
prefixes make this clearer, and make it easier to keep hd.sh first.
I've moved LyricWiki ahead of Leo's Lyrics, mostly because it's easier
for a user to fix incorrect lyrics on a wiki, but also because Leo's
Lyrics appears to return partial matches if no full match is found (e.g.
a song with the same name and completely different artist)
Lyrics plugins are tried in alphabetic order by filename. Numeric
prefixes make this clearer, and make it easier to keep hd.sh first.
I've moved LyricWiki ahead of Leo's Lyrics, mostly because it's easier
for a user to fix incorrect lyrics on a wiki, but also because Leo's
Lyrics appears to return partial matches if no full match is found (e.g.
a song with the same name and completely different artist)
Sort plugins by filename
Although previously the plugins appeared to be sorted by filename, that
was only because they were installed in order by filename. Now the
plugins are manually sorted by filename, providing for user modification
(new plugins, reordering of plugins).
Although previously the plugins appeared to be sorted by filename, that
was only because they were installed in order by filename. Now the
plugins are manually sorted by filename, providing for user modification
(new plugins, reordering of plugins).
AUTHORS: added Jeffrey Middleton
mpdclient: Fixes sorting of the filelist.
Sort the filelist with the correct linguastically rule for the current
locale, with directories first, after that songs and playlist files last.
This fixes bug 2092.
Sort the filelist with the correct linguastically rule for the current
locale, with directories first, after that songs and playlist files last.
This fixes bug 2092.
Spelling corrections
All in comments except the one in a displayed message that got me
started!
All in comments except the one in a displayed message that got me
started!
screen_keydef: Fixed selections on key bindings screen
Key bindings screen uses struct list_window, so the addition of visual
mode requires setting selection_start and selection_end to match
selection, even though visual mode serves no purpose there currently.
Key bindings screen uses struct list_window, so the addition of visual
mode requires setting selection_start and selection_end to match
selection, even though visual mode serves no purpose there currently.
screen_play: Changed selection movement on center-playing-song
Previously, the cursor remained in the same screen position (and had
some odd behavior in visual mode). Now it attempts to stay on the same
song like other large movement commands, leaving visual mode intact, so
you can do fun things like using center-playing-song to help select a
range of songs up to the current song.
Previously, the cursor remained in the same screen position (and had
some odd behavior in visual mode). Now it attempts to stay on the same
song like other large movement commands, leaving visual mode intact, so
you can do fun things like using center-playing-song to help select a
range of songs up to the current song.
screen: Added screen swap command
Screen swap command toggles to the previous (most recently used) screen.
Particularly useful to return from lyrics/info screen.
Screen swap command toggles to the previous (most recently used) screen.
Particularly useful to return from lyrics/info screen.
list_window: Extended scrolling commands to text screens
Added scroll up/down one-line/half-screen to list_window_scroll_cmd,
which is used in text screens.
Added scroll up/down one-line/half-screen to list_window_scroll_cmd,
which is used in text screens.
screen_help: Added lyrics and outputs screen to help
New screens were missing from help!
New screens were missing from help!
screen_play: Disable auto-center while in visual selection mode
Visual selection mode is a good sign the user is looking at whatever's
on the screen. Especially if MPD is in random mode, suddenly jumping
somewhere else is a bad plan.
Visual selection mode is a good sign the user is looking at whatever's
on the screen. Especially if MPD is in random mode, suddenly jumping
somewhere else is a bad plan.
list_window: Added scroll up/down half-screen commands
Added commands to scroll up/down half a screen, using the generic functions from the last commit. Mapped by default to B and N, to go along nicely with Ctrl-B and Ctrl-N for single-line scrolling.
Added commands to scroll up/down half a screen, using the generic functions from the last commit. Mapped by default to B and N, to go along nicely with Ctrl-B and Ctrl-N for single-line scrolling.
list_window: Added scroll up/down commands
Commands scroll a list window up/down by one line, mapped by default to
Ctrl-N and Ctrl-B (mnemonics next and back). The scrolling functions can
scroll by an arbitrary amount, so we can use them later for half-screen scroll
commands like Vim's Ctrl-D/U.
Commands scroll a list window up/down by one line, mapped by default to
Ctrl-N and Ctrl-B (mnemonics next and back). The scrolling functions can
scroll by an arbitrary amount, so we can use them later for half-screen scroll
commands like Vim's Ctrl-D/U.
list_window: Tweaked visual mode behavior
Tweaked visual mode behavior so that the start of a visual selection is
always one end of it when making large movements (page up/down, H/M/L,
home/end). To clarify, suppose you start at the middle of the screen,
in visual mode, then:
(1) get to the bottom with j
(2) go to the top with page up
(3) go back to one above middle with j
(4) j once more
Previously, the resulting selection would be (1) middle to bottom, (2)
top to bottom, (3) one above middle to bottom, and (4) middle only.
With the change, we will get the intuitive (1) middle to bottom, (2) top
to middle, (3) one above middle to middle, and (4) middle only.
Tweaked visual mode behavior so that the start of a visual selection is
always one end of it when making large movements (page up/down, H/M/L,
home/end). To clarify, suppose you start at the middle of the screen,
in visual mode, then:
(1) get to the bottom with j
(2) go to the top with page up
(3) go back to one above middle with j
(4) j once more
Previously, the resulting selection would be (1) middle to bottom, (2)
top to bottom, (3) one above middle to bottom, and (4) middle only.
With the change, we will get the intuitive (1) middle to bottom, (2) top
to middle, (3) one above middle to middle, and (4) middle only.
list_window: added top, middle, and bottom commands
Commands to move cursor to top, middle, and bottom of screen, mapped
by default to H, M, and L like in Vim.
Commands to move cursor to top, middle, and bottom of screen, mapped
by default to H, M, and L like in Vim.
fixed crash while saving a playlist
It happens when there isn't any playlist in browser
It happens when there isn't any playlist in browser
po: updated Spanish translation
list_window: page up goes too far
There's a sign error in the page up (previous screen) - instead of
going up by one less than the number of rows, it goes up by one
more. Patch attached, though it's just a single character change. I'm
kind of weirded out that I never noticed this before, since it seems
to have been like this forever!
There's a sign error in the page up (previous screen) - instead of
going up by one less than the number of rows, it goes up by one
more. Patch attached, though it's just a single character change. I'm
kind of weirded out that I never noticed this before, since it seems
to have been like this forever!
po: updated Korean translation
po: added Simplified Chinese translation
po: updated ncmpc.pot
range requires unsigned integers.
screen_play: move selection when moving a single song in playlist
Selection didn't move when moving a single song in playlist.
Introduced by the visual selection - selection is only updated when
moving in visual mode, not when moving a single song (nonvisual
mode).
Selection didn't move when moving a single song in playlist.
Introduced by the visual selection - selection is only updated when
moving in visual mode, not when moving a single song (nonvisual
mode).
use the new mpd shufflerange command.
Removed colons to simplify translation.
In wreadln() is a hard-coded colon, so there must not be colons at the end
of the prompts.
In wreadln() is a hard-coded colon, so there must not be colons at the end
of the prompts.
po: Updated the german translation.
Added a german translation for the new visual selection and jump
command.
Added a german translation for the new visual selection and jump
command.
AUTHORS: added Romain Bignon, Patrick Hallen
Also added translators Jon Bergli Heier, Jay Whang, Atie.
Also added translators Jon Bergli Heier, Jay Whang, Atie.
list_window: Added message when selection is enabled/disabled.
The user should get a visual feedback, when he enables or disables the visual selection,
so I added a message which is shown in the status screen. Perhaps there should be a flag
on the right top, when visual selection is enabled to not confuse users, who accidentally
enable it.
The user should get a visual feedback, when he enables or disables the visual selection,
so I added a message which is shown in the status screen. Perhaps there should be a flag
on the right top, when visual selection is enabled to not confuse users, who accidentally
enable it.
screen_artist: Added the jump command to the artist screen.
screen_play: Added the jump command to the playlist screen.
screen_browser: Added the jump command to the browser screen.
command: Added the new jump command.
Added the new jump command, which queries the user for a string
and jumps to the entry which begins with that string while the user is
typing.
Added the new jump command, which queries the user for a string
and jumps to the entry which begins with that string while the user is
typing.
screen_utils: Added new function which jumps to an entry.
Added a new function which opens a prompt. While typing it jumps to the
entry on the screen which starts with the sequence of character you just
typed. Typing any non-printable ncmpc hotkey will exit the prompt.
Added a new function which opens a prompt. While typing it jumps to the
entry on the screen which starts with the sequence of character you just
typed. Typing any non-printable ncmpc hotkey will exit the prompt.
screen_utils: Use werase() instead of wclear().
Use werase() instead of wclear() in screen_readch(), because wclear() rebuilds the whole window from
scratch and flickers.
Use werase() instead of wclear() in screen_readch(), because wclear() rebuilds the whole window from
scratch and flickers.
screen_utils: Moved the colons of the prompts to wreadln.
Moved the colons of the find prompts to wreadln to simplify translation.
Moved the colons of the find prompts to wreadln to simplify translation.
list_window: Added new function, which finds the beginning of a string
Added a new function which finds a string in a listwindow which begins with
the given characters.
Added a new function which finds a string in a listwindow which begins with
the given characters.
screen_song: Added more readable table layout.
Added a table layout with linebreaks to the song screen to make it nicer to
read.
Added a table layout with linebreaks to the song screen to make it nicer to
read.
can shuffle selected list
support multiple lines selection
documentation for the new "bell-on-wrap" option
list_window: bell when searches wrap
NCMPC triggers a bell whenever a search wraps. (Note that this means a
double-bell whenever a wrapped search finds nothing.) I can see this
being reasonable, if the playlist is short and the user is aware of
which direction they want to search in. However if you predominantly
use long playlists and don't know which direction your target is in,
this means you get bells on half your searches.
Since I could see people wanting it either way, my best idea is making
the bell optional. Here's a patch to do that, defaulting to the
current behavior. (I'm a little confused about defaults - looks like
there are only default values for some in options.c - but it looks
like this behaves as desired.)
NCMPC triggers a bell whenever a search wraps. (Note that this means a
double-bell whenever a wrapped search finds nothing.) I can see this
being reasonable, if the playlist is short and the user is aware of
which direction they want to search in. However if you predominantly
use long playlists and don't know which direction your target is in,
this means you get bells on half your searches.
Since I could see people wanting it either way, my best idea is making
the bell optional. Here's a patch to do that, defaulting to the
current behavior. (I'm a little confused about defaults - looks like
there are only default values for some in options.c - but it looks
like this behaves as desired.)
include "config.h" without "../"
Including "../config.h" breaks on some systems.
Including "../config.h" breaks on some systems.
po: updated Korean translation
po: added Korean translation
po: updated Norwegian translation
po: renamed no.po to nb.po
The Norwegian translation seems to be Norwegian Bokmal, according to
Launchpad's auto detection. I have no idea of the two Norwegian
forms, but let's just rename no.po to nb.po, to get rid of the
Launchpad warning, hoping this results in better overall Norwegian
language support.
The Norwegian translation seems to be Norwegian Bokmal, according to
Launchpad's auto detection. I have no idea of the two Norwegian
forms, but let's just rename no.po to nb.po, to get rid of the
Launchpad warning, hoping this results in better overall Norwegian
language support.
Modify version string to post-release version 0.14~git
ncmpc version 0.13
libmpdclient: fix shadow warnings
Renamed "time" variables.
Renamed "time" variables.
screen_browser: removed "OLD_ADD" code
The code was disabled via CPP.
The code was disabled via CPP.
removed newline from translatable strings
Don't make translators deal with newlines.
Don't make translators deal with newlines.
command: check_key_bindings() returns message without comment
The comment "press %s for the key editor" is only used by
timer_check_key_bindings(), move it there. This lets us merge the two
error messages in check_key_bindings() and eases the translator's
work.
The comment "press %s for the key editor" is only used by
timer_check_key_bindings(), move it there. This lets us merge the two
error messages in check_key_bindings() and eases the translator's
work.
po: updated French translation
po: updated Slovak translation
Makefile.am: distribute autogen.sh
m4: deleted codeset.m4 and glib-2.0.m4
Both files are unused.
Both files are unused.
autogen.sh: removed $PWD from aclocal call
This allows aclocal to generate the correct m4/*.m4 dependencies for
the "dist" target.
This allows aclocal to generate the correct m4/*.m4 dependencies for
the "dist" target.
po: updated Galician translation
po: updated Spanish translation
po: updated Swedish translation
po: updated Russian translation
configure.ac: moved ALL_LINGUAS to po/LINGUAS
ALL_LINGUAS is deprecated according to
http://live.gnome.org/GnomeGoals/PoLinguas
Keep ALL_LINGUAS in configure.ac for now, to preserve compatibility
with older tools.
ALL_LINGUAS is deprecated according to
http://live.gnome.org/GnomeGoals/PoLinguas
Keep ALL_LINGUAS in configure.ac for now, to preserve compatibility
with older tools.
po: added missing "\n" to Danish po file
match: enable regular expressions when using find
It uses g_regex_match_simple() in glib and is case insensitive. The
search in the NCMPC_MINI case is unchanged.
It uses g_regex_match_simple() in glib and is case insensitive. The
search in the NCMPC_MINI case is unchanged.
po: updated Danish translation
po: updated Hungarian translation
added option to disable the status line clock display
I already have a clock, and I don't need ncmpc showing me another one.
This patch adds command line options and a config file item to allow the
user to flexibly enable or disable the clock.
[mk: patch from http://bugs.debian.org/510392; removed command line
options]
I already have a clock, and I don't need ncmpc showing me another one.
This patch adds command line options and a config file item to allow the
user to flexibly enable or disable the clock.
[mk: patch from http://bugs.debian.org/510392; removed command line
options]
Update copyright notices
po: updated German translation
updated .gitignore
configure.ac: use AC_CONFIG_AUX_DIR
Put lots of clutter into ./build/
Put lots of clutter into ./build/
po: converted all PO files to UTF-8
Converted Danish, German, Norwegian from ISO-Latin-1 to UTF-8.
Converted Slovakian fro ISO-Latin-2 to UTF-8.
Converted Danish, German, Norwegian from ISO-Latin-1 to UTF-8.
Converted Slovakian fro ISO-Latin-2 to UTF-8.
Standardize the AC_INIT() along with other projects.
po: updated *.po
po: regenerated ncmpc.pot
added comments for translators
Give translators hints about the meaning of some difficult messages.
Give translators hints about the meaning of some difficult messages.
command: renamed "Update screen" to "Refresh screen"
simplified translation strings
Removed colon and "Error: " / "Keys - " prefix.
Removed colon and "Error: " / "Keys - " prefix.
screen_help: removed "bold" marker from "MOVE_UP" line
conf: improved error messages
Makefile.am: removed AUTHORS, README, NEWS from $(EXTRA_DIST)
These files are automatically distributed.
These files are automatically distributed.