integration with clipmenu https://github.com/cdown/clipmenu
This commit is contained in:
parent
91246b35e3
commit
3a98394f40
5
snippy
5
snippy
@ -72,6 +72,11 @@ run(){
|
|||||||
# just return if nothing was selected
|
# just return if nothing was selected
|
||||||
[[ -z "${FILE}" ]] && return 1
|
[[ -z "${FILE}" ]] && return 1
|
||||||
|
|
||||||
|
if [[ ${FILE} == 'clip' ]]; then
|
||||||
|
$(clipmenu ${MENU_ARGS})
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -f "${DIR}/${FILE}" ]; then
|
if [ -f "${DIR}/${FILE}" ]; then
|
||||||
# Put the contents of the selected file into the paste buffer.
|
# Put the contents of the selected file into the paste buffer.
|
||||||
content="$(bashdown < "${DIR}/${FILE}")"
|
content="$(bashdown < "${DIR}/${FILE}")"
|
||||||
|
Loading…
Reference in New Issue
Block a user