Skip to content
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

How to display and switch between tabs of the current window only, when multiple windows are open? #2108

Open
shindo-l opened this issue Apr 24, 2024 · 2 comments

Comments

@shindo-l
Copy link

I have currently implemented a custom method to display tabs of the current window only, but pressing enter opens a new tab instead of switching between tabs.

How to modify it to switch between tabs instead of opening a new tab when pressing enter?

api.mapkey('ot', 'Open current window all tab', function () {
    api.RUNTIME('getTabs', { queryInfo: { active: false, currentWindow: true } }, response => {
        //console.log(response);
        const services = Array.from(response.tabs, function (urlItem) {
            return {
                title: `[${urlItem.status}] ${urlItem.title}`,
                url: urlItem.url
            };
        });
        api.Front.openOmnibar({ type: "UserURLs", extra: services });
    });
});
@surflotus
Copy link

How about using 'T'{Choose a tab} instead of your own?

@shindo-l
Copy link
Author

How about using 'T'{Choose a tab} instead of your own?

'T' displays tabs from all windows, while my script only displays tabs from the current window

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

No branches or pull requests

2 participants