-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Giga refactoring, improved code, structure and features. - Improve error handling and alert windows - Add go to error line feature - Improve document will/did save error handling
- Loading branch information
Showing
23 changed files
with
935 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Change Log | ||
|
||
**2024-05-10** | ||
|
||
Giga refactoring, improved code, structure and features. | ||
|
||
- Improve error handling and alert windows | ||
- Add go to error line feature | ||
- Improve document will/did save error handling | ||
|
||
**2024-05-06** | ||
|
||
Mega refactoring, improved code structure and speed. | ||
|
||
- Remove `TM_PYRUFF_DEBUG` TextMate variable. | ||
- Add logging mechanism | ||
- Speed improvements, integrated and tested on `ruff` version `0.4.2` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>autoScrollOutput</key> | ||
<true/> | ||
<key>beforeRunningCommand</key> | ||
<string>nop</string> | ||
<key>command</key> | ||
<string>#!/usr/bin/env ruby18 -wKU | ||
require ENV['TM_SUPPORT_PATH'] + '/lib/ui' | ||
TM_DOCUMENT_UUID = ENV["TM_DOCUMENT_UUID"] | ||
filename = "/tmp/textmate-ruff-#{TM_DOCUMENT_UUID}.goto" | ||
if File.exist?(filename) | ||
errors = File.read(filename) | ||
if errors | ||
errors = errors.split("\n").sort | ||
selected_index = TextMate::UI.menu(errors) | ||
unless selected_index.nil? | ||
selected_error = errors[selected_index] | ||
if selected_error | ||
line = selected_error.split(" ").first | ||
system(ENV["TM_MATE"], "--uuid", TM_DOCUMENT_UUID, "--line", line) | ||
end | ||
end | ||
end | ||
end | ||
</string> | ||
<key>input</key> | ||
<string>none</string> | ||
<key>inputFormat</key> | ||
<string>text</string> | ||
<key>keyEquivalent</key> | ||
<string>~g</string> | ||
<key>name</key> | ||
<string>Go to error line</string> | ||
<key>outputCaret</key> | ||
<string>interpolateByChar</string> | ||
<key>outputFormat</key> | ||
<string>text</string> | ||
<key>outputLocation</key> | ||
<string>discard</string> | ||
<key>scope</key> | ||
<string>source.python.ruff</string> | ||
<key>uuid</key> | ||
<string>40241AB3-EAF3-4967-8F02-555020846FB4</string> | ||
<key>version</key> | ||
<integer>2</integer> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.