Skip to content
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

Distracting commands before prompt #970

Open
kocv59 opened this issue Feb 26, 2025 · 10 comments
Open

Distracting commands before prompt #970

kocv59 opened this issue Feb 26, 2025 · 10 comments

Comments

@kocv59
Copy link

kocv59 commented Feb 26, 2025

The command appears two times. One time before the prompt and the other at the prompt. Can you hide the first one? It doesn't need to be there its distracting. Should be able to remove it because tmuxinator and others doesn't have it.

@tony
Copy link
Member

tony commented Feb 26, 2025

Can you provide the output of tmux debug-info? The session file?

Could be shell, could tmux config, could be the tmuxp session configuration itself.

Running clear after the commands?

@kocv59
Copy link
Author

kocv59 commented Feb 26, 2025

I removed tmux and zsh config files and started tmuxp with https://tmuxp.git-pull.com/configuration/examples.html#short-hand-inline-style. Sometimes for the second and third panes it shows up before the prompt. I tried many times with tmux kill-server and tmuxp load shorthands. Is it happening for you?

@tony
Copy link
Member

tony commented Feb 26, 2025

Do you get something like this?

session_name: shorthands
windows:
  - window_name: long form
    panes:
      - shell_command:
          - echo 'did you know'
          - echo 'you can inline'
      - shell_command: echo 'single commands'
      - echo 'for panes'
      - 
Screenshot

Image

~ ❯ tmuxp -V
tmuxp 1.55.0, libtmux 0.46.0
~ ❯ tmux -V
tmux 3.4

@kocv59
Copy link
Author

kocv59 commented Feb 27, 2025

Yes it's the same.

@tony
Copy link
Member

tony commented Feb 27, 2025

For the behavior that tmuxinator has, what does it do? Does it show just an empty prompt? Or is all the prompts entered preserved? (It looks like tmuxp cuts the first part of the first prompt).

@kocv59
Copy link
Author

kocv59 commented Feb 27, 2025

The terminal should look like if you opened a new terminal without tmux and the shell prompt is the first thing to appear and then you type echo 'did you know'.

@kocv59
Copy link
Author

kocv59 commented Mar 19, 2025

Is it a bug that can be fixed?

@tony
Copy link
Member

tony commented Mar 19, 2025

@kocv59 To really really compare: Can you show a screenshot or video of tmuxp and tmuxinator side-by-side?

This is an area I, out of muscle memory over years, have simply gotten used to ❗.

@tony
Copy link
Member

tony commented Mar 19, 2025

One more thing: tmuxp doesn't really define this behavior at this time. It could. I'm interested in it.

tmuxp aims for consistent layout and structure: creation of windows and panes, the naming of sessions and windows, and making sure commands are ran.

@kocv59
Copy link
Author

kocv59 commented Mar 25, 2025

There shouldn't be any lines before the prompt and the commands should just appear once not twice (before the prompt and at the prompt).

tmuxp aims for consistent layout and structure: creation of windows and panes, the naming of sessions and windows, and making sure commands are ran.

It does that the feature request is minor to make tmuxp more nice to use.

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

No branches or pull requests

2 participants