tmuxtmuxC source reference

Choose documentation 1

latest

tmux source version

Latest (3.7c) 3.7c 3.2a
English

tmux C API

attribute tmux

cmd_swap_window_entry

Source
Qualified name
cmd_swap_window_entry
Source
cmd-swap-window.c
const struct cmd_entry cmd_swap_window_entry = { .name = "swap-window", .alias = "swapw", .args = { "ds:t:", 0, 0, NULL }, .usage = "[-d] " "[-s src-window] [-t dst-window]" , .source = { 's', CMD_FIND_WINDOW, 0x8 }, .target = { 't', CMD_FIND_WINDOW, 0 }, .flags = 0, .exec = cmd_swap_window_exec };

tmux command swap-window

Other function references

references 1

Functions cmd_swap_window_entry takes as a pointer or callback. It does not call them.

Referenced declarations

type references 4

Types and data cmd_swap_window_entry names in its declaration.

In libtmux

These methods send swap-window.

Library methods that send tmux swap-window, by scope
Language Methods
Python Window.swap
Ruby WindowLink#swap
Lua WindowLink:swap
Julia swap_window
Erlang swap/3
Common Lisp client.swap-windows
TypeScript Window.swapWith
Rust Window.swap_with
Go Window.Swap
C# Window.SwapAsync
C++ Window::swap_with
Swift Server.swap(_:with:)
Raku WindowLinkRef.swap

No method in PowerShell, Elixir, Haskell, Java, Clojure, Kotlin, Scala, F#, OCaml, or Perl sends this command itself.

Esc

Type to search.

Reference previewOpen reference