Skip to content

wez-logging saves the contents of the WezTerm scrollback buffer to a file. WezTerm port of tmux-logging.

Notifications You must be signed in to change notification settings

sei40kr/wez-logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wez-logging

WezTerm port of tmux-logging

wez-logging saves the contents of the WezTerm scrollback buffer to a file.

Installation

Clone this repository into your $XDG_CONFIG_HOME/wezterm directory:

git clone https://github.com/sei40kr/wez-pain-control.git $XDG_CONFIG_HOME/wezterm

Usage

local wezterm = require("wezterm")

local config = {}

if wezterm.config_builder then
    config = wezterm.config_builder()
end

-- Add these lines:
local logging = require("wez-logging.plugin")
config.keys = {
    -- You can change the key bindings to whatever you like.
    { key = "p", mods = "LEADER|ALT|SHIFT", action = logging.action.CaptureScrollback },
    { key = "p", mods = "LEADER|ALT",       action = logging.action.CaptureViewport },
}

return config

About

wez-logging saves the contents of the WezTerm scrollback buffer to a file. WezTerm port of tmux-logging.

Topics

Resources

Stars

Watchers

Forks