summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 70635ba)
raw | patch | inline | side by side (parent: 70635ba)
author | Patrick Hallen <patrick.hallen@rwth-aachen.de> | |
Wed, 11 Feb 2009 19:30:22 +0000 (20:30 +0100) | ||
committer | Patrick Hallen <patrick.hallen@rwth-aachen.de> | |
Wed, 11 Feb 2009 19:30:22 +0000 (20:30 +0100) |
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.
and jumps to the entry which begins with that string while the user is
typing.
NEWS | patch | blob | history | |
doc/keys.sample | patch | blob | history | |
src/command.c | patch | blob | history | |
src/command.h | patch | blob | history | |
src/screen_help.c | patch | blob | history |
index 221bf7abb44ace9bb3f85d9dbfd61b125646aadf..cd74dc3415d7e50bef435a007efe395d48c97f62 100644 (file)
--- a/NEWS
+++ b/NEWS
ncmpc 0.14 - not yet released
* bell on wrapped search (optionally)
+ * added 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.
ncmpc 0.13 - 2009-01-09
diff --git a/doc/keys.sample b/doc/keys.sample
index 1b9e586df9834252857849d8d8bae71963f72c6a..61b7b7379d449a6d62a432f78f275d0520b82b43 100644 (file)
--- a/doc/keys.sample
+++ b/doc/keys.sample
## Backward find previous
key rfind-next = 'p'
+## Jump to
+key jump = '.'
+
## Key configuration screen
#key screen-keyedit = 'K'
diff --git a/src/command.c b/src/command.c
index 45584143630b33c8742803c2cd42ecc033e5e1c7..ad8b8d49322e15ba25b77539450e580a41e8ee0b 100644 (file)
--- a/src/command.c
+++ b/src/command.c
N_("Backward find") },
{ { 'p', 0, 0 }, 0, CMD_LIST_RFIND_NEXT, "rfind-next",
N_("Backward find previous") },
+ { { '.', 0, 0 }, 0, CMD_LIST_JUMP, "jump",
+ /* translators: this queries the user for a string
+ * and jumps directly (while the user is typing)
+ * to the entry which begins with this string */
+ N_("Jump to") },
/* extra screens */
diff --git a/src/command.h b/src/command.h
index f339910e3a9c5a67345b7701561727148afbc18b..7111a2b2f619f1a7bb4f2cd350d487b5a62f50f1 100644 (file)
--- a/src/command.h
+++ b/src/command.h
CMD_LIST_FIND_NEXT,
CMD_LIST_RFIND,
CMD_LIST_RFIND_NEXT,
+ CMD_LIST_JUMP,
CMD_LIST_MOVE_UP,
CMD_LIST_MOVE_DOWN,
CMD_LIST_VISUAL_SELECT,
diff --git a/src/screen_help.c b/src/screen_help.c
index 8a33de3ef23d3876511fa23a7878ac70a884fe09..f8438dccaa3f5b7b34be579c8838fef85b739bfb 100644 (file)
--- a/src/screen_help.c
+++ b/src/screen_help.c
{ 0, CMD_LIST_RFIND, NULL },
{ 0, CMD_LIST_FIND_NEXT, NULL },
{ 0, CMD_LIST_RFIND_NEXT, NULL },
+ { 0, CMD_LIST_JUMP, NULL },
{ 0, CMD_TOGGLE_FIND_WRAP, NULL },
{ 0, CMD_LOCATE, NULL },
{ 0, CMD_VIEW, NULL },