-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved scratchpad (xml, json, base64 etc.) #119
Comments
I don't know if the scratchpad in build 500 is toward this request, but this nifty little scratchpad could become more useful:
|
Although I think these enhancements might have less priority than other useful bugfix or features. |
Thanks for useful feedback. It is still early work in progress. I just had to do a lot of base64 -> json recently and composed this little tool. Will make it more useful but with less priority. |
Add url decoding support |
"Format xml" in Scratchpad has an issue if first root node is an XML declaration like |
Button CRC32 could be a "direct button with a split drop-down menu on the right side" offering MD5, SHA1 and SHA256 as well. Also I think this button should present the result as a MsgBox and place the checksum in the clipboard, rather than replace the content of the scratchpad. |
IdeaIt would be nice to have a way to "unescape" a string. Namely, I want to replace
It will be useful for long formatted strings serialized in the json attribute. Test caseLet's have this log line: {"@timestamp":"2023-05-18 21:22:35,588","level":"ERROR","message":"Exception caught in mainLoop: Response not obtained in 20 seconds","exc_info":"Traceback (most recent call last):\nFile \"/venv/lib/python3.10/site-packages/trio/_threads.py\", line 215, in to_thread_run_sync\n return await trio.lowlevel.wait_task_rescheduled(abort)\nFile \"/venv/lib/python3.10/site-packages/trio/_core/_traps.py\", line 166, in wait_task_rescheduled\n return (await _async_yield(WaitTaskRescheduled(abort_func))).unwrap()\nFile \"/venv/lib/python3.10/site-packages/outcome/_impl.py\", line 138, in unwrap\n raise captured_error\nResponseTimeout: Response not obtained in 20 seconds","thread":"MainThread"} If I send it to the scratchpad and press the "Format json" button, then I will get {
"@timestamp": "2023-05-18 21:22:35,588",
"exc_info": "Traceback (most recent call last):\nFile \"/venv/lib/python3.10/site-packages/trio/_threads.py\", line 215, in to_thread_run_sync\n return await trio.lowlevel.wait_task_rescheduled(abort)\nFile \"/venv/lib/python3.10/site-packages/trio/_core/_traps.py\", line 166, in wait_task_rescheduled\n return (await _async_yield(WaitTaskRescheduled(abort_func))).unwrap()\nFile \"/venv/lib/python3.10/site-packages/outcome/_impl.py\", line 138, in unwrap\n raise captured_error\nResponseTimeout: Response not obtained in 20 seconds",
"level": "ERROR",
"message": "Exception caught in mainLoop: Response not obtained in 20 seconds",
"thread": "MainThread"
} It already works. Then, when I select the "exc_info" attribute value ...
... and press the new (desired) "Unescape" button, I want it to be replaced with this text:
Thanks for the work on klogg. I'm excited about how much better it is than the original glogg. |
Nice idea! |
Need to revisit and split into separate issues |
Other scratchpad suggestions are welcome in this issue.
The text was updated successfully, but these errors were encountered: