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

Commands not being executed, keys sent too fast #132

Open
Sermuns opened this issue Jan 14, 2025 · 0 comments
Open

Commands not being executed, keys sent too fast #132

Sermuns opened this issue Jan 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Sermuns
Copy link

Sermuns commented Jan 14, 2025

Describe the bug
The commands specified are being ran so fast that my bash prompt hasn't even started. It seems like the entire command is buffered and then placed ready to be executed in prompt, instead of being ran.

I think the problem is my bash prompt has a slow startup, this stackoverflow question seems to describe the same issue, so maybe it has nothing to do with smug:

https://stackoverflow.com/questions/30413047/tmux-send-keys-command-appears-twice-on-the-screen

Smug config

session: mdbook
root: .

windows:
  - name: code
    layout: tiled
    panes:
      - commands:
          - mdbook serve
        type: horizontal

Expected behavior
I want the command to just start, not be placed ready to be ran.

Funnily enough seems exactly like what #82 wants.

Output of cat ~/.config/smug/smug.log

tmux has-session -t mdbook:
exit status 1 no server running on /run/tmux/1000/default

tmux new -Pd -s mdbook -n smug_def -c .
tmux setenv -t mdbook SMUG_SESSION mdbook
tmux setenv -t mdbook SMUG_SESSION_CONFIG_PATH /home/sermuns/.config/smug/mdbook.yml
tmux neww -Pd -t mdbook: -c . -F #{window_id} -n code
tmux split-window -Pd -t @1 -c . -F #{pane_id}
tmux select-layout -t @1 tiled
tmux send-keys -t @1.%2 mdbook serve Enter
tmux select-layout -t @1 tiled
tmux kill-window -t mdbook:smug_def
tmux move-window -r -s mdbook: -t mdbook:
tmux has-session -t mdbook:
tmux attach -d -t mdbook:

Smug version

Installed using go, so I think bf3f245.

OS you're using

openSUSE Tumbleweed

❯ uname -a
Linux kratos 6.12.8-2-default #1 SMP PREEMPT_DYNAMIC Mon Jan  6 06:45:37 UTC 2025 (90b0f5b) x86_64 x86_64 x86_64 GNU/Linux
@Sermuns Sermuns added the bug Something isn't working label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant