-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
optimize xpns_organize_panes #185
Conversation
Looks like its not working as expected, I will look into this later this week. |
I found the issue, me preventing globbing and word splitting with double quotation marks made my input not work correctly. |
Approved |
Instead of calling global ${TMUX_XPANES_EXEC} multiple times, we combine the layout commands into a single local$layout_command string variable and execute it in a single call to $ {TMUX_XPANES_EXEC} at the end of the script.
This can should save some overhead and improve readability.
Since ${_args_num} is an integer, it is more efficient to use arithmetic evaluation with (( )) instead of the [[ ]] test operator. So I have changed it to (( _args_num > 1 )).
Please have a look at the commit and make sure its working as intended.
Cheers