show_tab_names option lets you display the name of the tabs in the horizontal bar

This commit is contained in:
Florent Le Coz 2011-11-30 23:25:22 +01:00
parent 1e8383c3e3
commit cb32f6d30a

View file

@ -303,6 +303,8 @@ class GlobalInfoBar(Win):
continue
try:
self.addstr("%s" % str(tab.nb), to_curses_attr(color))
if config.get('show_tab_names', 'false') == 'true':
self.addstr(" %s" % str(tab.get_name()), to_curses_attr(color))
self.addstr("|", to_curses_attr(get_theme().COLOR_INFORMATION_BAR))
except: # end of line
break