It makes it so cot editor stops asking you to save untitled files and just quits. Unfortunately it quits on tab close on the final window, didn't figure out how to fix that yet, so instead I'm using better touch tool to handle the hot closing:
I setup better touch tool to do this:
Set up Leftclick Red Window Button trigger with an advanced condition focused_element_details BEGINSWITH "<AXApplication: \"CotEditor\">" AND (NOT (focused_element_details CONTAINS " <AXWindow: \"Find & Replace\">"))
then have it run a shell script:
window_count=$(osascript -e 'tell application "System Events" to count (every window of application process "CotEditor")')
if [[ "$window_count" -eq "1" ]]; then
# Close the active window (more robust than quitting the app if only one window exists)
osascript -e 'quit application "CotEditor"'
echo "Active CotEditor quit."
elif [[ "$window_count" -gt "0" ]]; then
echo "Multiple CotEditor windows are open ($window_count). Closing now"
osascript -e 'tell application "CotEditor" to close (window 1)'
else
echo "No CotEditor windows are open."
fi
CotEditor is a lightweight plain-text editor for macOS. The project aims to provide a general plain-text editor for everyone with an intuitive macOS-native user interface.
- Requirement: macOS 14 Sonoma or later
- Web Site: https://coteditor.com
- Mac App Store: https://itunes.apple.com/app/coteditor/id1024640650?ls=1
- Languages: English, Czech, Dutch, French, German, Italian, Japanese, Korean, Polish, Portuguese, Spanish, Simplified Chinese, Traditional Chinese, and Turkish
CotEditor is a purely macOS native application written in Swift. It adopts Cocoa's document-based application architecture and respects the power of NSTextView
.
- macOS 15 Sequoia
- Xcode 16
- Swift 6 (partly in Swift 5 mode)
- Sandbox and hardened runtime enabled
CotEditor has its own contributing guidelines. Read CONTRIBUTING.md through before you create an issue or make a pull request.
For those people who just want to build and play with CotEditor locally.
- Open
CotEditor.xcodeproj
in Xcode. - Change to ad-hoc build mode:
- Open
Configurations/CodeSigning.xcconfig
. - Comment out
#include "CodeSigning-Default.xcconfig"
. - Uncomment
#include "CodeSigning-AdHoc.xcconfig"
.
- Open
- Build “CotEditor” scheme.
- Open
CotEditor.xcodeproj
in Xcode. - Build “CotEditor” scheme.
© 2005-2009 nakamuxu, © 2011, 2014 usami-k, © 2013-2024 1024jp.
The source code is licensed under the terms of the Apache License, Version 2.0. The image resources are licensed under the terms of the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. See LICENSE for details.