class Tmux

Overview

rubocop:disable Metrics/ClassLength

Defined in:

tmux.cr

Constant Summary

PANE_FORMAT = build_tmux_format({pane_id: String, window_id: String, pane_width: Int32, pane_height: Int32, pane_current_path: String, pane_in_mode: Bool, scroll_position: Int32 | Nil, window_zoomed_flag: Bool})

TODO make a macro or something

WINDOW_FORMAT = build_tmux_format({window_id: String, window_width: Int32, window_height: Int32, pane_id: String, pane_tty: String})

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(version_string) #

[View source]

Class Method Detail

def self.tmux_version_to_semver(version_string) #

[View source]

Instance Method Detail

def build_tmux_output_format(fields) #

[View source]
def capture_pane(pane : Pane, join = true) #

[View source]
def create_window(name, cmd, _pane_width, _pane_height) #

[View source]
def disable_prefix #

[View source]
def display_message(msg, delay = 100) #

[View source]
def exec(cmd) #

[View source]
def find_pane_by_id(id) : Pane | Nil #

[View source]
def get_global_option(name) #

[View source]
def kill_pane(id) #

[View source]
def kill_window(id) #

[View source]
def panes : Array(Pane) #

[View source]
def parse_style(style) #

TODO


[View source]
def parse_tmux_formatted_output(output, &) #

[View source]
def resize_pane(pane_id, width, height) #

TODO this command is version dependant D:


[View source]
def resize_window(window_id, width, height) #

TODO this command is version dependant D:


[View source]
def select_pane(id) #

[View source]
def set_buffer(value) #

[View source]
def set_global_option(name, value) #

[View source]
def set_key_table(table) #

[View source]
def set_window_option(name, value) #

[View source]
def socket_flag_value #

[View source]
def style_printer #

[View source]
def swap_panes(src_id, dst_id) #

[View source]
def tmux #

[View source]
def zoom_pane(id) #

[View source]