ivaaaan / smug

Session manager and task runner for tmux. Start your development environment within one command.
MIT License
712 stars 29 forks source link

set a custom timeout before executing send-keys for commands #112

Closed blob42 closed 2 years ago

blob42 commented 2 years ago

In some situations send-keys might fire before the shell prompt finished initilization. It happened for me when using fish shell and oh-my-fish which makes the send-keys start executing bofore my shell is ready and I endup with a written command that is not executed

This patch adds a custom sendkeys_timeout as a top level option that takes an integer in milliseconds. It will ensure a Sleep call is made before.

ivaaaan commented 2 years ago

Thanks for the PR. Can you please fix formatting in the changed files?

blob42 commented 2 years ago

Can you check if the formatting is good now ?

ivaaaan commented 2 years ago

Thanks! Merged