aboutsummaryrefslogtreecommitdiffstats
path: root/modules/scripts/neomutt-sync/script.sh
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-05 17:58:58 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-05 17:58:58 +0530
commit53dc8c95e525f922461dfc1768121ee02380e4ec (patch)
tree8eabc7f32c25f47311a599c5a65e19a67447f9af /modules/scripts/neomutt-sync/script.sh
parent0a7afa2d1e576f05253b62c6b17e5e4873fbdebc (diff)
downloadhome-manager-config-53dc8c95e525f922461dfc1768121ee02380e4ec.tar.gz
home-manager-config-53dc8c95e525f922461dfc1768121ee02380e4ec.zip
feat: Rewrote neomutt keybindings, updated comments
- Rewriting the neomutt keybindings by hand - Updated comments to be simpler
Diffstat (limited to 'modules/scripts/neomutt-sync/script.sh')
-rw-r--r--modules/scripts/neomutt-sync/script.sh10
1 files changed, 5 insertions, 5 deletions
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