aboutsummaryrefslogtreecommitdiff
path: root/core/.gui.luadoc
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-09-28 17:04:18 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2011-09-28 17:04:18 -0400
commit851ebfe28a7c2c157cdf17d4623cb954dc3802ea (patch)
treec911d2bdcc146210e31f9833e53e6295b6de03a5 /core/.gui.luadoc
parent132e362f44e00cd93e04967efbfc138c53a47ee4 (diff)
downloadtextadept-851ebfe28a7c2c157cdf17d4623cb954dc3802ea.tar.gz
textadept-851ebfe28a7c2c157cdf17d4623cb954dc3802ea.zip
Added gui.goto_file() for the 'find' and 'run' modules.
Diffstat (limited to 'core/.gui.luadoc')
-rw-r--r--core/.gui.luadoc12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/.gui.luadoc b/core/.gui.luadoc
index 2ff13019..deb39d58 100644
--- a/core/.gui.luadoc
+++ b/core/.gui.luadoc
@@ -26,6 +26,18 @@ module('gui')
function goto_view(n, relative) end
---
+-- Goes to the buffer with the given filename.
+-- If the desired buffer is open in a view, goes to that view. Otherwise, opens
+-- the buffer in either the `preferred_view` if given, the first view that is
+-- not the current one, a split view if `split` is `true`, or the current view.
+-- @param filename The filename of the buffer to go to.
+-- @param split If there is only one view, split it and open the buffer in the
+-- other view.
+-- @param preferred_view When multiple views exist and the desired buffer is not
+-- open in any of them, open it in this one.
+function goto_file(filename, split, preferred_view) end
+
+---
-- Gets the current split view structure.
-- @return table of split views. Each split view entry is a table with 4
-- fields: `1`, `2`, `vertical`, and `size`. `1` and `2` have values of either