-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
51 lines (44 loc) · 1.51 KB
/
config.py
File metadata and controls
51 lines (44 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
"""
Configuration settings for Sequential Paste Clipboard Utility
"""
import re
from enum import Enum
class DelimiterType(Enum):
SENTENCE = "sentence"
LINE = "line"
PARAGRAPH = "paragraph"
# Common abbreviations that should NOT trigger sentence breaks
ABBREVIATIONS = [
'Mr', 'Mrs', 'Ms', 'Dr', 'Prof', 'Sr', 'Jr', 'vs', 'etc', 'i.e', 'e.g',
'Inc', 'Ltd', 'Co', 'Corp', 'St', 'Ave', 'Blvd', 'Rd',
'Jan', 'Feb', 'Mar', 'Apr', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec',
'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun',
'No', 'Vol', 'Rev', 'Ed', 'Fig', 'Ch', 'Sec', 'pp',
]
# Delimiter patterns for splitting text
# Note: SENTENCE uses a function-based approach for abbreviation handling
DELIMITER_PATTERNS = {
DelimiterType.SENTENCE: None, # Handled specially in clipboard_manager
DelimiterType.LINE: r'\n', # Split on newlines
DelimiterType.PARAGRAPH: r'\n\s*\n', # Split on blank lines
}
# Hotkey configurations
HOTKEYS = {
'sequential_paste': 'ctrl+shift+v',
'reset_sequence': 'ctrl+shift+r',
'skip_segment': 'ctrl+shift+n',
'go_back': 'ctrl+shift+b',
}
# Notification settings
NOTIFICATIONS = {
'sound_enabled': True,
'toast_enabled': True,
'show_position': True, # Show "Pasted 2/3" in notification
}
# Application settings
APP_NAME = "Sequential Paste"
APP_VERSION = "2.0.0"
DEFAULT_DELIMITER = DelimiterType.LINE
# Sound frequency for completion beep (Hz)
COMPLETION_SOUND_FREQ = 800
COMPLETION_SOUND_DURATION = 150 # milliseconds