air-verse / air

☁️ Live reload for Go apps
GNU General Public License v3.0
16.32k stars 770 forks source link

feat(keyboard): add keyboard shortcuts for manual reload and quit #582

Open Sett17 opened 1 month ago

Sett17 commented 1 month ago

Integrated keyboard shortcuts to improve the development workflow by allowing manual reloads and a quick quit option. This enhancement utilizes the atomicgo.dev/keyboard package to listen for specific key events, providing developers with immediate control over the application's run state without needing to interrupt the terminal session.

Will also add configuration to this, thus the draft.

Sett17 commented 1 month ago

The reason why I needed this was working with temple. There it did not detect changes most of the time so a manual reload was really nice to have!