From 53dc8c95e525f922461dfc1768121ee02380e4ec Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Wed, 5 Aug 2026 17:58:58 +0530 Subject: feat: Rewrote neomutt keybindings, updated comments - Rewriting the neomutt keybindings by hand - Updated comments to be simpler --- modules/scripts/neomutt-sync/script.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/scripts/neomutt-sync') diff --git a/modules/scripts/neomutt-sync/script.sh b/modules/scripts/neomutt-sync/script.sh index b2db42a..02e03e7 100644 --- a/modules/scripts/neomutt-sync/script.sh +++ b/modules/scripts/neomutt-sync/script.sh @@ -26,9 +26,9 @@ button_key_inactive_color = (YELLOW,BLACK,OFF) button_label_inactive_color = (YELLOW,BLACK,OFF) EOF -# 2. Run the sync and indexing progress bar +# Run the sync and indexing progress bar ( - # --- PHASE 1: mbsync --- + # mbsync phase script -q -e -c "mbsync -a" /dev/null | awk -v RS='\r' ' { c_str = "" @@ -47,15 +47,15 @@ EOF fflush() }' - # --- PHASE 2: notmuch --- + # notmuch phase printf "XXX\n100\nIndexing new mail with notmuch...\nXXX\n" notmuch new > "$NOTMUCH_LOG" 2>&1 ) | dialog --title "$TITLE" --gauge "Initializing..." 8 80 0 -# 3. Format the captured notmuch output into a single clean line +# Format the captured notmuch output into a single clean line CLEAN_OUT=$(tr '\n' ' ' < "$NOTMUCH_LOG" | sed 's/ */ /g') -# 4. Display final results and wait for user input (Enter/Esc) to dismiss +# Display final results and wait for user input dialog --title "$TITLE" --msgbox "Done!\n$CLEAN_OUT" 8 80 clear -- cgit v1.2.3