From 092d5984e16f2d8f844dc88a417ed6f9defdf42c Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Fri, 18 Mar 2022 21:55:42 -0400 Subject: Added `move_buffer()` function and made tabs rearrangeable via drag and drop. --- modules/lua/ta_api | 1 + modules/lua/ta_tags | 1 + 2 files changed, 2 insertions(+) (limited to 'modules') diff --git a/modules/lua/ta_api b/modules/lua/ta_api index f3d6de54..000ca551 100644 --- a/modules/lua/ta_api +++ b/modules/lua/ta_api @@ -728,6 +728,7 @@ modify buffer.modify (bool, Read-only)\nWhether or not the buffer has unsaved ch modify_rule lexer.modify_rule(lexer, id, rule)\nReplaces in lexer *lexer* the existing rule identified by string *id* with pattern *rule*.\n@param lexer The lexer to modify.\n@param id The id associated with this rule.\n@param rule The LPeg pattern of the rule. mouse_dwell_time view.mouse_dwell_time (number)\nThe number of milliseconds the mouse must idle before generating a `DWELL_START` event. A\ntime of `view.TIME_FOREVER` will never generate one. mouse_selection_rectangular_switch view.mouse_selection_rectangular_switch (bool)\nWhether or not pressing `view.rectangular_selection_modifier` when selecting text\nnormally with the mouse turns on rectangular selection.\nThe default value is `false`. +move_buffer _G.move_buffer(from, to)\nMoves the buffer at index *from* to index *to*, shifting other buffers as necessary.\n@param from Index of the buffer to move.\n@param to Index to move the buffer to. move_caret_inside_view buffer.move_caret_inside_view(buffer)\nMoves the caret into view if it is not already, removing any selections.\n@param buffer A buffer. move_extends_selection buffer.move_extends_selection (bool, Read-only)\nWhether or not regular caret movement alters the selected text.\n`buffer.selection_mode` dictates this property. move_selected_lines_down buffer.move_selected_lines_down(buffer)\nShifts the selected lines down one line.\n@param buffer A buffer. diff --git a/modules/lua/ta_tags b/modules/lua/ta_tags index 7443c621..6a448c2e 100644 --- a/modules/lua/ta_tags +++ b/modules/lua/ta_tags @@ -730,6 +730,7 @@ modify _HOME/core/.buffer.luadoc /^module('buffer')$/;" F class:buffer modify_rule _HOME/lexers/lexer.lua /^function M.modify_rule(lexer, id, rule)$/;" f class:lexer mouse_dwell_time _HOME/core/.view.luadoc /^module('view')$/;" F class:view mouse_selection_rectangular_switch _HOME/core/.view.luadoc /^module('view')$/;" F class:view +move_buffer _HOME/core/init.lua /^local move_buffer$/;" f move_caret_inside_view _HOME/core/.buffer.luadoc /^function move_caret_inside_view(buffer) end$/;" f class:buffer move_extends_selection _HOME/core/.buffer.luadoc /^module('buffer')$/;" F class:buffer move_selected_lines_down _HOME/core/.buffer.luadoc /^function move_selected_lines_down(buffer) end$/;" f class:buffer -- cgit v1.2.3