Filter buffer completion by all columns.

In addition to the url and text column, also filter by the index column
so the user can enter a number to navigate to that tab.

Resolves #1830.
This commit is contained in:
Ryan Roden-Corrent 2016-08-10 10:20:04 -04:00
parent 85a4dc808e
commit 1de465f42b

View File

@ -148,7 +148,8 @@ class TabCompletionModel(base.BaseCompletionModel):
def __init__(self, parent=None):
super().__init__(parent)
self.columns_to_filter = [self.URL_COLUMN, self.TEXT_COLUMN]
self.columns_to_filter = [self.IDX_COLUMN, self.URL_COLUMN,
self.TEXT_COLUMN]
for win_id in objreg.window_registry:
tabbed_browser = objreg.get('tabbed-browser', scope='window',