feat(autocmd): add TabEnter autocmd#173
Open
suveshmoza wants to merge 4 commits into
Open
Conversation
Member
RobertCraigie
left a comment
There was a problem hiding this comment.
Thanks! Some notes, will do a full review later:
- Right now all TabEnter autocmds must exit before we invoke UrlEnter autocmds. I'm not sure if this ordering is desired or not, can you check what neovim does for similar autocmds?
- You should update autocmds.md as well
- If we don't want the ordering mentioned in 1, then I think we could make this a thinner wrapper over the web extensions tab listener?
6908623 to
ba91a24
Compare
Contributor
Author
When switching to another tab page the order is:
BufLeave
WinLeave
TabLeave
WinEnter
TabEnter
BufEnter
|
ba91a24 to
17be30d
Compare
RobertCraigie
requested changes
Feb 14, 2026
Member
RobertCraigie
left a comment
There was a problem hiding this comment.
Thank you! I pushed a small docs change.
It looks like the "is tab switching" logic will need some adjustments to make it work for tabs that immediately load a new URI
17be30d to
6c6435c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #116
Add
TabEnterautocmdUsed the GitHub Issue example from Autocmds for demo.
Screen.Recording.2025-12-21.at.13.59.11.mov