aboutsummaryrefslogtreecommitdiff
path: root/core/ui.lua
AgeCommit message (Collapse)Author
2021-05-29Do not attempt to restore the selection when typing after selecting/deleting ↵mitchell
all text. Otherwise each typed character overwrites the previously typed character.
2021-04-30Replaced `events.FILE_{BEFORE,AFTER}_RELOAD` with ↵mitchell
`events.BUFFER_{BEFORE,AFTER}_REPLACE_TEXT`. This allows more features to save/restore state when buffer contents are replaced (e.g. file reload, filter through, etc.)
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-02-09Added `ui.SHOW_ALL_TABS` option for `ui.tabs`.mitchell
Textadept hides the first tab by default since its information is duplicated in the titlebar and screen space is wasted. However, some users choose to hide titlebars (e.g. on window maximize/fullscreen), so this option now exists.
2021-01-29Updated copyright information.mitchell
2021-01-24Fixed bug restoring view state in an intermediate buffer after closing one.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-05Increase the width of dialogs that hold filenames in the terminal version.mitchell
Long filenames are clipped.
2020-09-29Updated copyright information.mitchell
2020-09-19Added `events.FILE_{BEFORE,AFTER}_RELOAD` and save/restore bookmarks.mitchell
Also moved buffer state save/restore into ui module.
2020-09-19Added `ui.update()` for unit tests.mitchell
2020-09-13Updated LuaDoc to avoid writing '{{'.mitchell
This confuses Jekyll's Liquid tag processing.
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-09-07Added `ui.find.active` and prevent word highlighting when searching.mitchell
Word auto-highlighting when searching is too distracting.
2020-08-22Fixed some issues with r2916 discovered when running tests.mitchell
2020-08-22Improve handling of print buffers and splits.mitchell
Always split a single view if `ui.tabs` is `false` and prefer another split view if switching to an existing print buffer.
2020-08-22Do not remove initial 'Untitled' buffer during `ui._print()`.mitchell
I am not sure why this has been the case.
2020-08-10Removed "View EOL" buffer setting.mitchell
2020-08-04Try to avoid using `lexer` as a string, as it overshadows the `lexer` module.mitchell
2020-07-25Moved word highlighting back into editing module and disable by default.mitchell
Also fixed `HIGHLIGHT_SELECTED` behavior with non-word selections.
2020-07-19Make `ui.highlight_words` a multi-option setting.mitchell
Highlighting the current word could be useful instead of just the selected word.
2020-07-16Minor LuaDoc updates and spelling corrections.mitchell
2020-07-13Limit word highlighting to single words.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-06-28Renamed `ui.bufstatusbar_text` to `ui.buffer_statusbar_text`.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-04-05Only print post-initialization errors to buffers.mitchell
This avoids infinite loops. Pre-initialization errors are already shown in textbox dialogs.
2020-03-30Fixed stale statusbar issues introduced recently.mitchell
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-18Added `ui.dialogs.progressbar()` and utilize it with Find in Files.mitchell
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-16Detect and allow jumping to internal Lua errors.mitchell
2020-03-11More code cleanup, refactoring, and formatting.mitchell
2020-03-10Core code cleanup, reformat, refactoring, and bugfixes.mitchell
`events.FILE_CHANGED` was not emitting a filename. Added tests for key commands, keychains, and key modes.
2020-03-03Added test suite and API type checking for more helpful error messages.mitchell
2020-02-28Autopair, typeover, and backspace delete match works with multiple selection.mitchell
2020-02-26Fixed bugs in return values for standard_dropdown and msgbox dialogs.mitchell
standard_dropdown was not returning the right value and msgboxes could not return string output.
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-07Update the buffer z-order list when switching between views too.mitchell
This fixes the case where switching between views can prevent switching to the previous view's buffer, which may be desirable.
2019-12-31Updated copyright year.mitchell
2019-11-13Make new arguments to `events.TAB_CLICKED` backwards-compatible.mitchell
2019-11-07Changed `events.TAB_CLICKED` to emit button clicked as well as modifier keys.mitchell
This allows users to close buffers on middle-click for example.
2019-09-25Fixed opening of non-UTF-8-encoded filenames dropped into a view.mitchell
2019-09-20Do not restore rectangular selection mode on buffer switch.mitchell
If the mode was not originally enabled, this just causes confusion.
2019-09-20Restore rectangular selection state when switching between buffers.mitchell
2019-09-19Restore virtual space state when switching between buffers.mitchell
2019-09-19Fixed bug introduced in r2623.mitchell