Add idle tab auto archive policy

This commit is contained in:
2026-05-08 02:27:29 -04:00
parent 15cf65be62
commit 7f479ff9e1
7 changed files with 229 additions and 10 deletions
@@ -56,6 +56,11 @@ pub(crate) fn move_tab_space_name(command: &str) -> Option<&str> {
)
}
pub(crate) fn archive_idle_days(command: &str) -> Option<u16> {
command_argument(command, &["archive-idle-tabs ", "archive idle tabs "])
.and_then(|value| value.parse().ok())
}
pub(crate) fn new_profile_name(command: &str) -> Option<&str> {
command_argument(command, &["new-profile ", "new profile "])
}