aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-03-30 21:17:00 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-03-30 23:00:15 +0530
commitc42790aa189339a9562128b486ebdd82fed79f8c (patch)
tree48fac59b39c19957b7afe643d4836c5d70144a80 /config.def.h
parent6b169bbd86de60eeb893051f60284fbfc0cfb226 (diff)
downloadnnn-c42790aa189339a9562128b486ebdd82fed79f8c.tar.gz
Support file name copier
Add keybind 'Ctrl-k' to copy the absolute path of the file under the cursor if environment variable NOICE_COPIER is set.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 9c6ae7e..7ec98ef 100644
--- a/config.def.h
+++ b/config.def.h
@@ -71,6 +71,8 @@ struct key bindings[] = {
/* Toggle sort by time */
{ 't', SEL_MTIME },
{ CONTROL('L'), SEL_REDRAW },
+ /* Copy currently selected file path */
+ { CONTROL('K'), SEL_COPY },
/* Run command */
{ 'z', SEL_RUN, "top" },
{ '!', SEL_RUN, "sh", "SHELL" },