Merge pull request #2 from masterdam79/clipboard-shenannigans
Clipboard shenannigans
This commit is contained in:
commit
ce800bc003
5
snippy
5
snippy
@ -392,7 +392,7 @@ run() {
|
|||||||
xdotool key ctrl+v sleep "$focus_wait"
|
xdotool key ctrl+v sleep "$focus_wait"
|
||||||
move_cursor "Up" $cursor_line_position
|
move_cursor "Up" $cursor_line_position
|
||||||
else
|
else
|
||||||
xdotool key ctrl+shift+v
|
xdotool key ctrl+shift+v sleep "$focus_wait"
|
||||||
if is_vim; then
|
if is_vim; then
|
||||||
move_cursor "Up" $cursor_line_position
|
move_cursor "Up" $cursor_line_position
|
||||||
fi
|
fi
|
||||||
@ -400,6 +400,9 @@ run() {
|
|||||||
|
|
||||||
move_cursor "Left" $cursor_position
|
move_cursor "Left" $cursor_position
|
||||||
|
|
||||||
|
# We need a little pause to handle the time to have the content of tmpfile pasted if is_gui
|
||||||
|
sleep "$focus_wait"
|
||||||
|
|
||||||
# Restore current clipboard
|
# Restore current clipboard
|
||||||
echo -ne "$current_clipboard" | xsel --clipboard --input
|
echo -ne "$current_clipboard" | xsel --clipboard --input
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user