-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Clear logs #403
Comments
I agree this would be a great feature. It might also be quite easy i.e. just press a key and then clear the main view. I'm gonna put a good-first-issue label on this. If you wanna take a stab at this @Tam lemme know and I can point you to the right places in the code to make the changes |
It's been a minute since I last used Go @jesseduffield, but sure if you can point me in the right direction I'll try to find time soon to give it a shot! |
Awesome :) So you'll want to add a keybinding handler in func (gui *Gui) handleClearMain() error {
if gui.popupPanelFocused() {
return nil
}
gui.Views.Main.Clear()
return nil
} and then you'll want to reference it from {
ViewName: "main",
Key: gocui.KeyCtrlL,
Modifier: gocui.ModNone,
Handler: wrappedHandler(gui.handleClearMain),
Description: gui.Tr.ClearMain,
}, You'll also need to add the keybinding's help text to I'd see how that goes. We'll likely need to tweak it but that's a good starting spot |
@jesseduffield, is anyone actively working on this issue right now? |
Did you get a chance to start on this @Tam ? If you want to give it a go @26tanishabanik I'm happy to assign you |
I can give it a try @jesseduffield , though I have a question, how do I setup the local dev environment, is there specific doc for that? |
@jesseduffield it’s probably gonna be a while before I have time, happy to let @26tanishabanik take the reins 👍 |
@jesseduffield , what does |
I'd guess it's |
Thanks @mark2185 |
@jesseduffield , |
It'd be really useful to be able to clear the logs view and only show new items as they come in.
This is possible when viewing the logs independently (i.e. via the
m
keybind) and using the clear command to clear the terminal, but I often find myself jumping between containers to check the logs, so being able to do this within the lazydocker context would be handy!The text was updated successfully, but these errors were encountered: