summaryrefslogtreecommitdiff
path: root/lib/clipboard.zsh
AgeCommit message (Collapse)Author
2021-08-17fix(lib): fix clipboard copy on TermuxMarc Cornellà
2020-02-28lib: add support for clippaste in WSL using powershellMarc Cornellà
Source: https://github.com/microsoft/WSL/issues/4852#issuecomment-579616808
2020-02-27lib: add termux commands to clipboard.zsh (#6243)j
Closes #6243
2020-02-27lib: add support for clip.exe clipboard copy in WSLMarc Cornellà
2020-02-27Merge branch 'master' into clipboardMarc Cornellà
2020-01-16lib: add MSYS2 support to clipboard integration (#8542)Andras Svraka
2019-07-14clipboard: Fix bad expansion of exit-code testRobert Estelle
2019-07-14clipboard: Fix tmux clipcopy after testingRobert Estelle
Tmux must have special handling for /dev/stdin since it's managing the terminal itself. This was tested with tmux-2.9a on macOS.
2019-07-14clipboard: Fix "cilppaste" -> "clippaste" typoRobert Estelle
2019-07-12clipboard: Add support for several more clipboardsRobert Estelle
This implements essentially the same heuristic as neovim, with the additional (existing) special support for Cygwin. See: https://github.com/neovim/neovim/blob/e682d799fa3cf2e80a02d00c6ea874599d58f0e7/runtime/autoload/provider/clipboard.vim#L55-L121 - pbcopy, pbpaste (macOS) - cygwin (Windows running Cygwin) - wl-copy, wl-paste (if $WAYLAND_DISPLAY is set) - xclip (if $DISPLAY is set) - xsel (if $DISPLAY is set) - lemonade (for SSH) https://github.com/pocke/lemonade - doitclient (for SSH) http://www.chiark.greenend.org.uk/~sgtatham/doit/ - win32yank (Windows) - tmux (if $TMUX is set)
2019-07-12clipboard: Avoid unnecessary re-detection each timeRobert Estelle
Previously, OS detection would happen on each invocation. This makes it happen once (unless it fails, in which case it will try again on the next invocation). This has the additional benefit of localizing the platform-specific checks and commands, too, versus spreading them out in separate functions.
2019-07-12clipboard: Reduce unnecessary special-casing on stdinRobert Estelle
Ideally the parameter would just be removed-users could always just do "clipcopy < some-file". but removing the parameter would break backwards compatibility. In any case, this simplifies the logic considerably.
2016-10-10Use $+commands to check the existence of a command in clipboard.zsh. (#5519)Hong
2015-10-05clip*: add xsel supportAndrew Janke
2015-08-18Add clipcopy() and clippaste() generic cross-platform CLI clipboard functions.Andrew Janke
Change copydir, copyfile, and coffee plugins to use them, instead of the Mac-only `pbcopy` command.