Rebuild buffer completion when tab title changes
This commit is contained in:
parent
96087bd554
commit
6bbde59de7
@ -174,6 +174,7 @@ class TabCompletionModel(base.BaseCompletionModel):
|
|||||||
for i in range(tabbed_browser.count()):
|
for i in range(tabbed_browser.count()):
|
||||||
tab = tabbed_browser.widget(i)
|
tab = tabbed_browser.widget(i)
|
||||||
tab.url_changed.connect(self.rebuild)
|
tab.url_changed.connect(self.rebuild)
|
||||||
|
tab.title_changed.connect(self.rebuild)
|
||||||
tab.shutting_down.connect(self.delayed_rebuild)
|
tab.shutting_down.connect(self.delayed_rebuild)
|
||||||
tabbed_browser.new_tab.connect(self.on_new_tab)
|
tabbed_browser.new_tab.connect(self.on_new_tab)
|
||||||
objreg.get("app").new_window.connect(self.on_new_window)
|
objreg.get("app").new_window.connect(self.on_new_window)
|
||||||
@ -187,6 +188,7 @@ class TabCompletionModel(base.BaseCompletionModel):
|
|||||||
def on_new_tab(self, tab):
|
def on_new_tab(self, tab):
|
||||||
"""Add hooks to new tabs."""
|
"""Add hooks to new tabs."""
|
||||||
tab.url_changed.connect(self.rebuild)
|
tab.url_changed.connect(self.rebuild)
|
||||||
|
tab.title_changed.connect(self.rebuild)
|
||||||
tab.shutting_down.connect(self.delayed_rebuild)
|
tab.shutting_down.connect(self.delayed_rebuild)
|
||||||
self.rebuild()
|
self.rebuild()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user