Skip to content

Commit

Permalink
Copy log entry as markdown if meta is not message
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchLeaders committed Sep 3, 2023
1 parent ea98e10 commit 7618026
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/NxEditor/Models/LogEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ public LogEntry(string meta, string message)

public async Task Copy()
{
if (ShellViewModel.Shared.View?.Clipboard?.SetTextAsync($"{Message}") is Task task) {
if (ShellViewModel.Shared.View?.Clipboard?.SetTextAsync(Message != Meta ? $"""
**{Message}**
```
{Meta}
```
""" : Message) is Task task) {
await task;
}
}
Expand Down

0 comments on commit 7618026

Please sign in to comment.