]> Sergey Matveev's repositories - nnn.git/blobdiff - src/nnn.h
F2/F5 cd/cp
[nnn.git] / src / nnn.h
index adfb83b40393c26da59cdf729651bfd5a778525f..16f5b4c95615b89d3dc6d8838f3beb4a86b8deb3 100644 (file)
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -119,6 +119,8 @@ enum action {
        SEL_QUIT,
        SEL_QUITERR,
        SEL_VIEW,
+       SEL_COPY,
+       SEL_CD,
 #ifndef NOMOUSE
        SEL_CLICK,
 #endif
@@ -264,6 +266,10 @@ static struct key bindings[] = {
        { KEY_F(3),       SEL_VIEW },
        /* Run a plugin */
        { ';',            SEL_PLUGIN },
+       /* Call _nnn-cd */
+       { KEY_F(2),       SEL_CD },
+       /* Call _nnn-cp */
+       { KEY_F(5),       SEL_COPY },
        /* Show total size of listed selection */
        { 'S',            SEL_SELSIZE },
        /* Run command */