mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 22:01:47 +03:00
A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
ab2b2cff45
Allows this: ```lua local wezterm = require 'wezterm'; local io = require 'io'; local os = require 'os'; wezterm.on("trigger-vim-with-scrollback", function(window, pane) -- Retrieve the current viewport's text. -- Pass an optional number of lines (eg: 2000) to retrieve -- that number of lines starting from the bottom of the viewport local scrollback = pane:get_lines_as_text(); -- Create a temporary file to pass to vim local name = os.tmpname(); local f = io.open(name, "w+"); f:write(scrollback); f:flush(); f:close(); -- Open a new window running vim and tell it to open the file window:perform_action(wezterm.action{SpawnCommandInNewWindow={ args={"vim", name}} }, pane) -- After vim is up and running we should remove the file, -- but we can't do this right now as the window and processing -- spawning are asynchronous and we'll probably delete the -- file while vim is starting up :-/ -- os.remove(name); end) return { keys = { {key="E", mods="CTRL", action=wezterm.action{EmitEvent="trigger-vim-with-scrollback"}}, } } ``` refs: #222 |
||
---|---|---|
.cargo | ||
.github | ||
assets | ||
async_ossl | ||
base91 | ||
bintree | ||
ci | ||
codec | ||
config | ||
deps | ||
docs | ||
filedescriptor | ||
luahelper | ||
mux | ||
promise | ||
pty | ||
rangeset | ||
ratelim | ||
strip-ansi-escapes | ||
tabout | ||
term | ||
termwiz | ||
umask | ||
vtparse | ||
wezterm | ||
wezterm-mux-server | ||
window | ||
.cirrus.yml | ||
.gitignore | ||
.gitmodules | ||
.rustfmt.toml | ||
Cargo.lock | ||
Cargo.toml | ||
CONTRIBUTING.md | ||
get-deps | ||
LICENSE.md | ||
README.md | ||
wt-record | ||
wt-replay |
Wez's Terminal
A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
User facing home page at: https://wezfurlong.org/wezterm/
Screenshot of wezterm on macOS, running vim
Installation
https://wezfurlong.org/wezterm/installation.html
Getting help
This is a spare time project, so please bear with me. There are two channels for support:
- You can use the GitHub issue tracker to see if someone else has a similar issue, or to file a new one: https://github.com/wez/wezterm/issues
- There is a Matrix/Riot.im room for (potentially!) real time discussions; that is bridged from the original Gitter room.
The Matrix/Gitter room is probably better suited to questions than it is to bug reports, but don't be afraid to use whichever you are most comfortable using and we'll work it out.