aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/menu.lua
AgeCommit message (Collapse)Author
2022-01-31Updated copyright year.mitchell
2021-04-14Addressed some minor Luacheck issues.mitchell
Not all shadowing warnings need to be fixed.
2021-04-11Initial pass reformatting all code.mitchell
Use clang-format, LuaFormatter, and 100 character limit on lines.
2021-01-29Updated copyright information.mitchell
2021-01-22Added `textadept.run.test()` and `textadept.run.test_commands`.mitchell
This enables the running of project tests.
2020-12-19Ensure a bare `ui.find.focus()` call resets incremental and in files options.mitchell
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-10-17Fixed "Enclose as XML Tags" with multiple selections.mitchell
2020-10-17Added `textadept.run.set_arguments()`.mitchell
This replaces custom code in *modules/textadept/menu.lua*.
2020-10-08Added `textadept.history` module for recording and navigating position history.mitchell
2020-09-29Updated copyright information.mitchell
2020-09-04Renamed doc/ to docs/ and removed bombay dependency.mitchell
Added some documentation infrastructure for eventual migration to a new build service. Use a simple Lua script for generating documentation offline.
2020-08-23Added "Edit > Preferences" menu item and key binding for opening user init.lua.mitchell
Also changed the mnemonic for "Edit > Filter Through" in the process.
2020-08-21Code cleanup.mitchell
2020-08-17Fixed fold toggling when on lines that are headers.mitchell
2020-08-10"View > Toggle Fold" toggles folding for the current block, regardless of line.mitchell
Previously, you had to be on a line that was a fold point.
2020-08-08Removed "View EOL" menu item and key binding.mitchell
It does not seem necessary anymore.
2020-07-26Removed "Refresh syntax highlighting" feature.mitchell
This is a legacy feature for when multi-language lexers did not backtrack to keep track of what the current language is.
2020-07-25Find & Replace Pane now allows file filters to be specified for Find in Files.mitchell
Also updated `ui.find.focus()` to accept an optional table of options (e.g. in_files, incremental, etc.) for convenience.
2020-07-25Moved incremental find into Find & Replace Pane.mitchell
Added new `events.FIND_TEXT_CHANGED` to help facilitate this. "Whole word" and "Regex" are now supported in addition to "Match case". Also updated tests.
2020-07-14Renamed `textadept.editing.block_comment()` to `toggle_comment()`.mitchell
2020-07-13Auto-highlight all occurrences of selected words and find results.mitchell
This supercedes `textadept.editing.highlight_word()`, which has been removed. Changed the color of word highlights in themes.
2020-07-12Made `ui.find.goto_file_found()` and `textadept.run.goto_error()` args optional.mitchell
2020-07-12Be more consistent with "key sequences", "key commands", and "key bindings".mitchell
Sequences are key strings, commands are Lua functions, and bindings are commands assigned to sequences.
2020-06-28Changed keybinding modifier keys.mitchell
They had always been a bit counter-intuitive.
2020-06-10Renamed some buffer/view fields to use American English instead of Australian.mitchell
This requires theme updates, primarily due to colour -> color.
2020-06-09Prefer `view.call_tip_*` instead of `buffer.call_tip_*`.mitchell
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-16Moved individual buffer functions in `io` into `buffer`.mitchell
e.g. `io.reload_buffer()` was renamed `buffer:reload()`.
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-13More code cleanup, refactoring, and reformatting.mitchell
2020-03-11Replaced `buffer.style_name` table with `buffer:name_of_style()`.mitchell
This requires Scintilla changeset 429993cf4429.
2020-03-03Added tests for some complex menu functions.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-21Removed '_' mnemonics from locale keys.mitchell
Kept backward-compatibility for now.
2020-02-21Tweaked localization keys.mitchell
This is in anticipate of removing '_' from keys, which would have created duplicate keys.
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.
2019-12-31Updated copyright year.mitchell
2019-09-23Replaced `textadept.macros.*_recording()` with `textadept.macros.record()`.mitchell
Also updated keybindings.
2019-09-22Replaced `ui.command_entry.*_mode()` with simplified `ui.command_entry.run()`.mitchell
The command entry no longer uses named key modes. Instead, mode keys are supplied to `run()` if necessary. The command entry remains modal, though.
2019-09-21Added back "Paste Reindent", but as a separate menu/key/command from "Paste".mitchell
2019-09-17Fixed scroll issues when toggling line wrap.mitchell
The current line should always remain visible.
2019-07-30Use CP1252 instead of ISO-8859-1.mitchell
CP1252 is a superset of ISO-8859-1.
2019-06-01GTK+ was renamed to GTK recently.mitchell
2019-02-16Updated copyright year.mitchell
2018-10-23Make find and menu command selection more macro-friendly.mitchell
2018-10-22Added module for recording, playing, saving, and loading keyboard macros.mitchell