8000 Implements `if` conditions for pane and window by soraxas · Pull Request #942 · tmux-python/tmuxp · GitHub
[go: up one dir, main page]

Skip to content

Implements if conditions for pane and window #942

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix grammar
Signed-off-by: Tin Lai <tin@tinyiu.com>
  • Loading branch information
soraxas committed Jul 22, 2024
commit 1ac1d8ec23bdeb0b665a502989c6f376ebdf34e4
2 changes: 1 addition & 1 deletion examples/if-conditions.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"panes": [
{
"shell_command": [
"echo \"this shouldn't shows up\""
"echo \"this shouldn't show up\""
]
},
"echo neither should this $Foo"
Expand Down
4 changes: 2 additions & 2 deletions examples/if-conditions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ environment:
Foo: 'false'
show_htop: 'true'
windows:
# the following would not shows up as it evaluates to false
# the following would not show up as it evaluates to false
- window_name: window 1 ${ha} $Foo
if: ${Foo}
panes:
- shell_command:
- echo "this shouldn't shows up"
- echo "this shouldn't show up"
- echo neither should this $Foo
- window_name: window 2
panes:
Expand Down
0