<commit_before>#!/usr/bin/env zsh

# Add the keyboard shortcut ⌘ + Enter to send an email in Mail.app
defaults write com.apple.mail NSUserKeyEquivalents -dict-add "Send" "@\U21a9"

# Display emails in threaded mode, sorted by date (oldest at the top)
defaults write com.apple.mail DraftsViewerAttributes -dict-add "DisplayInThreadedMode" -string "yes"
defaults write com.apple.mail DraftsViewerAttributes -dict-add "SortedDescending" -string "yes"
defaults write com.apple.mail DraftsViewerAttributes -dict-add "SortOrder" -string "received-date"

defaults write com.apple.mail "NSToolbar Configuration MainWindow" -dict \
  "TB Default Item Identifiers" '("checkNewMail:","showComposeWindow:",NSToolbarSpaceItem,NSToolbarFlexibleSpaceItem,"delete_junk","reply_replyAll_forward",FlaggedStatus,NSToolbarFlexibleSpaceItem,Search)' \
  "TB Display Mode" 2 \
  "TB Icon Size Mode" 1 \
  "TB Is Shown" 1 \
  "TB Item Identifiers" '("deleteMessages:",NSToolbarFlexibleSpaceItem,NSToolbarSpaceItem,"orderFrontColorPanel:",NSToolbarFlexibleSpaceItem,"showComposeWindow:","checkNewMail:",NSToolbarSpaceItem,"reply_replyAll_forward","moveMessagesFromToolbar:",NSToolbarSpaceItem,"addSenderToContacts:","showAllHeaders:",NSToolbarFlexibleSpaceItem,Search)' \
  "TB Size Mode" 1<commit_msg>Changed: simplify Mail app toolbar<commit_after>#!/usr/bin/env zsh

# Add the keyboard shortcut ⌘ + Enter to send an email in Mail.app
defaults write com.apple.mail NSUserKeyEquivalents -dict-add "Send" "@\U21a9"

# Display emails in threaded mode, sorted by date (oldest at the top)
defaults write com.apple.mail DraftsViewerAttributes -dict-add "DisplayInThreadedMode" -string "yes"
defaults write com.apple.mail DraftsViewerAttributes -dict-add "SortedDescending" -string "yes"
defaults write com.apple.mail DraftsViewerAttributes -dict-add "SortOrder" -string "received-date"

defaults write com.apple.mail "NSToolbar Configuration MainWindow" -dict \
  "TB Default Item Identifiers" '("checkNewMail:","showComposeWindow:",NSToolbarSpaceItem,NSToolbarFlexibleSpaceItem,"delete_junk","reply_replyAll_forward",FlaggedStatus,NSToolbarFlexibleSpaceItem,Search)' \
  "TB Display Mode" 2 \
  "TB Icon Size Mode" 1 \
  "TB Is Shown" 1 \
  # here is the interesting item column
  "TB Item Identifiers" '("checkNewMail:",NSToolbarFlexibleSpaceItem,Search)' \
  "TB Size Mode" 1
{'fraction_non_alphanumeric': 0.10638297872340426, 'fraction_numerical': 0.005957446808510639, 'mean_word_length': 6.633116883116883, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2109011', 'n_tokens_mistral': 775, 'n_tokens_neox': 727, 'n_words': 189}