- Added command to clear clipboard history (`cmd_clear.go`). - Implemented command to copy a history item back to the clipboard (`cmd_copy.go`). - Created command to list clipboard history (`cmd_list.go`). - Developed command to watch clipboard changes and store history (`cmd_watch.go`). - Introduced configuration loading for logging and clipboard settings (`config.go`). - Established main application logic with command registration and configuration handling (`main.go`). - Implemented history management with loading, saving, and clearing functionality (`history.go`). - Defined history item structure to store clipboard data (`history_item.go`). - Added utility functions for hashing data and summarizing clipboard content (`hash.go`, `summary.go`). - Updated dependencies in `go.sum`.
14 lines
479 B
YAML
14 lines
479 B
YAML
# Example config file for clipboard manager
|
|
logging:
|
|
# Format of the log output. Can be 'console' or 'json'.
|
|
# 'console' will output to the console, 'json' will output in JSON format.
|
|
# 'json' is useful for structured logging and can be parsed by log management systems.
|
|
format: console
|
|
|
|
# Logging level. Can be 'debug', 'info', 'warning', 'error', or 'critical'.
|
|
level: info
|
|
|
|
clipboard:
|
|
# Maximum number of items to keep in the clipboard history.
|
|
max_items: 100
|