Skip to content

New command tmux-split#1223

Closed
yoshipep wants to merge 2 commits into
hugsy:mainfrom
yoshipep:tmux-split
Closed

New command tmux-split#1223
yoshipep wants to merge 2 commits into
hugsy:mainfrom
yoshipep:tmux-split

Conversation

@yoshipep

@yoshipep yoshipep commented May 5, 2026

Copy link
Copy Markdown

Add gef tmux-split to redirect each context section into its own tmux pane (splitmind-style) with INI layouts, builtin pwndbg-classic, optional fit-to-pane, inferior-tty/command panes, and auto-cleanup on exit. Also: context.trace_args_raw to show raw hex args in backtrace, and space-separator in disasm opcode bytes.

Description

  • What it adds: gef tmux-split command that mirrors splitmind's per-section pane layout for pwndbg-style debugging.
  • Backwards compatibility: all new behavior is opt-in via the new command and new settings (context.output.*,
    context.fit_pane_to_content, context.fit_lines_to_pane, context.trace_args_raw). Existing context rendering is unchanged when no
    per-section tty is set.
  • Bundled changes
    • context.trace_args_raw for raw hex args in backtrace.
  • Tests: 12 tests in tests/commands/tmux_split.py covering the parser, redirect routing, error paths, and reset/dump behavior.
  • Docs: new docs/commands/tmux-split.md plus a cross-link from tmux-setup.md and the nav entry in mkdocs.yml.

Checklist

  • My code follows the code style of this project.
  • My change includes a change to the documentation, if required.
  • If my change adds new code, adequate tests have been added.
  • I have read and agree to the CONTRIBUTING document.

@github-actions

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown

🤖 Coverage update for 1f6c8e7 🟢

Old New
Commit 90cced8 1f6c8e7
Score 70.1989% 70.1989% (0)

@hugsy

hugsy commented May 5, 2026

Copy link
Copy Markdown
Owner

Hi @yoshipep , thanks for the PR.

You're using an old version of GEF, which makes it impossible to review. Please rebase against main and force push your changes.

@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

🤖 Coverage update for 0060f29 🟢

Old New
Commit 90cced8 0060f29
Score 70.1989% 70.1989% (0)

@hugsy hugsy added enhancement ui Anything related to GEF's appearance waiting labels May 8, 2026

@hugsy hugsy left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @yoshipep

This looks a really cool PR. Thanks for also providing clear tests and documentation.

As mentinoed, you need to rebase your branch against main to adopt the new formatting, and when that's done re-request me for a review.
If you have issues doing that, feel free to ping us on Discord.

Cheers!

@hugsy hugsy changed the title Tmux split New command tmux-split May 8, 2026
@hugsy hugsy added this to the 2026.06 milestone May 8, 2026
@github-actions

Copy link
Copy Markdown

🤖 Coverage update for d2c56a3 🟢

Old New
Commit 90cced8 d2c56a3
Score 70.1989% 70.1989% (0)

@hugsy

hugsy commented May 15, 2026

Copy link
Copy Markdown
Owner

Hi @yoshipep

Unfortunately this is still not good for review and merging because it reverts some recent changes. Also I noticed a lot of comments, was this generated only by LLM ?

If you want a more flexible environment, consider moving this command directly to gef-extras instead of gef as we are less strict in that repo, which is community-driven

@yoshipep

Copy link
Copy Markdown
Author

Hi @hugsy,
Yes I used an LLM to aid in the development of this feature. As you pointed out, I will try to include it in gef extras.
Thx for your time

@yoshipep yoshipep closed this May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement ui Anything related to GEF's appearance waiting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants