feature: upstream capture_since

Open
#740 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
api

Research direction

Review the linked libtmux-mcp pull request and the existing capture_pane implementation first. Identify the library's cursor-related entry points and tests, then implement the requested functional capture_since behavior. Done means it returns text from a cursor to the pane's end, returns a new end cursor, and leaves the original cursor unchanged.

Written by the indexing model from the issue text.

Description

enhancement

The https://github.com/tmux-python/libtmux-mcp/pull/63/changes#top implements capture_since, which would be a fantastic addition to this library alongside capture_pane. In particular, it should just involve implementing a cursor class, which notes internally the pane it is associated to. Then the function capture_since, which returns the text from the given cursor to the end, along with a new cursor representing the new end. capture_since could even be a method of that cursor class, but I'd push for a functional interface, where calling it doesn't modify the cursor.

Dominant language
Python
Stars
1.2k
Forks
127
Avg merge
2h 13m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tmux-python/libtmux

All issues in tmux-python/libtmux

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.