summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2009-07-04 07:24:57 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2009-07-04 07:24:57 +0200
commit5838d02077f4b50e6078f19fc1be599a9b0d411b (patch)
treebadb285a6960371cddf3796af40d766f44d01299
parent9dab25e02c909196fd043f77f278ea0c032d23aa (diff)
add shortcut keybinding for saving in tiny tag editor
-rw-r--r--src/help.cpp5
-rw-r--r--src/ncmpcpp.cpp7
2 files changed, 12 insertions, 0 deletions
diff --git a/src/help.cpp b/src/help.cpp
index 51c6b49f..4fdbde53 100644
--- a/src/help.cpp
+++ b/src/help.cpp
@@ -273,6 +273,11 @@ void Help::GetKeybindings()
# ifdef HAVE_TAGLIB_H
+ *w << "\n\n " << fmtBold << "Keys - Tiny tag editor\n -----------------------------------------\n" << fmtBoldEnd;
+ *w << DisplayKeys(Key.Enter) << "Edit tag\n";
+ *w << DisplayKeys(Key.ToggleSingle) << "Save\n";
+
+
*w << "\n\n " << fmtBold << "Keys - Tag editor\n -----------------------------------------\n" << fmtBoldEnd;
*w << DisplayKeys(Key.Enter) << "Change tag/filename for one song (left column)\n";
*w << DisplayKeys(Key.Enter) << "Perform operation on all/selected songs (middle column)\n";
diff --git a/src/ncmpcpp.cpp b/src/ncmpcpp.cpp
index c366d270..4f0a4351 100644
--- a/src/ncmpcpp.cpp
+++ b/src/ncmpcpp.cpp
@@ -1192,6 +1192,13 @@ int main(int argc, char *argv[])
mySearcher->Main()->Highlighting(1);
mySearcher->EnterPressed();
}
+# ifdef HAVE_TAGLIB_H
+ else if (myScreen == myTinyTagEditor)
+ {
+ myTinyTagEditor->Main()->Highlight(myTinyTagEditor->Main()->Size()-2); // Save
+ myTinyTagEditor->EnterPressed();
+ }
+# endif // HAVE_TAGLIB_H
else
{
Mpd.SetSingle(!Mpd.GetSingle());