aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/file_io.lua
Commit message (Collapse)AuthorAge
* Initial pass reformatting all code.Gravatar mitchell2021-04-11
| | | | Use clang-format, LuaFormatter, and 100 character limit on lines.
* Updated copyright information.Gravatar mitchell2021-01-29
|
* `io.get_project_root()` accepts an optional flag for returning a submodule root.Gravatar mitchell2021-01-22
| | | | | This is for systems like git that have '.git' files (not directories) for submodules under a parent '.git' directory.
* Fixed `buffer:reload()` only reloading up to a NUL byte, if present.Gravatar mitchell2020-12-22
|
* Do not show deleted files in recent file list.Gravatar mitchell2020-12-15
|
* Do not prompt for file reload during `io.close_all_buffers()`.Gravatar mitchell2020-12-15
|
* 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.
* Small LuaDoc update.Gravatar mitchell2020-10-08
|
* Only change EOL mode if an EOL is actually detected.Gravatar mitchell2020-10-06
|
* 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
|
* Fixed `io.quick_open()` not doing anything when file limit was exceeded.Gravatar mitchell2020-09-27
|
* Added `events.FILE_{BEFORE,AFTER}_RELOAD` and save/restore bookmarks.Gravatar mitchell2020-09-19
| | | | Also moved buffer state save/restore into ui module.
* More small documentation updates.Gravatar mitchell2020-09-14
|
* Updated some documentation and use macOS instead of Mac OSX.Gravatar mitchell2020-08-17
|
* Small LuaDoc update.Gravatar mitchell2020-07-26
|
* Updated LuaDoc.Gravatar mitchell2020-07-23
|
* Minor LuaDoc updates and spelling corrections.Gravatar mitchell2020-07-16
|
* Replaced `lfs.dir_foreach()` with `lfs.walk()` generator.Gravatar mitchell2020-06-10
|
* 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.
* Updated LuaDoc.Gravatar mitchell2020-04-16
|
* Added support to identify projects under Fossil SCM.Gravatar mitchell2020-03-26
|
* Switched to 1-based indices for buffer positions, lines, and countable entities.Gravatar mitchell2020-03-26
|
* Moved individual buffer functions in `io` into `buffer`.Gravatar mitchell2020-03-16
| | | | e.g. `io.reload_buffer()` was renamed `buffer:reload()`.
* 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.
* More code cleanup and refactoring.Gravatar mitchell2020-03-13
|
* 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
|
* Small code cleanup.Gravatar mitchell2020-02-26
|
* 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.
* Updated copyright year.Gravatar mitchell2019-12-31
|
* Use CP1252 instead of ISO-8859-1.Gravatar mitchell2019-07-30
| | | | CP1252 is a superset of ISO-8859-1.
* Fixed bug with filters that have extension includes and pattern excludes.Gravatar mitchell2019-06-02
| | | | | | This was particularly problematic when attempting to fetch all files with a given extension, but not in a particular directory. Also updated some relevant LuaDoc and removed temporary compatibility warnings.
* Updated copyright year.Gravatar mitchell2019-02-16
|
* Do not limit version control markers to directories.Gravatar mitchell2019-01-31
| | | | At least git allows files named '.git'.
* Ensure long filenames are visible in the reload dialog prompt on curses.Gravatar mitchell2018-12-17
|
* Changed filter format to be more flat and intuitive.Gravatar mitchell2018-11-26
| | | | | Filters are now simply lists of inclusive and exclusive patterns. Added temporary compatibility and notice for old-style filters.
* Removed optional '*' prefix in I/O reads.Gravatar mitchell2018-07-28
| | | | Lua 5.3 made them optional and LuaJIT support has been dropped.
* Added UTF-16 to the default list of detected encodings.Gravatar mitchell2018-02-16
|
* Updated copyright year.Gravatar mitchell2018-01-25
|
* Added optional encoding parameter to `io.open_file()`.Gravatar mitchell2017-08-20
| | | | | Sometimes encoding auto-detection via `io.encodings` is more trouble than it's worth.
* Small code cleanup.Gravatar mitchell2017-06-23
|
* Updated copyright information.Gravatar mitchell2016-12-31
|
* Removed MacRoman encoding option, as OSX uses UTF-8 by default.Gravatar mitchell2016-11-04
|
* Allow detection of encodings with NUL bytes like UTF-16; core/file_io.luaGravatar mitchell2016-10-19
|
* Small code cleanup and documentation updates.Gravatar mitchell2016-06-27
|
* Changed arguments to `ui.goto_view()` and `view:goto_buffer()`.Gravatar mitchell2016-06-16
| | | | | They can accept either objects or relative numbers now. They do not accept absolute indices anymore.
* Lots of small LuaDoc improvements (grammar mainly).Gravatar mitchell2016-06-15
|