Socialify

Folder ..

Viewing defaults.py
45 lines (42 loc) • 1.4 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
PREFERENCES_FILE = "texty.prefs"

DEFAULT_PREFS = {
    "width": 800,
    "height": 600,
    "x_pos": "center",
    "y_pos": "center",
    "theme": "system",
}

KEYBINDS = {
    "New Text File": f"meta-N",  # New Text File
    "New Window": f"meta-Shift-N",  # New Window
    "New Tab": f"meta-T",  # New Tab
    "Open File": f"meta-O",  # Open File
    "Save": f"meta-S",  # Save
    "Save As": f"meta-Shift-S",  # Save As
    "Close Tab": f"meta-W",  # Close Tab
    "Close": f"Alt-F4",  # Close
    "Quit": f"meta-Q",  # Quit
    "Undo": f"meta-Z",  # Undo
    "Redo": f"meta-Shift-Z",  # Redo
    "Cut": f"meta-X",  # Cut
    "Copy": f"meta-C",  # Copy
    "Paste": f"meta-V",  # Paste
    "Paste and Match Style": f"meta-Shift-V",  # Paste and Match Style
    "Select All": f"meta-A",  # Select All
    "Find": f"meta-F",  # Find
    "Find Next": f"meta-G",  # Find Next
    "Find Previous": f"meta-Shift-G",  # Find Previous
    "Replace": f"meta-R",  # Replace
    "Go To Line": f"meta-L",  # Go To Line
    "Word Wrap": f"meta-Shift-W",  # Word Wrap
    "Print Preview": f"meta-Shift-P",  # Print Preview
    "Print": f"meta-P",  # Print
    "Maximize": f"meta-M",  # Maximize
}

MAC_KEYBINDS = {
    "Preferences": f"meta-,",  # Preferences
    "Close Window": f"meta-Shift-W",  # Close Window
    "Hide Texty": f"meta-H",  # Hide Texty
    "Hide Others": f"meta-Shift-H",  # Hide Others
    "Show All": f"meta-Shift-A",  # Show All
}