Skip to content

Add cmdlets for rename-session and rename-window #90

Closed

Description

@tony

Summary

No cmdlet renames a session or a window. New-TmuxSession and New-TmuxWindow take -Name when they create one, and a later rename is reachable only through the raw-command cmdlets Invoke-TmuxCommand and Invoke-TmuxChain.

Motivation

The README's Invoke-TmuxChain example renames a window with New-TmuxCommand -Name rename-window -Arguments @('-t', 'chain:0', 'build'). The target is a literal string, so a rename that follows a typed read such as Get-TmuxWindow has to rebuild the target from the handle's ID by hand, and a typed Session or Window cannot be piped in.

libtmux for Go has Session.Rename and Window.Rename (session, window), and libtmux for Rust has Session::rename and Window::rename (session, window).

References

Activity

  1. added
    enhancement
    on Nov 14, 2026
  2. added 2 commits that reference this issue on Nov 15, 2026
    6150892
    bd19dd3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions