aboutsummaryrefslogtreecommitdiff
path: root/core/file_io.lua
AgeCommit message (Collapse)Author
2020-12-15Do not prompt for file reload during `io.close_all_buffers()`.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-08Small LuaDoc update.mitchell
2020-10-06Only change EOL mode if an EOL is actually detected.mitchell
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-27Fixed `io.quick_open()` not doing anything when file limit was exceeded.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-14More small documentation updates.mitchell
2020-08-17Updated some documentation and use macOS instead of Mac OSX.mitchell
2020-07-26Small LuaDoc update.mitchell
2020-07-23Updated LuaDoc.mitchell
2020-07-16Minor LuaDoc updates and spelling corrections.mitchell
2020-06-10Replaced `lfs.dir_foreach()` with `lfs.walk()` generator.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-16Updated LuaDoc.mitchell
2020-03-26Added support to identify projects under Fossil SCM.mitchell
2020-03-26Switched to 1-based indices for buffer positions, lines, and countable entities.mitchell
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 and refactoring.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-26Small code cleanup.mitchell
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.
2019-12-31Updated copyright year.mitchell
2019-07-30Use CP1252 instead of ISO-8859-1.mitchell
CP1252 is a superset of ISO-8859-1.
2019-06-02Fixed bug with filters that have extension includes and pattern excludes.mitchell
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.
2019-02-16Updated copyright year.mitchell
2019-01-31Do not limit version control markers to directories.mitchell
At least git allows files named '.git'.
2018-12-17Ensure long filenames are visible in the reload dialog prompt on curses.mitchell
2018-11-26Changed filter format to be more flat and intuitive.mitchell
Filters are now simply lists of inclusive and exclusive patterns. Added temporary compatibility and notice for old-style filters.
2018-07-28Removed optional '*' prefix in I/O reads.mitchell
Lua 5.3 made them optional and LuaJIT support has been dropped.
2018-02-16Added UTF-16 to the default list of detected encodings.mitchell
2018-01-25Updated copyright year.mitchell
2017-08-20Added optional encoding parameter to `io.open_file()`.mitchell
Sometimes encoding auto-detection via `io.encodings` is more trouble than it's worth.
2017-06-23Small code cleanup.mitchell
2016-12-31Updated copyright information.mitchell
2016-11-04Removed MacRoman encoding option, as OSX uses UTF-8 by default.mitchell
2016-10-19Allow detection of encodings with NUL bytes like UTF-16; core/file_io.luamitchell
2016-06-27Small code cleanup and documentation updates.mitchell
2016-06-16Changed arguments to `ui.goto_view()` and `view:goto_buffer()`.mitchell
They can accept either objects or relative numbers now. They do not accept absolute indices anymore.
2016-06-15Lots of small LuaDoc improvements (grammar mainly).mitchell
2016-06-15Allow binary files to be encoded in something else.mitchell
UTF-16 files (and other encodings with null bytes) are initially recognized as binary files (no encoding). Allow encodings to be set for such files after load.
2016-06-15Changed some of 'lfs_ext' API.mitchell
Renamed `lfs.FILTER` to `lfs.default_filter` and removed `exclude_FILTER` argument from `lfs.dir_foreach()`.
2016-06-15Removed `exclude_FILTER` parameter from `io.quick_open()`.mitchell
It was unnecessarily complicating things. Just construct the proper filter.
2016-06-15Removed CVS project recognition and assume Subversion v1.8+.mitchell
2016-06-15Removed explicit detection and use of extinct CR line endings.mitchell
It's quite possible some of Textadept's functions didn't handle them properly anyway.