summaryrefslogtreecommitdiffstats
path: root/src/configs/cmd_duration.rs
AgeCommit message (Collapse)Author
2022-09-09feat(schema): deny unknown keys (#4270)David Knaack
2022-04-01feat: allow printing config file schema (#3737)David Knaack
2022-03-26refactor: replace module_config_derive with serde (#3786)David Knaack
* refactor: replace module_config_derive with serde Changes include: * Removing `starship_module_config_derive` and replacing it with `serde::Deserialize` * Removing `RootModuleConfig::load_config`. While potentially useful, it was only used in tests. And it would require something like `serde::DeserializeSeed` which is not derived by serde. * Merging `RootModuleConfig` into `ModuleConfig` * Implementing a `ValueDeserializer` that holds a reference to a `toml::Value` in `serde_utils.rs` * Deserialization errors (invalid type) are now logged and include the current key and the struct names * Unknown keys are now considered an error. "Did you mean?"-messages are still possible * fix typo Co-authored-by: Matan Kushner <hello@matchai.dev> Co-authored-by: Matan Kushner <hello@matchai.dev>
2022-01-29feat(cmd_duration): Make notification timeout configurable (#3515)Lyndon Sanche
* Allow customization of notification timeout * Document new notification duration option * Check for out-of-bounds timeout and correct it * Implement ModuleConfig for u32 * Revert "Check for out-of-bounds timeout and correct it" This reverts commit 52109ab5f7c336b55c81bccafb3adbfc81514553. * Switch notification_timeout to u32 * Note notification_daemons might not honor timout * Notification timeout defaults to daemon timeout * Leave default value of notification_timeout blank in docs
2021-03-31feat(config): allow printing default and computed config (#2521)David Knaack
* feat: allow printing default and computed config * fix custom modules * actually fix custom modules
2021-03-15refactor: replace RootModuleConfig with Default (#2458)David Knaack
2020-08-11feat: Add Undistract Me Feature (#1019)Marc Schreiber
Often it is handy to get notified when the execution of a command finished. This commit includes notify-rust in order to generate a desktop notification when a command execution finished.
2020-07-07feat: refactor modules to use format strings (#1374)Zhenhui Xie
2019-12-19feat: cmd_duration module optionally reports milliseconds (#696)Luca Rinaldi
2019-10-15refactor: Rewrite cmd_duration, directory and env_var module to use module ↵Zhenhui Xie
config (#460) This PR is a batched rewrite of the following modules: - cmd_duration - directory - env_var