feat: add configurable key bindings with ESC quit disable option

- Add unified application configuration system with JSON config file
- Implement configurable quit keys (default: "q", "ctrl+c")
- Add disable_esc_quit option for vim users to prevent accidental exits
- Auto-create default config file at ~/.config/sshm/config.json
- Maintain backward compatibility (ESC quit enabled by default)
- Include comprehensive tests and documentation
This commit is contained in:
zxr
2025-09-29 11:05:26 +08:00
parent 3d746ec49a
commit 120cd6c009
6 changed files with 416 additions and 3 deletions

View File

@@ -80,6 +80,9 @@ type Model struct {
sortMode SortMode
configFile string // Path to the SSH config file
// Application configuration
appConfig *config.AppConfig
// Version update information
updateInfo *version.UpdateInfo
currentVersion string