From 6301bf8035f13c885e568f61af83383a554dd92d Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 28 Aug 2012 09:32:27 -0400 Subject: Updated Lua Adeptsense. --- modules/lua/api | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'modules/lua/api') diff --git a/modules/lua/api b/modules/lua/api index a8672b9a..0f022373 100644 --- a/modules/lua/api +++ b/modules/lua/api @@ -38,7 +38,7 @@ Cp lpeg.Cp()\nCreates a position capture. It matches the empty string and captur Cs lpeg.Cs(patt)\nCreates a substitution capture, which captures the substring of the subject\nthat matches patt, with substitutions. For any capture inside patt with a\nvalue, the substring that matched the capture is replaced by the capture\nvalue (which should be a string). The final captured value is the string\nresulting from all replacements. Ct lpeg.Ct(patt)\nCreates a table capture. This capture creates a table and puts all values\nfrom all anonymous captures made by patt inside this table in successive\ninteger keys, starting at 1. Moreover, for each named capture group created\nby patt, the first value of the group is put into the table with the group\nname as its key. The captured value is only the table. DEFAULT lexer.DEFAULT\nToken type for default tokens. -DEFAULT_DEPTH _M.textadept.snapopen.DEFAULT_DEPTH (number)\nMaximum directory depth to search. The default value is `4`. +DEFAULT_DEPTH _M.textadept.snapopen.DEFAULT_DEPTH (number)\nMaximum directory depth to search. The default value is `99`. DEFAULT_SESSION _M.textadept.session.DEFAULT_SESSION (string)\nThe path to the default session file. DOUBLE_CLICK events.DOUBLE_CLICK\nCalled when the mouse button is double-clicked.\nArguments:\n * `position`: The text position of the double click.\n * `line`: The line of the double click.\n * `modifiers`: The key modifiers held down. It is a combination of zero\n or more of `_SCINTILLA.constants.SCMOD_ALT`,\n `_SCINTILLA.constants.SCMOD_CTRL`,\n `_SCINTILLA.constants.SCMOD_SHIFT`, and\n `_SCINTILLA.constants.SCMOD_META`.\n Note: If you set `buffer.rectangular_selection_modifier` to\n `_SCINTILLA.constants.SCMOD_CTRL`, the Ctrl key is reported as *both*\n Ctrl and Alt due to a Scintilla limitation with GTK. DWELL_END events.DWELL_END\nCalled after a `DWELL_START` and the mouse is moved or other activity such\nas key press indicates the dwell is over.\nArguments:\n * `position`: The nearest position in the document to the position where\n the mouse pointer was lingering.\n * `x`: Where the pointer lingered.\n * `y`: Where the pointer lingered. @@ -82,6 +82,7 @@ INDIC_PLAIN _SCINTILLA.constants.INDIC_PLAIN\n0 INDIC_ROUNDBOX _SCINTILLA.constants.INDIC_ROUNDBOX\n7 INDIC_SQUIGGLE _SCINTILLA.constants.INDIC_SQUIGGLE\n1 INDIC_SQUIGGLELOW _SCINTILLA.constants.INDIC_SQUIGGLELOW\n11 +INDIC_SQUIGGLEPIXMAP _SCINTILLA.constants.INDIC_SQUIGGLEPIXMAP\n13 INDIC_STRAIGHTBOX _SCINTILLA.constants.INDIC_STRAIGHTBOX\n8 INDIC_STRIKE _SCINTILLA.constants.INDIC_STRIKE\n4 INDIC_TT _SCINTILLA.constants.INDIC_TT\n2 @@ -265,6 +266,7 @@ SCI_GETSCROLLWIDTH _SCINTILLA.constants.SCI_GETSCROLLWIDTH\n2275 SCI_GETSCROLLWIDTHTRACKING _SCINTILLA.constants.SCI_GETSCROLLWIDTHTRACKING\n2517 SCI_GETSEARCHFLAGS _SCINTILLA.constants.SCI_GETSEARCHFLAGS\n2199 SCI_GETSELALPHA _SCINTILLA.constants.SCI_GETSELALPHA\n2477 +SCI_GETSELECTIONEMPTY _SCINTILLA.constants.SCI_GETSELECTIONEMPTY\n2650 SCI_GETSELECTIONEND _SCINTILLA.constants.SCI_GETSELECTIONEND\n2145 SCI_GETSELECTIONMODE _SCINTILLA.constants.SCI_GETSELECTIONMODE\n2423 SCI_GETSELECTIONNANCHOR _SCINTILLA.constants.SCI_GETSELECTIONNANCHOR\n2579 @@ -330,6 +332,7 @@ SCI_MARKERSETBACKSELECTED _SCINTILLA.constants.SCI_MARKERSETBACKSELECTED\n2292 SCI_MARKERSETFORE _SCINTILLA.constants.SCI_MARKERSETFORE\n2041 SCI_OPTIONAL_START _SCINTILLA.constants.SCI_OPTIONAL_START\n3000 SCI_RGBAIMAGESETHEIGHT _SCINTILLA.constants.SCI_RGBAIMAGESETHEIGHT\n2625 +SCI_RGBAIMAGESETSCALE _SCINTILLA.constants.SCI_RGBAIMAGESETSCALE\n2651 SCI_RGBAIMAGESETWIDTH _SCINTILLA.constants.SCI_RGBAIMAGESETWIDTH\n2624 SCI_SELECTIONISRECTANGLE _SCINTILLA.constants.SCI_SELECTIONISRECTANGLE\n2372 SCI_SETADDITIONALCARETFORE _SCINTILLA.constants.SCI_SETADDITIONALCARETFORE\n2604 @@ -767,7 +770,6 @@ _print gui._print(buffer_type, ...)\nHelper function for printing messages to bu _select _M.textadept.snippets._select()\nPrompts the user to select a snippet to insert from a filtered list dialog.\nGlobal snippets and snippets in the current lexer are shown. abs math.abs(x)\nReturns the absolute value of `x`. acos math.acos(x)\nReturns the arc cosine of `x` (in radians). -add _M.textadept.bookmarks.add()\nAdds a bookmark to the current line. add_selection buffer.add_selection(buffer, caret, anchor)\nAdd a selection from anchor to caret as the main selection.\nRetainings all other selections as additional selections. Since there is\nalways at least one selection, to set a list of selections, the first\nselection should be added with `buffer:set_selection()` and later selections\nadded with this function.\n@param buffer The global buffer.\n@param caret The caret.\n@param anchor The anchor. add_text buffer.add_text(buffer, text)\nAdd text to the document at current position.\nThe current position is set at the end of the inserted text, but it is not\nscrolled into view.\n@param buffer The global buffer.\n@param text The text to add. add_trigger _M.textadept.adeptsense.add_trigger(sense, c, only_fields, only_functions)\nSets the trigger for autocompletion.\n@param sense The Adeptsense returned by `adeptsense.new()`.\n@param c The character(s) that triggers the autocompletion. You can have up\n to two characters.\n@param only_fields If `true`, this trigger only completes fields. The default\n value is `false`.\n@param only_functions If `true`, this trigger only completes functions.\n The default value is `false`.\n@usage sense:add_trigger('.')\n@usage sense:add_trigger(':', false, true) -- only functions\n@usage sense:add_trigger('->') @@ -786,7 +788,7 @@ always_show_globals _M.textadept.adeptsense.always_show_globals (bool)\nInclude anchor buffer.anchor (number)\nThe position of the opposite end of the selection to the caret. annotation_clear_all buffer.annotation_clear_all(buffer)\nClear the annotations from all lines.\n@param buffer The global buffer. annotation_lines buffer.annotation_lines (table, Read-only)\nTable of the number of annotation lines for lines starting from zero. -annotation_style buffer.annotation_style (table)\nTable of style numbers for annotations for lines starting at zero. +annotation_style buffer.annotation_style (table)\nTable of style numbers for annotations for lines starting at zero.\nOnly some style attributes are active in annotations: font,\nsize/size_fractional, bold/weight, italics, fore, back, and character_set. annotation_style_offset buffer.annotation_style_offset (number)\nThe start of the range of style numbers used for annotations.\nAnnotation styles may be completely separated from standard text styles by\nsetting a style offset. For example, setting this to `512` would allow the\nannotation styles to be numbered from `512` upto `767` so they do not\noverlap styles set by lexers (or margins if margins offset is `256`). Each\nstyle number set with `buffer.annotation_style` has the offset added before\nlooking up the style. annotation_text buffer.annotation_text (table)\nTable of annotation text for lines starting from zero. annotation_visible buffer.annotation_visible (number)\nThe visibility of annotations.\n\n* `_SCINTILLA.constants.ANNOTATION_HIDDEN` (0)\n Annotations are not displayed.\n* `_SCINTILLA.constants.ANNOTATION_STANDARD` (1)\n Annotations are drawn left justified with no adornment.\n* `_SCINTILLA.constants.ANNOTATION_BOXED` (2)\n Annotations are indented to match the text and are surrounded by a box. @@ -1083,6 +1085,8 @@ goto_line buffer.goto_line(buffer, line)\nSet caret to start of a line and ensur goto_next _M.textadept.bookmarks.goto_next()\nGoes to the next bookmark in the current buffer. goto_pos buffer.goto_pos(buffer, pos)\nSet caret to a position and ensure it is visible.\nThe anchor position is set the same as the current position.\n@param buffer The global buffer.\n@param pos The position. goto_prev _M.textadept.bookmarks.goto_prev()\nGoes to the previous bookmark in the current buffer. +goto_required _M.php.goto_required()\nDetermines the PHP file being 'require'd or 'include'd, and opens it in\nTextadept. +goto_required _M.ruby.goto_required()\nDetermine the Ruby file being 'require'd, and search through the RUBYPATH\nfor that file and open it in Textadept. goto_view gui.goto_view(n, relative)\nGoes to the specified view.\nGenerates `VIEW_BEFORE_SWITCH` and `VIEW_AFTER_SWITCH` events.\n@param n A relative or absolute view index.\n@param relative Flag indicating if n is a relative index or not. The default\n value is `false`. grab_focus buffer.grab_focus(buffer)\nSet the focus to this view.\n@param buffer The global buffer. graph lexer.graph\nMatches any graphical character (`!` to `~`). @@ -1119,7 +1123,7 @@ indentation_guides buffer.indentation_guides (number)\nIndentation guides appear indic_alpha buffer.indic_alpha (table)\nTable of alpha transparency values ranging from `0` (transparent) to `255`\n(opaque) or `256` (no alpha) for indicators from `0` to `31`.\nUsed for drawing the fill color of the `INDIC_ROUNDBOX` and\n`INDIC_STRAIGHTBOX` rectangle. indic_fore buffer.indic_fore (table)\nTable of foreground colors in `0xBBGGRR` format for indicators from `0` to\n`31`. indic_outline_alpha buffer.indic_outline_alpha (table)\nTable of alpha transparency values ranging from `0` (transparent) to `255`\n(opaque) or `256` (no alpha) for indicators from `0` to `31`.\nUsed for drawing the outline color of the `INDIC_ROUNDBOX` and\n`INDIC_STRAIGHTBOX` rectangle. -indic_style buffer.indic_style (table)\nTable of styles for indicators from `0` to `31`.\n\n* `_SCINTILLA.constants.INDIC_PLAIN` (0)\n Underlined with a single, straight line.\n* `_SCINTILLA.constants.INDIC_SQUIGGLE` (1)\n A squiggly underline. Requires 3 pixels of descender space.\n* `_SCINTILLA.constants.INDIC_TT` (2)\n A line of small T shapes.\n* `_SCINTILLA.constants.INDIC_DIAGONAL` (3)\n Diagonal hatching.\n* `_SCINTILLA.constants.INDIC_STRIKE` (4)\n Strike out.\n* `_SCINTILLA.constants.INDIC_HIDDEN` (5)\n An indicator with no visual effect.\n* `_SCINTILLA.constants.INDIC_BOX` (6)\n A rectangle around the text.\n* `_SCINTILLA.constants.INDIC_ROUNDBOX` (7)\n A rectangle with rounded corners around the text using translucent\n drawing with the interior usually more transparent than the border. Use\n `buffer.indic_alpha` and `buffer.indic_outline_alpha` to control the\n alpha transparency values. The default alpha values are `30` for fill\n color and `50` for outline color.\n* `_SCINTILLA.constants.INDIC_STRAIGHTBOX` (8)\n A rectangle around the text using translucent drawing with the interior\n usually more transparent than the border.\n You can use `buffer.indic_alpha` and `buffer.indic_outline_alpha` to\n control the alpha transparency values. The default alpha values are `30`\n for fill color and `50` for outline color.\n* `_SCINTILLA.constants.INDIC_DASH` (9)\n A dashed underline.\n* `_SCINTILLA.constants.INDIC_DOTS` (10)\n A dotted underline.\n* `_SCINTILLA.constants.INDIC_SQUIGGLELOW` (11)\n Similar to `INDIC_SQUIGGLE` but only using 2 vertical pixels so will fit\n under small fonts.\n* `_SCINTILLA.constants.INDIC_DOTBOX` (12)\n A dotted rectangle around the text using translucent drawing.\n Translucency alternates between the alpha and outline alpha settings with\n the top-left pixel using the alpha setting. `buffer.indic_alpha` and\n `buffer.indic_outline_alpha` control the alpha transparency values.\n The default values are `30` for alpha and `50` for outline alpha. To\n avoid excessive memory allocation the maximum width of a dotted box is\n 4000 pixels.\n* Use `_SCINTILLA.next_indic_number()` for custom indicators. +indic_style buffer.indic_style (table)\nTable of styles for indicators from `0` to `31`.\n\n* `_SCINTILLA.constants.INDIC_PLAIN` (0)\n Underlined with a single, straight line.\n* `_SCINTILLA.constants.INDIC_SQUIGGLE` (1)\n A squiggly underline. Requires 3 pixels of descender space.\n* `_SCINTILLA.constants.INDIC_TT` (2)\n A line of small T shapes.\n* `_SCINTILLA.constants.INDIC_DIAGONAL` (3)\n Diagonal hatching.\n* `_SCINTILLA.constants.INDIC_STRIKE` (4)\n Strike out.\n* `_SCINTILLA.constants.INDIC_HIDDEN` (5)\n An indicator with no visual effect.\n* `_SCINTILLA.constants.INDIC_BOX` (6)\n A rectangle around the text.\n* `_SCINTILLA.constants.INDIC_ROUNDBOX` (7)\n A rectangle with rounded corners around the text using translucent\n drawing with the interior usually more transparent than the border. Use\n `buffer.indic_alpha` and `buffer.indic_outline_alpha` to control the\n alpha transparency values. The default alpha values are `30` for fill\n color and `50` for outline color.\n* `_SCINTILLA.constants.INDIC_STRAIGHTBOX` (8)\n A rectangle around the text using translucent drawing with the interior\n usually more transparent than the border.\n You can use `buffer.indic_alpha` and `buffer.indic_outline_alpha` to\n control the alpha transparency values. The default alpha values are `30`\n for fill color and `50` for outline color.\n* `_SCINTILLA.constants.INDIC_DASH` (9)\n A dashed underline.\n* `_SCINTILLA.constants.INDIC_DOTS` (10)\n A dotted underline.\n* `_SCINTILLA.constants.INDIC_SQUIGGLELOW` (11)\n Similar to `INDIC_SQUIGGLE` but only using 2 vertical pixels so will fit\n under small fonts.\n* `_SCINTILLA.constants.INDIC_DOTBOX` (12)\n A dotted rectangle around the text using translucent drawing.\n Translucency alternates between the alpha and outline alpha settings with\n the top-left pixel using the alpha setting. `buffer.indic_alpha` and\n `buffer.indic_outline_alpha` control the alpha transparency values.\n The default values are `30` for alpha and `50` for outline alpha. To\n avoid excessive memory allocation the maximum width of a dotted box is\n 4000 pixels.\n* `_SCINTILLA.constants.INDIC_SQUIGGLEPIXMAP` (13)\n A version of `INDIC_SQUIGGLE` that draws using a pixmap instead of as a\n series of line segments for performance. Measured to be between 3 and 6\n times faster than `INDIC_SQUIGGLE` on GTK+. Apperance will not be as good\n as `INDIC_SQUIGGLE` on OSX in HiDPI mode.\n* Use `_SCINTILLA.next_indic_number()` for custom indicators. indic_under buffer.indic_under (table)\nTable of booleans for drawing under text or over (default) for indicators\nfrom `0` to `31`. indicator_all_on_for buffer.indicator_all_on_for(buffer, pos)\nRetrieve a bitmap value representing which indicators are non-zero at a\nposition.\nBit 0 is set if indicator 0 is present, bit 1 for indicator 1 and so on.\n@param buffer The global buffer.\n@param pos The position.\n@return number indicator_clear_range buffer.indicator_clear_range(buffer, pos, clear_length)\nTurn a indicator off over a range.\n@param buffer The global buffer.\n@param pos The start position.\n@param clear_length The length. @@ -1143,6 +1147,7 @@ join_lines _M.textadept.editing.join_lines()\nJoins the currently selected lines keys _G.keys (module)\nManages key commands in Textadept. keys _M.textadept.keys (module)\nDefines key commands for Textadept.\nThis set of key commands is pretty standard among other text editors.\nThis module, should be `require`d last, but before `_M.textadept.menu`. keys_unicode buffer.keys_unicode (bool)\nInterpret keyboard input as Unicode. +last_char_includes lexer.last_char_includes(s)\nCreates an LPeg pattern that matches any previous non-whitespace character\nin the given set.\n@param s String character set like one passed to `lpeg.S()`.\n@usage local regex = l.last_char_includes('+-*!%^&|=,([{') *\n l.delimited_range('/', '\\') layout_cache buffer.layout_cache (number)\nThe degree of caching of layout information.\n\n* `_SCINTILLA.constants.SC_CACHE_NONE` (0)\n No lines are cached.\n* `_SCINTILLA.constants.SC_CACHE_CARET` (1)\n The line containing the text caret.\n This is the default.\n* `_SCINTILLA.constants.SC_CACHE_PAGE` (2)\n Visible lines plus the line containing the caret.\n* `_SCINTILLA.constants.SC_CACHE_DOCUMENT` (3)\n All lines in the document. ldexp math.ldexp(m, e)\nReturns 'm2^e' (`e` should be an integer). len string.len(s)\nReceives a string and returns its length. The empty string `""` has\nlength 0. Embedded zeros are counted, so `"a\000bc\000"` has length 5. @@ -1219,7 +1224,7 @@ margin_mask_n buffer.margin_mask_n (table)\nTable of marker masks for margins fr margin_options buffer.margin_options (number)\nA bit mask of margin options.\n\n* `_SCINTILLA.constants.SC_MARGINOPTION_NONE` (0)\n None (default).\n* `_SCINTILLA.constants.SC_MARGINOPTION_SUBLINESELECT` (1)\n Controls how wrapped lines are selected when clicking on margin in front\n of them.\n If set, only sub line of wrapped line is selected, otherwise whole\n wrapped line is selected. margin_right buffer.margin_right (number)\nThe size in pixels of the right margin.\nThe default is to one pixel. margin_sensitive_n buffer.margin_sensitive_n (table)\nTable of mouse click sensitivity booleans for margins from zero to four.\nA click in a sensitive margin emits a `margin_click` event. By default, all\nmargins are insensitive. -margin_style buffer.margin_style (table)\nTable of style numbers for text margin lines starting from zero. +margin_style buffer.margin_style (table)\nTable of style numbers for text margin lines starting from zero.\nOnly some style attributes are active in text margins: font,\nsize/size_fractional, bold/weight, italics, fore, back, and character_set. margin_style_offset buffer.margin_style_offset (number)\nThe start of the range of style numbers used for margin text.\nMargin styles may be completely separated from standard text styles by\nsetting a style offset. For example, setting this to `256` would allow the\nmargin styles to be numbered from `256` upto `511` so they do not overlap\nstyles set by lexers. Each style number set with `buffer.margin_style` has\nthe offset added before looking up the style. margin_text buffer.margin_text (table)\nTable of text in the text margin for lines starting from zero. margin_text_clear_all buffer.margin_text_clear_all(buffer)\nClear the margin text on all lines.\n@param buffer The global buffer. @@ -1358,7 +1363,6 @@ register args.register(switch1, switch2, narg, f, description)\nRegisters a comm register_image buffer.register_image(buffer, type, xpm_data)\nRegister an XPM image for use in autocompletion lists.\n@param buffer The global buffer.\n@param type Integer type to register the image with.\n@param xpm_data XPM data as is described for `buffer:marker_define_pixmap()`. register_rgba_image buffer.register_rgba_image(buffer, type, pixels)\nRegister an RGBA image for use in autocompletion lists.\nIt has the width and height from `buffer.rgba_image_width` and\n`buffer.rgba_image_height`.\n@param buffer The global buffer.\n@param type Integer type to register the image with.\n@param pixels RGBA data as is described for\n `buffer:marker_define_rgba_image()`. reload buffer.reload(buffer)\nReloads the file in a given buffer.\n@param buffer The global buffer. -remove _M.textadept.bookmarks.remove()\nClears the bookmark at the current line. remove os.remove(filename)\nDeletes the file (or empty directory, on POSIX systems) with the given name.\nIf this function fails, it returns nil, plus a string describing the error\nand the error code. remove table.remove(list [, pos])\nRemoves from `list` the element at position `pos`, shifting down the elements\n`list[pos+1], list[pos+2], ···, list[#list]` and erasing element\n`list[#list]`. Returns the value of the removed element. The default value\nfor `pos` is `#list`, so that a call `table.remove(t)` removes the last\nelement of list `t`. rename os.rename(oldname, newname)\nRenames file or directory named `oldname` to `newname`. If this function\nfails, it returns nil, plus a string describing the error and the error code. @@ -1378,6 +1382,7 @@ reset _G.reset()\nResets the Lua state by reloading all init scripts.\nLanguage- resume coroutine.resume(co [, val1, ···])\nStarts or continues the execution of coroutine `co`. The first time\nyou resume a coroutine, it starts running its body. The values `val1`,\n... are passed as the arguments to the body function. If the coroutine\nhas yielded, `resume` restarts it; the values `val1`, ... are passed\nas the results from the yield.\n\nIf the coroutine runs without any errors, `resume` returns true plus any\nvalues passed to `yield` (if the coroutine yields) or any values returned\nby the body function (if the coroutine terminates). If there is any error,\n`resume` returns false plus the error message. reverse string.reverse(s)\nReturns a string that is the string `s` reversed. rgba_image_height buffer.rgba_image_height (number)\nThe height for future RGBA image data. +rgba_image_scale buffer.rgba_image_scale (number)\nThe scale factor in percent for future RGBA image data.\nThis is useful on OSX with a retina display where each display unit is 2\npixels: use a factor of 200 so that each image pixel is dsplayed using a\nscreen pixel. The default scale, 100, will stretch each image pixel to\ncover 4 screen pixels on a retina display. rgba_image_width buffer.rgba_image_width (number)\nThe width for future RGBA image data. rhtml _G.keys.rhtml (table)\nContainer for RHTML-specific key commands. rhtml _G.snippets.rhtml (table)\nContainer for RHTML-specific snippets. @@ -1423,6 +1428,7 @@ select_paragraph _M.textadept.editing.select_paragraph()\nSelects the current pa select_theme gui.select_theme()\nPrompts the user to select an editor theme from a filtered list. select_word _M.textadept.editing.select_word()\nSelects the current word under the caret. selection_duplicate buffer.selection_duplicate(buffer)\nDuplicate the selection.\nIf selection empty duplicate the line containing the caret.\n@param buffer The global buffer. +selection_empty buffer.selection_empty (bool, Read-only)\nIs every selected range empty? selection_end buffer.selection_end (number)\nThe position that ends the selection - this becomes the current position.\nThis does not make the caret visible. selection_is_rectangle buffer.selection_is_rectangle (bool, Read-only)\nIs the selection rectangular?\nThe alternative is the more common stream selection. selection_mode buffer.selection_mode (number)\nThe mode of the current selection.\n\n* `_SCINTILLA.constants.SC_SEL_STREAM` (0)\n Stream.\n* `_SCINTILLA.constants.SC_SEL_RECTANGLE` (1)\n Rectangle.\n* `_SCINTILLA.constants.SC_SEL_LINES` (2)\n Lines.\n* `_SCINTILLA.constants.SC_SEL_THIN` (3)\n Thin rectangular. @@ -1585,7 +1591,7 @@ timeout _G.timeout(interval, f, ...)\nCalls a given function after an interval o title gui.title (string, Write-only)\nThe title of the Textadept window. tmpfile io.tmpfile()\nReturns a handle for a temporary file. This file is opened in update\nmode and it is automatically removed when the program ends. tmpname os.tmpname()\nReturns a string with a file name that can be used for a temporary\nfile. The file must be explicitly opened before its use and explicitly\nremoved when no longer needed.\n\nOn POSIX systems, this function also creates a file with that name, to avoid\nsecurity risks. (Someone else might create the file with wrong permissions in\nthe time between getting the name and creating the file.) You still have to\nopen the file to use it and to remove it (even if you do not use it).\n\nWhen possible, you may prefer to use `io.tmpfile`, which automatically\nremoves the file when the program ends. -toggle _M.textadept.bookmarks.toggle()\nToggles a bookmark on the current line. +toggle _M.textadept.bookmarks.toggle(on)\nToggles a bookmark on the current line.\n@param on If `true`, adds a bookmark to the current line. If `false`, removes\n the bookmark on the current line. Otherwise, toggles a bookmark. toggle_block _M.ruby.toggle_block()\nToggles between { ... } and do ... end Ruby blocks.\nIf the caret is inside a { ... } single-line block, that block is converted\nto a multiple-line do .. end block. If the caret is on a line that contains\nsingle-line do ... end block, that block is converted to a single-line\n{ ... } block. If the caret is inside a multiple-line do ... end block, that\nblock is converted to a single-line { ... } block with all newlines replaced\nby a space. Indentation is important. The 'do' and 'end' keywords must be on\nlines with the same level of indentation to toggle correctly toggle_caret_sticky buffer.toggle_caret_sticky(buffer)\nSwitch between sticky and non-sticky: meant to be bound to a key.\nSee `buffer.caret_sticky`.\n@param buffer The global buffer. toggle_fold buffer.toggle_fold(buffer, line)\nSwitch a header line between expanded and contracted.\n@param buffer The global buffer.\n@param line The line number. @@ -1620,6 +1626,8 @@ use_tabs buffer.use_tabs (bool)\nWhether tabs will be used in indentation.\nThe user_list_show buffer.user_list_show(buffer, list_type, item_list)\nDisplay a list of strings and send notification when user chooses one.\n@param buffer The global buffer.\n@param list_type A list identifier number greater than zero.\n@param item_list List of words separated by separator characters (initially\n spaces).\n@see _SCINTILLA.next_user_list_type v_scroll_bar buffer.v_scroll_bar (bool)\nWhether the vertical scroll bar is visible.\nSet to `false` to never see it and `true` to enable it again. The default\nstate is to display it when required. vc_home buffer.vc_home(buffer)\nMove caret to before first visible character on line.\nIf already there move to first character on line.\n@param buffer The global buffer. +vc_home_display buffer.vc_home_display(buffer)\nMove caret to before first visible character on display line.\nIf already there move to first character on display line.\n@param buffer The global buffer. +vc_home_display_extend buffer.vc_home_display_extend(buffer)\nLike `buffer:vc_home_display()` but extending selection to new caret\nposition.\n@param buffer The global buffer. vc_home_extend buffer.vc_home_extend(buffer)\nLike `buffer:vc_home()` but extending selection to new caret position.\n@param buffer The global buffer. vc_home_rect_extend buffer.vc_home_rect_extend(buffer)\nMove caret to before first visible character on line.\nIf already there move to first character on line. In either case, extend\nrectangular selection to new caret position.\n@param buffer The global buffer. vc_home_wrap buffer.vc_home_wrap(buffer)\nMove caret to before first visible character on display line when word-wrap\nis enabled.\nIf already there, go to first character on display line.\n@param buffer The global buffer. -- cgit v1.2.3