-
-
Notifications
You must be signed in to change notification settings - Fork 203
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(ui): Tab Renaming #848
Conversation
muhmud
commented
Jan 4, 2024
- Ported over changes from previous PR
Hey @akinsho , I think this is pretty much ready to look at. Quick question: how do I run the tests? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general made a few comments. Re. tests I'll run them whenever you push a change since it needs approval to run
Co-authored-by: Akin <[email protected]>
Co-authored-by: Akin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there just noticed that the rename function was triggering a get but not sure why?
lua/bufferline/tabpages.lua
Outdated
name = string(tabnr) | ||
end | ||
api.nvim_tabpage_set_var(tabnr, "name", name) | ||
M.get() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just noticed this before merging? why does this function need to be called? is this trying to force a refresh? There is a ui.refresh
function for that if so
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming my original reasoning was because it was a more tab scoped re-render call? If ui.refresh
will work fine, though, then that'd make more sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll make this change & test it out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed a commit for this & tested it out; looks like it's working
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks 🚀
* ported over changes from previous pr * Update lua/bufferline/commands.lua Co-authored-by: Akin <[email protected]> * Update lua/bufferline/tabpages.lua Co-authored-by: Akin <[email protected]> * change to use ui.refresh --------- Co-authored-by: Muhmud Ahmad <[email protected]> Co-authored-by: Akin <[email protected]>