Skip to content

Commit 34b103e

Browse files
marwieclaude
andcommitted
2.7.0-alpha.4: Rename menu to Copy/, frame on by default, cleaner format
- Rename context menu to "Copy/This Log for AI" and "Copy/All Visible Logs for AI" - Enable frame count display by default - Show frame as plain number instead of F-prefix - Show frame after time when timestamps are visible Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c401b64 commit 34b103e

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

package/Changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this package will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7-
## [2.7.0-alpha.3] - 2026-02-27
7+
## [2.7.0-alpha.4] - 2026-02-27
88
- add: "Copy Logs for AI" context menu item to copy all visible logs to clipboard in a structured, AI-friendly markdown format
99
- add: "Copy This Log for AI" to copy a single log entry with full stacktrace
1010
- add: include project path and Editor.log path in copied output

package/Editor/CustomConsole/ConsoleTextPrefix.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,25 +177,24 @@ string GetPrefix()
177177
if (settings.UseColorMarker && !string.IsNullOrWhiteSpace(colorMarker))
178178
LogColor.CalcLogColor(colorKey, ref colorMarker);
179179

180-
var framePrefix = "";
181-
if (settings.ShowFrameCount && LogFrameTracker.TryGetFrame(tempEntry.message, out var frame))
182-
{
183-
framePrefix = $"{colorPrefix}F{frame}{colorPostfix} ";
184-
}
180+
var hasFrame = settings.ShowFrameCount && LogFrameTracker.TryGetFrame(tempEntry.message, out var frame);
185181

186182
// no time:
187183
if (endTimeIndex == -1)
188184
{
189185
// LogColor.AddColor(colorKey, ref text);
190186
RemoveFilePathInCompilerErrorMessages(ref text);
187+
var framePrefix = hasFrame ? $"{colorPrefix}{frame}{colorPostfix} " : "";
191188
text = $"{framePrefix}{colorMarker}{prefix}{text}";
192189
}
193190
// contains time:
194191
else
195192
{
196193
var message = text.Substring(endTimeIndex + 1);
197194
RemoveFilePathInCompilerErrorMessages(ref message);
198-
text = $"{colorPrefix}{text.Substring(1, endTimeIndex - 1)}{colorPostfix} {framePrefix}{colorMarker}{prefix}{message}";
195+
var timePart = $"{colorPrefix}{text.Substring(1, endTimeIndex - 1)}{colorPostfix}";
196+
var framePart = hasFrame ? $" {colorPrefix}{frame}{colorPostfix}" : "";
197+
text = $"{timePart}{framePart} {colorMarker}{prefix}{message}";
199198
}
200199

201200
if (cacheEntry)

package/Editor/CustomConsole/CopyLogsForAI.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ static void Init()
1616

1717
static void OnContextMenu(GenericMenu menu, int itemIndex)
1818
{
19-
menu.AddItem(new GUIContent("Copy for AI/This Log"), false, () => CopySingleLog(itemIndex));
20-
menu.AddItem(new GUIContent("Copy for AI/All Visible Logs"), false, CopyAllLogs);
19+
menu.AddItem(new GUIContent("Copy/This Log for AI"), false, () => CopySingleLog(itemIndex));
20+
menu.AddItem(new GUIContent("Copy/All Visible Logs for AI"), false, CopyAllLogs);
2121
}
2222

2323
static bool IsError(int mode) =>

package/Editor/Settings/NeedleConsoleSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public void UpdateCurrentTheme()
130130

131131
public StacktraceOrientations StacktraceOrientation = StacktraceOrientations.Vertical;
132132
public float StacktraceOrientationAutoHeight = 300;
133-
public bool ShowFrameCount = false;
133+
public bool ShowFrameCount = true;
134134

135135
public bool UseStacktraceIgnoreFilters = true;
136136
public string[] StacktraceIgnoreFilters = new string[] { };

package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"displayName": "Needle Console",
33
"name": "com.needle.console",
4-
"version": "2.7.0-alpha.3",
4+
"version": "2.7.0-alpha.4",
55
"unity": "2020.3",
66
"description": "Better Unity console featuring improved stacktrace readability using Ben.Demystifier, filtering of log entries, collapsing of individual logs. No code changes are needed - this package integrates directly into the native Unity console.",
77
"keywords": [

0 commit comments

Comments
 (0)