@requires_segment_info
def tablister(pl, segment_info, **kwargs):
 cur_tabpage = current_tabpage()
 cur_tabnr = cur_tabpage.number
 def add_multiplier(tabpage, dct):
  dct[u'priority_multiplier'] = (1 + (0.001 * abs((tabpage.number - cur_tabnr))))
  return dct
 return ((lambda tabpage, prefix: (tabpage_updated_segment_info(segment_info, tabpage), add_multiplier(tabpage, {u'highlight_group_prefix': prefix, u'divider_highlight_group': u'tab:divider'})))(tabpage, (u'tab' if (tabpage == cur_tabpage) else u'tab_nc')) for tabpage in list_tabpages())

@ requires_segment_info def tablister ( pl , segment_info , ** kwargs ) : cur_tabpage = current_tabpage ( ) cur_tabnr = cur_tabpage . number def add_multiplier ( tabpage , dct ) : dct [ u'priority_multiplier' ] = ( 1 + ( 0.001 * abs ( ( tabpage . number - cur_tabnr ) ) ) ) return dct return ( ( lambda tabpage , prefix : ( tabpage_updated_segment_info ( segment_info , tabpage ) , add_multiplier ( tabpage , { u'highlight_group_prefix' : prefix , u'divider_highlight_group' : u'tab:divider' } ) ) ) ( tabpage , ( u'tab' if ( tabpage == cur_tabpage ) else u'tab_nc' ) ) for tabpage in list_tabpages ( ) )
list all tab pages in segment_info format specifically generates a list of segment info dictionaries with window .