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
Console: No command to clean the console #299
Comments
+1 is all I can unfortunately do for now... |
What is the use case for this? I'm struggling to think of one, myself. The idea might get more traction if it was clear why it was needed. |
To be able to debug packages more easily |
opening a new window gives you an empty console for free (in that window) |
Related:
If we could get the console view, we could clean it, change its font size, etc. |
I'm not sure there is a View for the console at all. |
I'm pretty sure there is. A lot of views get created when a new window is created, including the console output and input views, as well as several input views for find panels. You can debug this by creating |
Intriguing. I found the view for the console input, but I couldn't identify one for the output. Setting the font size for all of the candidates (by ID) did not affect the output. Also, none of them had a nonzero size. Is it possible that the input is a view but the output is not? |
I think the console could be a view, but it is well hidden due to the problems they had: #2929 (comment) |
With the class ClearConsoleCommand(sublime_plugin.WindowCommand):
def run(self):
a = sublime.load_settings("Preferences.sublime-settings")
current = a.get("console_max_history_lines")
a.set("console_max_history_lines", 1)
print("")
a.set("console_max_history_lines", current) (One can then have an entry in |
Fixed in Sublime Text 4. |
This doesn't appear to be fixed unless I am mis-understanding the issue here. 2021-10-20_13-10-18.mp4 |
you're referring to the linked issue and not this one? it was marked as invalid. see #2929 (comment) |
How it was fixed? Is there a command on Sublime Text 4 to clean the console? |
Sorry, not sure why this was added to the ST4 release milestone. |
@evandrocoan Look at the linked plugin. #299 (comment) It does the same thing as clear the console. Whether this should be built in or not, I'd leave that to the devs. |
I'm not aware of any command, to clear the ST console. It would be nice to have one.
The text was updated successfully, but these errors were encountered: