aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/ui.lua
Commit message (Collapse)AuthorAge
* Use icon names from the Free Desktop Icon Naming Specification.Gravatar mitchell2022-02-27
| | | | Requires latest gtDialog.
* Improve Windows network directory path handling.Gravatar mitchell2022-02-26
|
* Fixed potential crash caused by r3219.Gravatar mitchell2022-02-24
| | | | Ensure the view exists.
* Fixed bug in `ui.goto_file()` when specifying preferred view.Gravatar mitchell2022-02-23
|
* Updated copyright year.Gravatar mitchell2022-01-31
|
* Fixed incorrect bitwise operation.Gravatar mitchell2021-06-12
| | | | This consolidates changes from r3135 and r3149 and fixes an additional restore selection case.
* Do not attempt to restore the selection when typing after selecting/deleting ↵Gravatar mitchell2021-06-08
| | | | | | all text. This extends r3135 to also handle auto-paired characters.
* Do not attempt to restore the selection when typing after selecting/deleting ↵Gravatar mitchell2021-05-29
| | | | | | all text. Otherwise each typed character overwrites the previously typed character.
* Replaced `events.FILE_{BEFORE,AFTER}_RELOAD` with ↵Gravatar mitchell2021-04-30
| | | | | | | `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.)
* Addressed some minor Luacheck issues.Gravatar mitchell2021-04-14
| | | | Not all shadowing warnings need to be fixed.
* Initial pass reformatting all code.Gravatar mitchell2021-04-11
| | | | Use clang-format, LuaFormatter, and 100 character limit on lines.
* Added `ui.SHOW_ALL_TABS` option for `ui.tabs`.Gravatar mitchell2021-02-09
| | | | | | 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.
* Updated copyright information.Gravatar mitchell2021-01-29
|
* Fixed bug restoring view state in an intermediate buffer after closing one.Gravatar mitchell2021-01-24
|
* Code cleanup.Gravatar mitchell2020-10-20
| | | | | | | | | | | | | | | | 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.
* Increase the width of dialogs that hold filenames in the terminal version.Gravatar mitchell2020-10-05
| | | | Long filenames are clipped.
* Updated copyright information.Gravatar mitchell2020-09-29
|
* Added `events.FILE_{BEFORE,AFTER}_RELOAD` and save/restore bookmarks.Gravatar mitchell2020-09-19
| | | | Also moved buffer state save/restore into ui module.
* Added `ui.update()` for unit tests.Gravatar mitchell2020-09-19
|
* Updated LuaDoc to avoid writing '{{'.Gravatar mitchell2020-09-13
| | | | This confuses Jekyll's Liquid tag processing.
* Lots of documentation updates.Gravatar mitchell2020-09-13
| | | | | | | | | | 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.
* Added `ui.find.active` and prevent word highlighting when searching.Gravatar mitchell2020-09-07
| | | | Word auto-highlighting when searching is too distracting.
* Fixed some issues with r2916 discovered when running tests.Gravatar mitchell2020-08-22
|
* Improve handling of print buffers and splits.Gravatar mitchell2020-08-22
| | | | | Always split a single view if `ui.tabs` is `false` and prefer another split view if switching to an existing print buffer.
* Do not remove initial 'Untitled' buffer during `ui._print()`.Gravatar mitchell2020-08-22
| | | | I am not sure why this has been the case.
* Removed "View EOL" buffer setting.Gravatar mitchell2020-08-10
|
* Try to avoid using `lexer` as a string, as it overshadows the `lexer` module.Gravatar mitchell2020-08-04
|
* Moved word highlighting back into editing module and disable by default.Gravatar mitchell2020-07-25
| | | | Also fixed `HIGHLIGHT_SELECTED` behavior with non-word selections.
* Make `ui.highlight_words` a multi-option setting.Gravatar mitchell2020-07-19
| | | | Highlighting the current word could be useful instead of just the selected word.
* Minor LuaDoc updates and spelling corrections.Gravatar mitchell2020-07-16
|
* Limit word highlighting to single words.Gravatar mitchell2020-07-13
|
* Auto-highlight all occurrences of selected words and find results.Gravatar mitchell2020-07-13
| | | | | This supercedes `textadept.editing.highlight_word()`, which has been removed. Changed the color of word highlights in themes.
* Renamed `ui.bufstatusbar_text` to `ui.buffer_statusbar_text`.Gravatar mitchell2020-06-28
|
* Allow views to be used as buffers and update API.Gravatar mitchell2020-05-25
| | | | | | | 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.
* Only print post-initialization errors to buffers.Gravatar mitchell2020-04-05
| | | | | This avoids infinite loops. Pre-initialization errors are already shown in textbox dialogs.
* Fixed stale statusbar issues introduced recently.Gravatar mitchell2020-03-30
|
* Switched to 1-based indices for buffer positions, lines, and countable entities.Gravatar mitchell2020-03-26
|
* Use the statusbar to indicate an active snippet.Gravatar mitchell2020-03-22
| | | | | This helps avoid disorienting jumps when the user is not aware a snippet is still active.
* Added `ui.dialogs.progressbar()` and utilize it with Find in Files.Gravatar mitchell2020-03-18
|
* Use a default width for `ui.dialogs.filteredlist` dialogs.Gravatar mitchell2020-03-16
| | | | | 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.
* Detect and allow jumping to internal Lua errors.Gravatar mitchell2020-03-16
|
* More code cleanup, refactoring, and formatting.Gravatar mitchell2020-03-11
|
* Core code cleanup, reformat, refactoring, and bugfixes.Gravatar mitchell2020-03-10
| | | | | `events.FILE_CHANGED` was not emitting a filename. Added tests for key commands, keychains, and key modes.
* Added test suite and API type checking for more helpful error messages.Gravatar mitchell2020-03-03
|
* Autopair, typeover, and backspace delete match works with multiple selection.Gravatar mitchell2020-02-28
|
* Fixed bugs in return values for standard_dropdown and msgbox dialogs.Gravatar mitchell2020-02-26
| | | | | standard_dropdown was not returning the right value and msgboxes could not return string output.
* Removed '_' mnemonics from locale keys.Gravatar mitchell2020-02-21
| | | | Kept backward-compatibility for now.
* Tweaked localization keys.Gravatar mitchell2020-02-21
| | | | | This is in anticipate of removing '_' from keys, which would have created duplicate keys.
* Update the buffer z-order list when switching between views too.Gravatar mitchell2020-02-07
| | | | | This fixes the case where switching between views can prevent switching to the previous view's buffer, which may be desirable.
* Updated copyright year.Gravatar mitchell2019-12-31
|