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. --- core/init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core') diff --git a/core/init.lua b/core/init.lua index 4290c901..56b7519f 100644 --- a/core/init.lua +++ b/core/init.lua @@ -133,6 +133,14 @@ local view -- The functions below are Lua C functions. +--- +-- Moves the buffer at index *from* to index *to*, shifting other buffers as necessary. +-- @param from Index of the buffer to move. +-- @param to Index to move the buffer to. +-- @class function +-- @name move_buffer +local move_buffer + --- -- Emits a `QUIT` event, and unless any handler returns `false`, quits Textadept. -- @see events.QUIT -- cgit v1.2.3