feat: log search functionality, closes #72

This commit is contained in:
Jack Wills
2025-09-20 22:04:40 +00:00
parent 03599b4665
commit 96d9469623
33 changed files with 1278 additions and 243 deletions
+20 -1
View File
@@ -31,6 +31,8 @@
"use_cli": false,
// Show the logs section - this can be changed during operation with the log_section_toggle key
"show_logs": true,
// Use case-sensitive matching for logs
"log_search_case_sensitive": true,
//////////////////
// Custom Keymap //
//////////////////
@@ -67,6 +69,10 @@
"/",
"F1"
],
// Enter log search mode
"log_search_mode": [
"#"
],
// Quit at anytime
"quit": [
"q"
@@ -85,7 +91,9 @@
"end"
],
// Modifier to scroll by 10 lines instead of one, used in conjunction with scroll_up/scroll_down
"scroll_many": ["control"],
"scroll_many": [
"control"
],
// Scroll up to the start of a list
"scroll_start": [
"home"
@@ -285,6 +293,17 @@
// Highlighted text color
"highlight": "magenta"
},
// The log search panel
"log_search": {
// Background color of panel
"background": "reset",
// color of text
"text": "gray",
// text color of the buttons text
"button_text": "black",
// Highlighted text color
"highlight": "magenta"
},
// The logs panel, will only be applied if color_logs is false
"logs": {
// Background color of panel
+21
View File
@@ -43,6 +43,9 @@ use_cli = false
# Show the logs section - this can be changed during operation with the log_section_toggle key
show_logs = true
# Use case-sensitive matching for logs
log_search_case_sensitive = true
#################
# Custom Keymap #
#################
@@ -72,6 +75,10 @@ delete_confirm = ["y"]
exec = ["e"]
# Enter filter mode
filter_mode = ["/", "F1"]
# Enter log search mode
log_search_mode = ["#"]
# Quit at anytime
quit = ["q"]
# Save logs of selected container to file on disk
@@ -115,6 +122,9 @@ log_section_height_decrease = ["-"]
log_section_height_increase = ["+"]
# Toggle visibility of the log section
log_section_toggle = ["\\"]
# Force a complete clear & redraw of the screen
force_redraw = ["f"]
@@ -192,6 +202,17 @@ selected_filter_text = "black"
highlight = "magenta"
# The log search panel
[colors.log_search]
# Background color of panel
background = "reset"
# color of text
text = "gray"
# text color of the buttons text
button_text = "black"
# Highlighted text color
highlight = "magenta"
# The color the of Docker commands available for each container
[colors.commands]
# Background color of panel