Improve Copy / Paste on new Logging View
See original GitHub issueHey hey 😃 I’ve been trying out the new logging view and wanted to provide a bit of feedback wrt copying and pasting logged messages. It’s a pretty common task when running into bugs in a larger app where another team might be responsible for the feature you’re navigating through and you encounter an error. I might want to create a new ticket with the StackTrace, or paste it into slack for discussion.
Issue 1: Use cmd+c to copy a log Message
- Enable new logging view (applies to all of these)
- Run the app
- See a log message or many messages you’re interested in copying
- Highlight it and press
cmd+c
to copy - Get output like this when pasting:
io.flutter.logging.FlutterLogEntry@76b5b7da | io.flutter.logging.FlutterLogEntry@76b5b7da | io.flutter.logging.FlutterLogEntry@76b5b7da | io.flutter.logging.FlutterLogEntry@76b5b7da
-- | -- | -- | --
Workaround: Secondary-click on the message, click “Copy asText”. This now produces a result I was expecting:
13:30:48.572 2508 800 flutter.tools Restarted app in 1,230ms.
or with multiple lines:
13:30:48.572 2508 800 flutter.tools Restarted app in 1,230ms.
13:30:47.834 2509 400 runtime.gc collection time 1ms • 26.2MB used of 27.2MB • isolates/21837764
13:30:48.007 2510 400 runtime.gc collection time 2ms • 30.0MB used of 31.2MB • isolates/21837764
Issue 2: Copy a portion of the message
Say I want to filer down to a specific message. Rather than typing it in (error-prone, sometimes long), it’d be great to copy only a portion of the message rather than “Copy as Text” and have to remove the bits I don’t want.
- Run app with new logging view
- Attempt to select only a portion of the logged message, e.g. I wanted to copy “Restarted app” from the message “Restarted app in 1,230ms.”
- Can’t quite see a way to do this
Thanks for all the hard work and community effort on this feature!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:21 (21 by maintainers)
Top GitHub Comments
Yep! This provided the functionality I was looking for 😃
@pq, @brianegan, I created a new PR: https://github.com/flutter/flutter-intellij/pull/2473 with two features: