aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/ui.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2013-12-19 16:18:30 -0500
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2013-12-19 16:18:30 -0500
commitf6b2794cce4cf0107df468d4c0e3fd017b38a09b (patch)
tree26503e49b93230ecec080df942ba56c429413a62 /core/ui.lua
parent889ef6ada4e2273942880c05fef7404937210c82 (diff)
Added configurable tab context menus.
Deprecated `textadept.menu.set_contextmenu()` in favor of new `textadept.menu.set_contextmenus()`.
Diffstat (limited to 'core/ui.lua')
-rw-r--r--core/ui.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/core/ui.lua b/core/ui.lua
index 4cbdab4d..a4ceeac2 100644
--- a/core/ui.lua
+++ b/core/ui.lua
@@ -10,7 +10,11 @@ local ui = ui
-- @field context_menu
-- The buffer's context menu, a [`ui.menu()`](#menu).
-- This is a low-level field. You probably want to use the higher-level
--- `textadept.menu.set_contextmenu()`.
+-- `textadept.menu.set_contextmenus()`.
+-- @field tab_context_menu
+-- The context menu for the buffer's tab, a [`ui.menu()`](#menu).
+-- This is a low-level field. You probably want to use the higher-level
+-- `textadept.menu.set_contextmenus()`.
-- @field clipboard_text (string)
-- The text on the clipboard.
-- @field statusbar_text (string, Write-only)
@@ -437,8 +441,8 @@ local goto_view
-- Low-level function for creating a menu from table *menu_table* and returning
-- the userdata.
-- You probably want to use the higher-level `textadept.menu.set_menubar()`
--- or `textadept.menu.set_contextmenu()` functions. Emits a `MENU_CLICKED` event
--- when a menu item is selected.
+-- or `textadept.menu.set_contextmenus()` functions. Emits a `MENU_CLICKED`
+-- event when a menu item is selected.
-- @param menu_table A table defining the menu. It is an ordered list of tables
-- with a string menu item, integer menu ID, and optional GDK keycode and
-- modifier mask. The latter two are used to display key shortcuts in the
@@ -449,7 +453,7 @@ local goto_view
-- @usage ui.menu{{'_New', 1, string.byte('n'), 4}} -- 'Ctrl+N'
-- @see events.MENU_CLICKED
-- @see textadept.menu.set_menubar
--- @see textadept.menu.set_contextmenu
+-- @see textadept.menu.set_contextmenus
-- @class function
-- @name menu
local menu