Core LibraryunreleasedAPI reference

Choose documentation 1

latest

Current version

latest
English

Unreleased libtmux-haskell has not been released. Its API may change during development. This site's structure and URLs may change too.

MoreLess about this notice

module libtmux-haskell

LibTmux.Query.Fields

Captured fields and relationships for LibTmux.Query.

Source and package
Qualified name
LibTmux.Query.Fields
Package
libtmux-haskell
Source
src/LibTmux/Query/Fields.hs
LibTmux.Query.Fields

Description

Import this module qualified, for example as F. Row prefixes identify the source row in F.paneActive and F.linkActive. Tokens describe the tmux 3.3a baseline and never contact tmux. Byte-bearing names and paths, optional values and contextual relationships keep the meanings of LibTmux.Snapshot.

>>> LibTmux.Query.requirements (LibTmux.Query.matching (LibTmux.Query.eq paneActive True) LibTmux.Query.panes)
QueryRequirements {sourceName = "panes", fieldNames = ["pane.active"], relationshipNames = [], orderingFields = [], rowLimit = Nothing}

What is on here

Its exports fall into these groups, in export-list order:

Pane occurrences

Members56 members

Common operations9

  • clientAttachment Optional captured selection, used with optionalRelated. Absence fails that positive predicate and satisfies its negation.
  • clientAttachmentPane Selected pane in its actual session/index context.
  • clientHeight Tty height when tmux has started the terminal; absent for control clients.
  • linkFlags Native window_flags for this appearance. Retains tmux's doubled # escaping.
  • occurrencePane The physical pane observed through this occurrence, used with related.
  • paneActive Whether this is the active pane of its physical window.
  • serverInfoVersion Parsed tmux release, compared using the library's version ordering.
  • sessionWindowLinks Every window link owned by this session, retaining index and multiplicity.
  • windowZoomed Whether a pane currently occupies the window through zoom.

Other members47

  • clientAttachmentPaneId Native ID of the selected physical pane.
  • clientAttachmentSession Selected session observation, used with related.
  • clientAttachmentSessionId Native ID of the selected session.
  • clientAttachmentWindow Selected physical window observation.
  • clientAttachmentWindowId Native ID of the selected physical window.
  • clientAttachmentWindowIndex Selected link index in the client's session.
  • clientName Lossless client name supplied by tmux.
  • clientPid Positive operating-system process ID, for observation rather than signalling.
  • clientTty Observed client tty, or Nothing when tmux reports no tty.
  • clientWidth Reported unsigned tty width in cells. Control clients can report zero.
  • linkActive Whether this link is selected in its session.
  • linkIndex Window-link index within the session; reindexing can change it.
  • linkPanes Physical panes reached through this link, ordered by pane index.
  • linkSession Resolve the session in the supplied snapshot with related.
  • linkSessionId Native ID of the session that owns this observed link.
  • linkWindow Resolve the shared physical window in the supplied snapshot.
  • linkWindowId Native ID of the shared physical window.
  • occurrenceLink The observed session and window-index context of this appearance.
  • paneCurrentCommand Foreground command name as lossless POSIX bytes, not a shell command line.
  • paneCurrentPath Observed current directory on the tmux endpoint, preserving POSIX bytes.
  • paneCursorX Zero-based base-screen column; may equal width when a wrap is pending.
  • paneCursorY Zero-based base-screen row, independent of the current mode's cursor.
  • paneDead Whether tmux observed the pane's process as dead.
  • paneHeight Positive height in cells, independent of window-link context.
  • paneId Native pane ID. Equality alone does not establish Server identity.
  • paneIndex Pane index within its window, distinct from a window-link index.
  • paneMode Current mode name, or Nothing when no mode is active.
  • paneModeCount Native pane mode-stack depth, including zero.
  • paneTitle UTF-8 pane title. contains performs exact Text substring matching.
  • paneWidth Positive width in cells. Use dimensionAtLeast for an integer threshold.
  • paneWindow Resolve the pane's physical window in the supplied snapshot with related.
  • paneWindowId Native ID of the pane's physical window; use paneWindow to navigate it.
  • serverInfoPid Observed daemon process ID.
  • serverInfoSocketPath Reported socket path on the tmux endpoint, retaining POSIX bytes.
  • serverInfoStartedAt Daemon start time in epoch seconds, as reported by tmux.
  • sessionAttached Nonnegative count of attached clients as observed by tmux.
  • sessionClients Captured clients attached to this session; an empty list is known absence.
  • sessionGroup Lossless reported group label, or Nothing for an ungrouped session.
  • sessionId Native session ID without a connection-generation guarantee.
  • sessionName Captured UTF-8 session name. Equality does not normalize Unicode.
  • windowHeight Positive physical window height in cells.
  • windowId Native physical window ID, independent of a session's link index.
  • windowLayout Native unzoomed layout encoding, possibly including pane selections. Treat it as opaque, release-dependent text.
  • windowLinks All contextual appearances of this window across captured sessions.
  • windowName Lossless window label. Equality and ordering compare its retained bytes.
  • windowPanes Physical panes in this window, ordered by pane index.
  • windowWidth Positive physical window width in cells.

Order: the accessors that walk the hierarchy, the operations the ports share, then the rest.

Guides

task material

Pages that discuss LibTmux.Query.Fields.

Esc
Search in

Type to search.

Reference previewOpen reference