aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/snippets.lua
AgeCommit message (Collapse)Author
2020-03-16Use a default width for `ui.dialogs.filteredlist` dialogs.mitchell
Experience has shown a vast majority of filteredlist dialogs need to be wide. Use a standard width that needs to be overridden rather than remembered.
2020-03-14More code cleanup, refactoring, and reformatting.mitchell
2020-03-03Added test suite and API type checking for more helpful error messages.mitchell
2020-02-22Separated `_G.snippets` from `textadept.snippets`.mitchell
Removed leading '_' from snippet methods, but kept compatibility for now.
2020-02-19Updated LuaDoc.mitchell
2020-02-18Added snippet trigger word completion.mitchell
Also refactored snippet lookup, added options to Lua and C modules to include snippet triggers in autocompletion lists, swapped snippet keybindings, and fixed a bug recognizing lexer-specific snippet files as global.
2020-02-18Fixed bug when snippet end placeholder is lost.mitchell
The first character in the snippet was being deleted. An example of the end placeholder being lost is when it and the caret are at the end of the line and Enter is pressed -- the autoindent feature appears to delete it. This fix assumes a snippet of at least length 1 was inserted.
2019-12-31Updated copyright year.mitchell
2019-02-16Updated copyright year.mitchell
2018-11-12Handle potential mismatch between snippet in buffer and snippet in memory.mitchell
Snippet prev/next coupled with subsequent edits may cause the buffer to contain an unexpected snippet placeholder. Handle it gracefully.
2018-07-28Removed optional '*' prefix in I/O reads.mitchell
Lua 5.3 made them optional and LuaJIT support has been dropped.
2018-04-25Removed LuaJIT version of Textadept.mitchell
Also updated to Lua 5.3 syntax where held back by LuaJIT's 5.1/5.2 syntax.
2018-01-25Updated copyright year.mitchell
2017-05-26Changed "Cancel Snippet" keybinding to `Esc`.mitchell
2017-05-26Fixed bug that deleted characters outside of mangled snippets.mitchell
2017-04-18Fixed some instances of snippet insertion with selected text.mitchell
Ensure snippet start position is as far back as possible.
2016-12-31Updated copyright information.mitchell
2016-06-27Show file-based snippets in the selection dialog; modules/textadept/snippets.luamitchell
2016-06-27Added `textadept.snippets._paths` for file-based snippets.mitchell
Thanks to Michael Richter for the idea.
2016-06-15Lots of small LuaDoc improvements (grammar mainly).mitchell
2016-04-16Small code cleanup.mitchell
2016-04-11Fixed regression for `%<...>` and `%[...]`; modules/textadept/snippets.luamitchell
It is currently not possible to escape `<` and `[` immediately after a `%n` mirror.
2016-04-07Only show snippet trigger and text in selection dialog.mitchell
2016-04-02Code cleanup.mitchell
Do not use `ipairs()` and use more consistent variable names among other things.
2016-01-19Fixed bug in escaping '([{<' after mirrors; modules/textadept/snippets.luamitchell
2015-12-31Updated copyright date.mitchell
2015-12-29Fixed bug in restoring state after cancel; modules/textadept/snippets.luamitchell
2015-12-23Attempted fix for edge-case state inconsistency in snippets.mitchell
2015-11-12Fixed '%' escape sequences in snippets; modules/textadept/snippets.luamitchell
2015-10-28Ensure placeholders are eventually cleared; modules/textadept/snippets.luamitchell
2015-10-27Fixed simple placeholders in default text; modules/textadept/snippets.luamitchell
2015-10-22Do not call snippet functions by mistake; modules/textadept/snippets.luamitchell
2015-10-22Snippets can now be functions that return text; modules/textadept/snippets.luamitchell
Also fixed a small bug and documentation.
2015-10-20Tabbing through a choice should autocomplete it; modules/textadept/snippets.luamitchell
2015-10-20Added snippet choice placeholders; modules/textadept/snippets.luamitchell
2015-10-12Do not interpret `%n</...>` as transforms; modules/textadept/snippets.luamitchell
They are often seen in XML snippets and escaping would be tedious.
2015-10-07Fixed potential bug in UPDATE_UI handler; modules/textadept/snippets.luamitchell
It's possible for the `updated` parameter to be `nil`; handle it.
2015-10-07Fixed '%' escape sequences in snippets; modules/textadept/snippets.luamitchell
2015-09-18Refactored snippets to use indicators instead of ugly placeholder text.mitchell
2015-03-16Code cleanup based on the output of luacheck, a Lua linter.mitchell
2015-03-12Lua code cleanup.mitchell
2015-03-11Updated to Lua 5.3, LPeg 0.12.2, and lfs 1.6.3.mitchell
LuaJIT uses Lua 5.3's new utf8 library. Restored documentation for Lua 5.1 symbols and added deprecation notes.
2015-03-09Updated to Scintilla 3.5.4.mitchell
2015-01-29Fixed snippets bug when name matches lexer name; modules/textadept/snippets.luamitchell
Ensure the result of snippets[name] is not a table.
2014-12-31Updated copyright year.mitchell
2014-09-16Updated some LuaDoc.mitchell
2014-06-30Condensed manual and API documentation into single files.mitchell
2014-06-12Lua code cleanup.mitchell
2014-01-12Updated copyright information.mitchell
2013-12-12More LuaDoc updates.mitchell