mu-editor / mu

A small, simple editor for beginner Python programmers. Written in Python and Qt5.
http://codewith.mu
GNU General Public License v3.0
1.4k stars 434 forks source link

Request: clear the logs in the dialog window #545

Open CleoQc opened 6 years ago

CleoQc commented 6 years ago

I would like to be able to clear the logs in the window that pops up when clicking on the gear icon in the lower right corner. This would not necessarily delete the log file itself but would limit what is shown in the dialog window (it would only show the log file since the last "clear log window" command.

I spent a while trying to figure out what was going wrong, and that log info became quite big due to various test attempts on my part.

ZanderBrown commented 6 years ago

KISS approach would probably be to just delete the file but then we would lose the version info header (but that should be doable)

Thoughts @ntoll ?

CleoQc commented 6 years ago

That's what I ended up doing, yes, but that removes all the info while in fact I only wanted the popup to be emptied, not the actual log file.

tmontes commented 6 years ago

Chiming in with one possible approach:

My 2c.

A few related ideas that may deserve issues on their own (not that I feel the need for them), if a "clear log" button ever gets into the UI:

ZanderBrown commented 6 years ago

Adding some of these things to the context menu seems reasonable (little harder to hit by accident than buttons)

CleoQc commented 6 years ago

The context menu is what I had in mind when I opened up this issue. This feature is not worth taking real estate for a button and is best hidden away until you actually need it.