-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Focus the last tab when the param to focus-tab
is greater than the number of tabs
#9369
Comments
I'm not sure how I feel about it making enough tabs to satisfy that parameter. I feel like that's a pretty easy footgun for someone to fat finger something like Though, it does seem like providing a value greater than the number of tabs should probably focus the last one. So *: Unless you're a madman running 10000 terminal tabs. |
yeah, i got you; i believe in people kinda like what you have just described :D we should NOT auto fallback; Perhaps we could ask before: 'this tab does't exist are you sure you what to create 9998 tabs?" ..but still, i'm not sure if it stop one to answer 'yes' ;) |
focus-tab
is greater than the number of tabs
## Summary of the Pull Request When we perform a `focusTab` action, we currently do nothing if the parameter was greater than the number of tabs. This PR changes that behavior. Now, `focus-tab -t 999999` will always focus the last tab, instead of silently doing nothing. ## PR Checklist * [x] Closes #9369 * [x] I work here * [x] Tests added/passed * [n/a] Requires documentation to be updated ## Validation Steps Performed * [x] ran tests * [x] validated commandline manually
…t#10651) ## Summary of the Pull Request When we perform a `focusTab` action, we currently do nothing if the parameter was greater than the number of tabs. This PR changes that behavior. Now, `focus-tab -t 999999` will always focus the last tab, instead of silently doing nothing. ## PR Checklist * [x] Closes microsoft#9369 * [x] I work here * [x] Tests added/passed * [n/a] Requires documentation to be updated ## Validation Steps Performed * [x] ran tests * [x] validated commandline manually
🎉This issue was addressed in #10651, which has now been successfully released as Handy links: |
From releas notes
it's great!
but to make it actually useful it should work with same pattern for tabs so i'd to be able to
wt -w 1048576 focus-tab -t 3
and expected result is to focus tab with index 3
or create it if it not exists
so for example
if i have only one tab in this window perhaps it could fallback to
wt -w 1048576 ; ; ; focus-tab -t 3
?
The text was updated successfully, but these errors were encountered: