CotEditor 7.2.0
release:
New Features
- Support editing remote files with
rmateover SSH port forwarding, enabled in Integration settings. - Automatically save a copy of settings to iCloud for manual import on other Macs, configurable in General settings.
- Support customizing keyboard shortcuts for text editing commands, such as moving the insertion point and deleting text, in Shortcuts settings.
- Add the Hungarian localization (thanks to Torma Zsolt!).
Improvements
- Move the Donation settings pane to a separate window accessible from the CotEditor menu.
- Add the Integration settings pane for managing integration with external tools.
- Move settings import and export from the File menu to the General settings pane.
- Redesign the Shortcuts settings pane.
- Allow restoring the default shortcuts for individual commands in the Shortcuts settings pane using the context menu or the Delete key.
- Support undo in the Shortcuts settings pane.
- Improve word navigation with Control-Option-F and Control-Option-B to treat periods, commas, and colons as word delimiters, consistent with Option-Left Arrow and Option-Right Arrow.
- Change the Shift-Option-Down Arrow shortcut to extend the selection to the end of the line without including the line ending, consistent with Option-Down Arrow.
- Change the Delete key to delete a closing bracket or quotation mark together with the opening one only when it was automatically inserted.
- Change regular expressions in folder search to match
^and$at the beginning and end of each line, consistent with the default of the Find window. - Update the AppleScript, BBCode, CoffeeScript, Dart, Erlang, Fortran, Git Config, INI, jq, JSON, Markdown, Perl, R, reStructuredText, SVG, Tcl, Verilog, XML, DTD, and YAML syntaxes to improve performance and highlighting accuracy.
- Improve the performance of several features in large documents, such as regular-expression-based syntax highlighting, Replace All, and undo and redo.
- Improve the performance of the file browser when many files in the opened folder change at once.
- Improve overall stability and performance.
- Improve VoiceOver support (thanks to Torma Zsolt!).
- Update tree-sitter-c-sharp to 0.24.0.
- Update tree-sitter-markdown to 0.5.4.
- Update tree-sitter-php to 0.25.2.
- Update tree-sitter-scala to 0.26.13.
- Update tree-sitter-sql to 0.3.13.
- trivial: Change the numbering to avoid name conflicts in the file browser and settings to match Finder, such as using “Foo 2” if “Foo 1” already exists.
- trivial: Improve find results to include as much of a long match as possible in the line excerpt.
- trivial: Change File Drop snippets to keep the
<<<FILECONTENT>>>variable as is when the file content cannot be read, consistent with the image size variables. - trivial: Display the setting name in the error message when importing a setting fails.
- trivial: Display errors in the
cotcommand as a brief message instead of a Python traceback. - dev: Update the build environment to Xcode 27.2.
Fixes
- Fix an issue where the Select All Find Matches command crashed the app when there were no matches (thanks to Yusuke Terada!).
- Fix an issue where the app could crash when searching in a folder with a regular expression, such as
\nor\s, if files had CRLF line endings. - Fix an issue where the document could remain uneditable after canceling Find All, Replace All, or Multiple Replace.
- Fix several issues with the “Match only whole words” find option, such as not finding text that starts or ends with a symbol, or text that contains a line ending.
- Fix an issue where Find All highlights remained in the document after closing the search results.
- Fix an issue where syntax highlighting could stop partway through a large document if the document was edited before the first highlighting finished after opening.
- Fix issues in tree-sitter-based syntax highlighting where highlights could remain outdated or disappear after editing, such as when entering text with an input method or editing in a string spanning multiple lines.
- Fix several issues in parsing with tree-sitter-based syntax.
- Fix an issue where the outline menu in the navigation bar could display an empty or incorrect item when the insertion point was before the first outline item.
- Fix an issue in the file browser where read-only files in a writable folder could not be renamed and the Move to Trash command was unavailable for them.
- Fix several issues where the file browser did not reflect changes correctly, such as after renaming or moving the opened folder or its subfolders, changing only the capitalization of a name, or replacing a file with a folder of the same name.
- Fix several issues with filtering in the file browser, such as filtering not working when the folder contained a subfolder that could not be read, or the results not being updated correctly after files were changed outside the app.
- Fix an issue where shortcuts using function keys, arrow keys, or other navigation keys could not be set in the Shortcuts and Snippets settings panes.
- Fix several issues where the editor’s font and indentation were reset, such as when opening documents with the “Detect indent style on document opening” option, splitting the editor, or relaunching the app.
- Fix an issue where double-clicking a period, comma, or colon selected nothing or the preceding word instead of the character itself.
- Fix an issue where the Select Enclosing Symbols command did nothing if an unmatched closing symbol, such as
>in a comparison, came before the closing symbol of the enclosing pair. - Fix an issue where trailing whitespace on the previous line was not automatically trimmed while the insertion point was at the beginning of the next line.
- Fix an issue where the “Convert Indentation” commands did not convert indentation that mixed spaces and tabs.
- Fix several issues with indentation that was not a multiple of the indent width or mixed spaces and tabs, such as inserting or deleting an incorrect number of spaces with the Tab or Delete key, or not outdenting to the indent level of the opening symbol when typing a closing symbol, such as “
}”. - Fix an issue where the Toggle Comment and Uncomment commands could not uncomment block or inline comments when only part of a line was selected.
- Fix issues in syntaxes where the comment delimiter is valid only at the line start, such as Dockerfile, where the Inline Comment command inserted the delimiter in the middle of a line and comments indented with tabs were not highlighted.
- Fix several issues with multi-cursor editing, such as moving insertion points incorrectly at the end of wrapped lines or in right-to-left text, inserting text at an incorrect location when typing after extending selections, or turning insertion points into selections when moving lines down.
- Fix several issues in documents whose line endings are not LF, such as deleting only part of a CRLF line ending during multi-cursor editing, inserting comment delimiters at an incorrect position relative to the indentation, or moving the insertion point to an incorrect location after inserting a snippet with line breaks.
- Fix an issue where selecting or deleting text by word or to the beginning of a line could affect an incorrect range or make the app unresponsive in bidirectional text.
- Fix several issues with Sort by Pattern, such as the “In descending order” option reversing the order of lines with the same sort key and moving lines that do not contain the sort key to the top.
- Fix an issue where File Drop snippets swapped the width and height of rotated images, such as photos taken in portrait orientation.
- Fix several issues in the
cotcommand, such as where the--newoption could empty existing files or the--waitoption stopped waiting when the window was minimized. - Fix an issue where Keyboard Maestro and other accessibility tools could not find the Text menu.
- Fix several issues with AppleScript, such as the
line rangeproperty of the selection returning incorrect lines, or thereplacecommand failing to replace a single match when the regular expression used lookahead. - Fix several issues with importing settings, such as failing to import settings archives exported from CotEditor 6.2 with custom syntaxes, or archives containing hidden files.
- Fix an issue where characters that could not be converted were saved as invalid bytes when saving a document in ASCII.
- non-AppStore ver.: Fix an issue where File Drop snippets could make the app unresponsive by downloading dropped web URLs.
- trivial: Fix an issue where the app could crash when duplicating an item in the file browser if the system used non-Latin digits.
- trivial: Fix an issue where the app could crash or stop responding when saving a document in certain encodings if the text contained combining marks that could not be converted.
- trivial: Fix an issue where the app could crash when saving a document if the file’s extended attributes specified an unavailable text encoding.
- trivial: Fix an issue where non-ASCII characters were lost without warning when saving a document in Non-lossy ASCII.
- trivial: Fix several issues in the Warnings inspector, such as the app crashing with certain sequences of emoji or decomposed Hangul characters that the current text encoding could not represent, or displaying an incorrect conversion result for yen signs.
- trivial: Fix an issue where the “Refer to encoding declaration in document” option could garble documents that declared UTF-16 but were not saved in UTF-16.
- trivial: Fix an issue where the expansion state of folders in the file browser was sometimes not restored from the last session.
- trivial: Fix an issue where text was positioned too high in lines with some fonts, such as Raanana.
- trivial: Fix an issue where the app could crash when replacing text within selections with a regular expression containing
\Rif a selection ended in the middle of a CRLF line ending. - trivial: Fix an issue where progress could be displayed incorrectly when searching or replacing text within selections.
- trivial: Fix several issues with finding or replacing text that contains combining marks, such as the app crashing or not responding when finding or replacing only combining marks with the “Ignore Case” or “Ignore diacritical marks” find option.
- trivial: Fix an issue where Multiple Replace could not find text containing line endings if the document’s line endings were not LF.
- trivial: Fix an issue in the Find window where pinch zooming did not synchronize the text size between the find and replace fields.
- trivial: Fix an issue where regular-expression syntax highlighting in input fields could break for some patterns.
- trivial: Fix an issue in the Find window where escaped parentheses and brackets, such as
\(, were treated as pairs in a regular expression when highlighting the matching one or selecting the pair by double-clicking. - trivial: Fix issues where regular expression conditions in the file scope of folder search did not match names containing certain characters, such as “é”, “が”, or Hangul, and accepted some invalid patterns, such as those with unbalanced parentheses.
- trivial: Fix an issue where automatic indentation could treat part of a word as a keyword, such as “
then”, if a non-ASCII letter adjoined it. - trivial: Fix several issues with regular-expression-based syntax highlighting, such as highlighting strings or comments in an incorrect range, or the app crashing with certain syntax definitions.
- trivial: Fix an issue where syntax highlighting and the outline were not updated if text entered with an input method, such as for Japanese, replaced the selection and was then deleted or canceled before being confirmed.
- trivial: Fix an issue where the selection could move to an incorrect range when commenting out lines with block comment delimiters while only line endings were selected.
- trivial: Fix several issues with pressing Control-T, such as doing nothing after an emoji at the end of the document, or swapping selected characters or breaking an emoji during multi-cursor editing.
- trivial: Fix an issue where the Delete Duplicates command could cause unexpected behavior if lines contained VT (
U+000B) or FF (U+000C). - trivial: Fix an issue where the selection after reversing, shuffling, or sorting lines by pattern did not include an empty line moved to the end.
- trivial: Fix an issue in the file browser where moving a symbolic link to a folder to the Trash also closed open documents in that folder.
- trivial: Fix several issues with snippets, such as replacing variables incorrectly when the name of a dropped file contained a variable, or indenting the subsequent lines too deeply when inserting a snippet with line breaks within the indentation.
- trivial: Fix an issue where Shift-Return could be assigned as a keyboard shortcut.
- trivial: Fix an issue where a customized shortcut for a command no longer in the menu could remove the default shortcut of another menu command.
- trivial: Fix an issue where the line and column of the insertion point in the status bar could remain outdated after the document was reloaded with changes made outside the app.