diff options
| author | Bobby <[email protected]> | 2022-11-06 02:03:59 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-11-06 02:03:59 -0500 |
| commit | eb1610e6daaadd6792b4b57e372cf7ea237b949a (patch) | |
| tree | a6ee0f4c88a80ced76073dbd409bc1a96cd06064 /src/config | |
| parent | cc117cf27d280843ee724c1cd59003bedb2823b0 (diff) | |
| download | texty-eb1610e6daaadd6792b4b57e372cf7ea237b949a.tar.xz texty-eb1610e6daaadd6792b4b57e372cf7ea237b949a.zip | |
chore: added keybindings
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/defaults.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/config/defaults.py b/src/config/defaults.py index 87bd5fb..557ea61 100644 --- a/src/config/defaults.py +++ b/src/config/defaults.py @@ -1,7 +1,42 @@ PREFERENCES_FILE = "texty.prefs" + DEFAULT_PREFS = { "width": 800, "height": 600, "x_pos": "center", "y_pos": "center", } + +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": f"meta-W", # 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 + "Hide Texty": f"meta-H", # Hide Texty + "Hide Others": f"meta-Shift-H", # Hide Others + "Show All": f"meta-Shift-A", # Show All +} |
