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

feat: add command line argument to select/add tab with a channel #5111

Merged
merged 4 commits into from
Jan 20, 2024

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Jan 20, 2024

Adds a -a <channel>/--activate <channel> command line option to activate a tab containing a channel or adding one (the feature request proposed --active).

  • Only Twitch channels are supported (special channels are not supported)
  • Only the main window is searched for tabs.
  • If no tab/main window with the channel is found, a new one is added. When adding a new window, it will show an out-of-bounds warning, but it should be fairly rare that no main window is present (in that case you might as well specify a window-layout with -c).
  • Tabs with fewer splits are preferred.
  • Splits without filters are preferred.

Fixes #2498.

src/common/Args.hpp Outdated Show resolved Hide resolved
@pajlada pajlada enabled auto-merge (squash) January 20, 2024 11:56
@pajlada pajlada merged commit 7951af6 into Chatterino:master Jan 20, 2024
20 checks passed
@Nerixyz Nerixyz deleted the feat/activate-from-commandline branch January 20, 2024 14:47
devJimmyboy pushed a commit to devJimmyboy/chatterino7 that referenced this pull request Feb 11, 2024
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.

Command line argument to launch chatterino with a specified tab selected.
2 participants