-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
83 lines (78 loc) · 2.14 KB
/
config.py
File metadata and controls
83 lines (78 loc) · 2.14 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Colors and theme
top_bar_bg_c = "#3E3833"
top_bar_fg_c = "white"
content_bg_c = "#211e1b"
content_fg_c = "white"
content_btns_bg_c = "#2E2A26"
content_btns_fg_c = "white"
# Fonts and sizes
bar_font = ("Segoe UI", 10, "bold")
TITLE_BAR_HEIGHT = 36
# Command metadata
short_to_long = {
"eko": "Echo",
"pd": "Parent Directory",
"ed": "Enter Directory",
"cmds": "List Commands",
"cmd": "Command Help",
"mkd": "Make Directory",
"cpy": "Copy",
"ct": "Cut",
"pst": "Paste",
"ren": "Rename",
"cl": "Clear",
"ptd": "Print This Directory",
"del": "Delete",
"mrk": "Mark Bookmark",
"gtmrk": "Go To Mark",
"delmrk": "Delete Mark",
"cgmrk": "Change Mark Order",
"imp": "Import"
}
command_descriptions = {
"eko": "Prints the following text.",
"pd": "Enters the parent directory.",
"ed": "Enters a direct child directory.",
"cmds": "Lists all commands.",
"cmd": "Shows description of a command.",
"mkd": "Creates an empty directory.",
"cpy": "Copies a directory.",
"ct": "Cuts a directory (move on paste).",
"pst": "Pastes clipboard next to reference.",
"ren": "Renames an item.",
"cl": "Clears output.",
"ptd": "Prints current directory contents.",
"del": "Deletes an item.",
"mrk": "Bookmarks current directory (optional name).",
"gtmrk": "Navigates to bookmark.",
"delmrk": "Deletes bookmark.",
"cgmrk": "Reorders bookmark.",
"imp": "Imports a library."
}
file_extension_icons = {
".py": "python.png",
".js": "javascript.png",
".ts": "typescript.png",
".html": "html.png",
".css": "css.png",
".json": "json.png",
".txt": "text.png",
".md": "markdown.png", # I'm here
".pdf": "pdf.jpeg",
".doc": "word.jpeg",
".docx": "word.jpeg",
".xls": "excel.jpeg",
".xlsx": "excel.jpeg",
".jpg": "image.jpeg",
".jpeg": "image.jpeg",
".png": "image.jpeg",
".gif": "image.jpeg",
".svg": "image.jpeg",
".mp4": "video.jpeg",
".mov": "video.jpeg",
".mp3": "audio.jpeg",
".wav": "audio.jpeg",
".zip": "archive.jpeg",
".rar": "archive.jpeg",
".exe": "executable.jpeg",
}