From 4c01bce7d482d1f509f89e5b8304564007947a24 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 7 Nov 2013 22:59:13 -0500 Subject: Added support for tabs. --- core/ui.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/ui.lua') diff --git a/core/ui.lua b/core/ui.lua index 9a1bd5a4..03a0adcf 100644 --- a/core/ui.lua +++ b/core/ui.lua @@ -19,6 +19,9 @@ local ui = ui -- The text displayed in the buffer statusbar. -- @field maximized (bool) -- Whether or not Textadept's window is maximized. +-- @field tabs (bool) +-- Whether or not to display the tab bar when multiple buffers are open. +-- The default value is `true`. module('ui')]] local theme = package.searchpath(not CURSES and 'light' or 'term', @@ -262,6 +265,7 @@ local function set_title() local basename = buffer.filename and filename:match('[^/\\]+$') or filename ui.title = string.format('%s %s Textadept (%s)', basename, buffer.modify and '*' or '-', filename) + buffer.tab_label = basename..(buffer.modify and '*' or '') end -- Changes Textadept title to show the buffer as being "clean" or "dirty". -- cgit v1.2.3