aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.h
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-12-08 18:22:06 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-12-08 18:22:06 +0530
commit08cfcfea59a8ee0759d3644b06eca597d95d9277 (patch)
tree5458aed1fe83a3392e03bb2ab1fe148fd6c9a8af /src/nnn.h
parentd52482320ab992317438c1f6493d2f500c75d222 (diff)
downloadnnn-08cfcfea59a8ee0759d3644b06eca597d95d9277.tar.gz
Support run file as executable
Diffstat (limited to 'src/nnn.h')
-rw-r--r--src/nnn.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nnn.h b/src/nnn.h
index 088f5a6..9e7d5f7 100644
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -80,6 +80,7 @@ enum action {
SEL_RENAME,
SEL_RENAMEALL,
SEL_HELP,
+ SEL_EXEC,
SEL_SHELL,
SEL_SCRIPT,
SEL_RUNEDIT,
@@ -209,6 +210,8 @@ static struct key bindings[] = {
{ 'r', SEL_RENAMEALL },
/* Show help */
{ '?', SEL_HELP },
+ /* Execute file */
+ { CONTROL('S'), SEL_EXEC },
/* Run command */
{ '!', SEL_SHELL },
{ CONTROL(']'), SEL_SHELL },