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.
conf: simplified parse_key_value()
Removed the state machine stuff, and use strtol() if the first
character is not a single quote. strtol() will do the error
checking.
Removed the state machine stuff, and use strtol() if the first
character is not a single quote. strtol() will do the error
checking.
conf: don't pass length to parse_key_value()
We have a null-terminated string, no need to pass the length around.
We have a null-terminated string, no need to pass the length around.
conf: optimized parse_color() with strchr()
The same for parse_color_definition(). Use strtol() directly there.
The same for parse_color_definition(). Use strtol() directly there.
conf: use GLib's string stripping functions
conf: use buffered I/O for reading the config file
Don't read byte by byte until a newline is found. Use fgets()
instead.
Don't read byte by byte until a newline is found. Use fgets()
instead.
conf: don't free filename in read_rc_file()
The code was unused, because free_filename was always 0.
The code was unused, because free_filename was always 0.
conf: moved code to parse_line()
conf: simplified translation strings
Removed the "Error: " prefix and the newline. Separated the format
string.
Removed the "Error: " prefix and the newline. Separated the format
string.
po: fixed C format string mismatch in Swedish translation
configure.ac: fix glib error message
The message was still referring to GLib 2.2.
The message was still referring to GLib 2.2.
configure.ac: added --disable-multibyte
This allows you to disable wide character support, retaining multibyte
character support.
This allows you to disable wide character support, retaining multibyte
character support.
configure.ac: disable NLS in mini mode
show translator credits
Print translator credits after the --version message.
Print translator credits after the --version message.
initialize NLS without locale support
Initialize the NLS subsystem even when locale support is disabled.
This may be a very exotic configuration, but it is valid.
Initialize the NLS subsystem even when locale support is disabled.
This may be a very exotic configuration, but it is valid.
configure.ac: added --disable-locale option
Make locale.h mandatory. --disable-locale disables the locale.h
check.
Make locale.h mandatory. --disable-locale disables the locale.h
check.
i18n: don't use locale.h
Just for the _() and N_() macros, we don't need to include locale.h -
define them in i18n.h.
Just for the _() and N_() macros, we don't need to include locale.h -
define them in i18n.h.
autogen.sh: run glib-gettextize
Removed po/Makefile.in.in and mkinstalldirs from git, they are created
by glib-gettextize.
Removed po/Makefile.in.in and mkinstalldirs from git, they are created
by glib-gettextize.
po: added conf.c to POTFILES.in
configure.ac: added --enable-werror, rewrote --enable-debug
"--enable-werror" adds "-Werror" to CFLAGS.
"--enable-werror" adds "-Werror" to CFLAGS.
configure.ac: moved CFLAGS settings to the bottom
configure.ac: removed duplicate NLS option
There was --enable-nls in configure.ac, and --disable-nls in
m4/nls.m4. Remove the first one, it wasn't working anyway.
There was --enable-nls in configure.ac, and --disable-nls in
m4/nls.m4. Remove the first one, it wasn't working anyway.
configure.ac: drop support for GLib < 2.4
GLib 2.4 is required for proper NLS support. It is so old, we can
safely remove support for GLib 2.2.
GLib 2.4 is required for proper NLS support. It is so old, we can
safely remove support for GLib 2.2.