Skip to content

Commit

Permalink
Adding clipboard docs
Browse files Browse the repository at this point in the history
  • Loading branch information
daonb committed Apr 3, 2024
1 parent c65c746 commit b67a24b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- support for webexec clipboard commands, e.g. use `webexec copy < file.txt` to copy a file to the client's clipboard
- Support for webexec clipboard commands, e.g. use `webexec copy < file.txt` to copy a file to the client's clipboard

## [1.9.2] - 2023/3/18

### Added

- support command to send the logs to the server
- Support command to send the logs to the server
- 9000 more lines of scrollback and a new setting to control it

### Fixed
Expand Down
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Terminal7 is a terminal multiplexer re-designed for remote servers and
hi-res touch screens. A reincaranation of tmux and screen, Terminal7 is a hybrid
app that works best on the iPad.

The code here is mainly ES6 with no framworks. We do use the following projects:
The code here is in vanilla TypeSctipt. We do use the following projects:

- capacitorjs for app packaging & plugins
- xterm.js for terminal emulation
Expand Down Expand Up @@ -50,3 +50,27 @@ You can install it using the one line installer or from the [source](https://git
bash <(curl -sL https://get.webexec.sh)
```

## Clipboard integration

Terminal7 has a clipboard integration that works with the WebRTC data channel.
For the CLI you can use the `webexec copy` and `webexec paste` commands to copy to the
active client's clipboard and paste from it.
If no peer are actives, e.g. you're using a classic terminal, webexec will use the system clipboard.

To integrate the clipboard with neovim so you can use `"+yy` to copy the current line to the clipboard
add to your init.lua:

```lua
vim.g.clipboard = {
name = 'webexec',
copy = {
["+"] = {'webexec', 'copy'},
["*"] = {'webexec', 'copy'},
},
paste = {
["+"] = {'webexec', 'paste'},
["*"] = {'webexec', 'paste'},
},
cache_enabled = true,
}
```

0 comments on commit b67a24b

Please sign in to comment.