Skip to content

Use tab pos instead of tab idx for ScreenInstruction::RenameTab #4179

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 1 commit into
base: main
Choose a base branch
from

Conversation

ShoyuVanilla
Copy link

@ShoyuVanilla ShoyuVanilla commented May 6, 2025

Fixes #3535

Currently, ScreenInstruction::RenameTab is used for plugin API only and from the plugin's side, there is no way to find a tab's index rather than poisition and zellij-tile's rename_tab api is quite unusable in current state. (Actually, the API names the parameter as tab_position)
I think that using tab position instead of index would be better for this.

@Pytness
Copy link

Pytness commented May 15, 2025

Are there any other apis with this issue?

@ShoyuVanilla
Copy link
Author

Are there any other apis with this issue?

Well, I haven't done exhaustive checks so I'm not sure but for now, only this one for tab indices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Failed to find tab with index" when renaming after deleting tabs with plugin api.
2 participants