Strange leading whitespace before shell command

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

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python, shell, yaml
Domain
cli

Research direction

Reproduce the issue with the provided tmuxp configuration on tmuxp 1.55.0 and libtmux 0.46.0, then inspect how shell_command values are passed to tmux and how command history is populated. Done means the commands from the example no longer acquire leading whitespace when recalled with the Up key.

Written by the indexing model from the issue text.

Description

session_name: helloworld
windows:
  - window_name: dev
    start_directory: /home/parallels
    panes:
      - shell_command: "echo foo"
      - shell_command: "echo bar"

Image

If you press up to get the previous command, there is leading whitespace in the command, so it's not just a rendering issue.

tmuxp 1.55.0, libtmux 0.46.0

Dominant language
Python
Stars
4.6k
Forks
248
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/tmuxp

All issues in tmux-python/tmuxp

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.