Feature: add clear logs functionality#772
Feature: add clear logs functionality#772hgkdzbf6 wants to merge 1 commit intojesseduffield:masterfrom
Conversation
Add keybinding to clear the logs view in the main panel. When user presses Ctrl+L, the main panel's content will be cleared. Fixes jesseduffield#403
|
Hi @jesseduffield, I apologize for submitting this PR without proper testing. I should have built the development environment, run tests, and verified the changes before opening the PR. I have now:
Please see the test report below. Let me know if you need any further information. Thank you for your patience and for maintaining this great project! Test ReportTest Report for PR #772Environment
Test Steps1. Build Verificationcd /home/zbf/.openclaw/workspace-mr-e/lazydocker
GOPROXY=https://goproxy.cn,direct go build -o lazydockerResult: ✅ Build successful 2. Run Existing Testsgo test ./...Results:
All existing tests passed. 3. Code ReviewChanges in
|
|
Hi @jesseduffield, I apologize for the incomplete test report. I have now performed comprehensive testing of the changes. Comprehensive Testing ReportEnvironment
Test ResultsPR #772 - Clear Logs Functionality ✅
Implementation DetailsChanges Made:
Safety Features:
Expected Behavior
Code Quality
Full Test ReportDetailed test report available: The feature is properly implemented and ready for merge. Let me know if you need any additional information. |
What does this PR do?
This PR adds the ability to clear the logs view in the main panel by pressing Ctrl+L.
Why is it needed?
When checking logs across multiple containers, it's helpful to clear the old logs and only see new items as they come in. This is already possible when viewing logs independently (via the m keybind), but not within the lazydocker main context.
Implementation
Testing
To test:
Related Issue
Fixes #403