Skip to content

Streamline and document direct commands #527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 28 commits into from
Feb 17, 2024
Merged

Streamline and document direct commands #527

merged 28 commits into from
Feb 17, 2024

Conversation

tony
Copy link
Member

@tony tony commented Feb 17, 2024

Changes

Cleanups

  • .cmd: Streamline by:
    • using cmd: str as first position argument
    • Removing unused keyword arguments **kwargs

Renamings

  • Session.attached_window renamed to Session.active_window
    • Session.attached_window deprecated
  • Session.attached_pane renamed to Session.active_pane
    • Session.attached_pane deprecated
  • Window.attached_pane renamed to Window.active_pane
    • Window.attached_pane deprecated

Improvements

  • Server.attached_windows now users QueryList's .filter()

Documentation

  • Document .cmd in README and quickstart
  • Add doctests and improve docstrings to cmd() methods across:
    • Server.cmd
    • Session.cmd
    • Window.cmd
    • Pane.cmd

@tony tony force-pushed the run branch 5 times, most recently from dfaa717 to 635ff6d Compare February 17, 2024 10:44
@tony tony changed the title Docs(run): Emphasize you can run any command, contextually Streamline and document direct commands Feb 17, 2024
@tony tony merged commit b356b92 into master Feb 17, 2024
@tony tony deleted the run branch February 17, 2024 12:58
tony added a commit that referenced this pull request Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant