aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/snippets.lua
AgeCommit message (Collapse)Author
2021-02-11Added support for TypeScript.mitchell
Requires latest Scintillua.
2021-01-29Updated copyright information.mitchell
2021-01-12Added Xs support.mitchell
Requires latest Scintillua.
2021-01-12Added systemd support.mitchell
Requires latest Scintillua.
2021-01-12Added Spin support.mitchell
Requires latest Scintillua.
2021-01-12Added RouterOS support.mitchell
Requires latest Scintillua.
2021-01-12Added fstab support.mitchell
Requires latest Scintillua.
2021-01-12Added systemd-networkd support.mitchell
Requires latest Scintillua.
2021-01-12Added Zig support.mitchell
Requires latest Scintillua.
2021-01-11Added Reason support.mitchell
Requires latest Scintillua.
2021-01-11Added Pony support.mitchell
Requires latest Scintillua.
2021-01-11Added Meson support.mitchell
Requires latest Scintillua.
2021-01-11Added Julia support.mitchell
Requires latest Scintillua.
2021-01-11Added Fantom support.mitchell
Requires latest Scintillua.
2021-01-11Added Elm support.mitchell
Requires latest Scintillua.
2021-01-11Added Clojure support.mitchell
Requires latest Scintillua.
2020-11-10Fill `keys` and `snippet` tables with language-specific tables on init.mitchell
This allows users and language modules to easily add bindings and snippets without stepping on each other.
2020-10-20Code cleanup.mitchell
Of note: * io.save_all_files() does not visit each buffer to save anymore. An unintended side-effect was checking for outside modification (but only if the file itself was modified), so outside changes will always be saved over now. * The menu clicked handler uses assert_type(), so the 'Unknown command' localization is no longer needed. * When printing to a new buffer type would split the view, use an existing split view when possible. * Prefer 'goto continue' construct in loops over nested 'if's. * Fixed clearing of ui.find.replace_entry_text on reset in the GUI version. * Fixed lack of statusbar updating when setting options like buffer EOL mode, indentation, and encoding. * Renamed internal new_snippet() to new() and put it in the snippet metatable.
2020-09-29Updated copyright information.mitchell
2020-09-14More small documentation updates.mitchell
2020-09-13Lots of documentation updates.mitchell
Updated header id generation, anchors, links, and header levels. Added dedicated book page and support data. Removed extra module autocompletion and documentation from Lua module. Removed GPG signing and verification, as everything is built and distributed on GitHub. Removed all release links prior to 10.8 since there is no point in uploading the relevant files to GitHub.
2020-08-10Updated LuaDoc.mitchell
2020-08-04Try to avoid using `lexer` as a string, as it overshadows the `lexer` module.mitchell
2020-08-04Set `buffer.auto_c_order` prior to `buffer:auto_c_show()`.mitchell
This is good practice.
2020-05-25Allow views to be used as buffers and update API.mitchell
This allows for a superficial separation of buffer- and view-specific Scintilla functionality. buffers and views can now be used interchangeably for the most part, and the APIs are guidance, not hard requirements. User scripts do not require any modification and will continue to function normally.
2020-03-26Switched to 1-based indices for buffer positions, lines, and countable entities.mitchell
2020-03-22Use the statusbar to indicate an active snippet.mitchell
This helps avoid disorienting jumps when the user is not aware a snippet is still active.
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