From 599b189fc5a5cf4b9b22b38a78fcf42ccdf76487 Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Fri, 5 Jan 2024 15:51:09 +0100 Subject: [PATCH] sync: Made colon count reactive --- sync | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sync b/sync index f0c84cb..0872d8b 100755 --- a/sync +++ b/sync @@ -81,8 +81,10 @@ def list_files(reverse: bool = False) -> list[int]: print( f"{bcolors.PURPLE}{i} {bcolors.GREEN}{f[int(reverse)]} {bcolors.ENDC}-> {bcolors.GREEN}{f[int(not reverse)]}{bcolors.ENDC}" ) + + colon = ":" * len_len user_action = input( - f"{bcolors.BOLD}{bcolors.BLUE}::{bcolors.ENDC} {bcolors.BOLD}Files to sync (eg: 1 2 3, 1-3):\n{bcolors.BLUE}::{bcolors.ENDC} " + f"{bcolors.BOLD}{bcolors.BLUE}{colon}{bcolors.ENDC} {bcolors.BOLD}Files to sync (eg: 1 2 3, 1-3):\n{bcolors.BLUE}{colon}{bcolors.ENDC} " ) # Parse input