tmux-python / tmux-python/tmuxp

How to hide shell_command_before

Open
#538 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
4.6k
Forks
248
Avg merge
2h 13m
Merged PRs (30d)
1

Description

Step 1: Provide a summary of your problem

I want to execute some commands (with the shell_command_before option of my tmuxp file) but without those commands being shown on my shell.

The best thing that I could do was to put a clear command as the last, but the screen still blinks with my commands for some seconds.

Step 2: Provide tmuxp details
  • Python Version 3.8.0
  • Tmux version 3.0a
  • Tmuxp version 1.5.4
Step 3: Describe your environment
  • Architecture: Arch
  • OS version: Manjaro Architect
Step 4: Describe the problem:
Steps to reproduce:

Create the following tmuxp file:

session_name: sample
windows:
- window_name: main
  layout: tiled
  shell_command_before:
    - cd ~/
    - echo "ok"
    - clear

Them, load that tmuxp file

Observed Results:

You will notice that you can see, on the top, the commands on shell_command_before

Expected Results:

I would want to have a option that run those commands silently

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.

Research direction

Start by locating the implementation that processes the tmuxp file's shell_command_before entries, then trace how each command is sent to tmux. Reproduce the sample configuration and compare the current visible output with the requested silent behavior. Done means commands run without being displayed or causing the reported blink.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.