F1bonacc1 / process-compose

Process Compose is a simple and flexible scheduler and orchestrator to manage non-containerized applications.
https://f1bonacc1.github.io/process-compose/
Apache License 2.0
1.33k stars 52 forks source link

add possibility to skip the exit confirmation prompt #268

Closed teto closed 1 week ago

teto commented 1 month ago

Feature Request

Add possibility of skipping the exit prompt image it's an extra key that slows me down

Use Case:

I am iterating over my process-compose.yaml a lot and it keeps asking me wether I want to exit while I am sure I want to exit. Anyhow I use process-compose only for development purposes so there is rarely a case where I dont want to exit.

Proposed Change:

Ideally it would be a flag in ~/.config/process-compose/settings.yaml but I dont mind any solution really, a CLI flag or an environment variable would already be helpful

Who Benefits From The Change(s)?

me ?

Alternative Approaches

add a quit! shortcut one could map in config/process-compose/shortcuts.yaml ?

  quit!:
    description: Force Quit
    shortcut: F10

NB: i am on 1.34.0

F1bonacc1 commented 1 week ago

Added in v1.40.0

#XDG_CONFIG_HOME/process-compose/settings.yaml

theme: Cobalt
sort:
    by: NAME
    isReversed: false
disable_exit_confirmation: false # if true, will disable the TUI exit confirmation dialog
teto commented 1 week ago

thank you. If I may, I would say the negative option disable_exit_confirmation is not the most intuitive. exit_confirmation with true as a default would be more straightforward IMO. But I amp happy that a setting exists at all so thanks again !