From 87cdecbeee1e79150ad66039d5eabb4e567ee32a Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Thu, 25 Jul 2024 00:15:20 +0300 Subject: [PATCH] feat: allow removing property column by index --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index be7134d..1bee64b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -169,6 +169,10 @@ async fn main() { Some(':') => match input[1..2].parse::() { Ok(index) => { + if input.len() == 2 { + tasks.properties.remove(index); + continue; + } let value = input[2..].to_string(); if tasks.properties.get(index) == Some(&value) { tasks.properties.remove(index);