aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-12 19:51:08 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-12 19:51:08 +0530
commitfd8a8387b8a21216ae379f6a8c448c82fd52fd28 (patch)
tree915ce95e9ed0842fe7a86dfe160e0052826dbc65 /misc
parentf95ee54870e2259e9384c6f5641cb6d374526a65 (diff)
downloadnnn-fd8a8387b8a21216ae379f6a8c448c82fd52fd28.tar.gz
Add option to show noti and copy selection to system clipboard
Diffstat (limited to 'misc')
-rw-r--r--misc/auto-completion/bash/nnn-completion.bash1
-rw-r--r--misc/auto-completion/fish/nnn.fish1
-rw-r--r--misc/auto-completion/zsh/_nnn1
-rwxr-xr-xmisc/clipboard-copier/copier23
4 files changed, 3 insertions, 23 deletions
diff --git a/misc/auto-completion/bash/nnn-completion.bash b/misc/auto-completion/bash/nnn-completion.bash
index bddf84f..00e34d5 100644
--- a/misc/auto-completion/bash/nnn-completion.bash
+++ b/misc/auto-completion/bash/nnn-completion.bash
@@ -31,6 +31,7 @@ _nnn ()
-S
-t
-v
+ -x
-h
)
if [[ $prev == -b ]]; then
diff --git a/misc/auto-completion/fish/nnn.fish b/misc/auto-completion/fish/nnn.fish
index 3613343..c1f2fac 100644
--- a/misc/auto-completion/fish/nnn.fish
+++ b/misc/auto-completion/fish/nnn.fish
@@ -30,4 +30,5 @@ complete -c nnn -s s -d 'use substring match for filters'
complete -c nnn -s S -d 'start in disk usage analyzer mode'
complete -c nnn -s t -d 'disable dir auto-select'
complete -c nnn -s v -d 'show program version and exit'
+complete -c nnn -s x -d 'notis, sel to system clipboard'
complete -c nnn -s h -d 'show program help'
diff --git a/misc/auto-completion/zsh/_nnn b/misc/auto-completion/zsh/_nnn
index d5d5c1d..34db851 100644
--- a/misc/auto-completion/zsh/_nnn
+++ b/misc/auto-completion/zsh/_nnn
@@ -28,6 +28,7 @@ args=(
'(-S)-S[start in disk usage analyzer mode]'
'(-t)-t[disable dir auto-select]'
'(-v)-v[show program version and exit]'
+ '(-x)-x[notis, sel to system clipboard]'
'(-h)-h[show program help]'
'*:filename:_files'
)
diff --git a/misc/clipboard-copier/copier b/misc/clipboard-copier/copier
deleted file mode 100755
index 6ac3ba6..0000000
--- a/misc/clipboard-copier/copier
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env sh
-
-# Description: Copy selection to clipboard
-#
-# Shell: POSIX compliant
-# Author: Arun Prakash Jana
-
-SELECTION=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection
-
-# Linux
-xargs -0 < "$SELECTION" | xsel -bi
-
-# macOS
-# xargs -0 < "$SELECTION" | pbcopy
-
-# Termux
-# xargs -0 < "$SELECTION" | termux-clipboard-set
-
-# Cygwin
-# xargs -0 < "$SELECTION" | clip
-
-# Wayland
-# xargs -0 < "$SELECTION" | wl-copy