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
pub static CONFIG_PATH: &str = "~/.config/fm/config.yaml";
pub static DEFAULT_TERMINAL_APPLICATION: &str = "st";
pub static LOG_PATH: &str = "~/.config/fm/fm{}";
pub static MARKS_FILEPATH: &str = "~/.config/fm/marks.cfg";
pub static TMP_FOLDER_PATH: &str = "/tmp";
pub static DEFAULT_AUDIO_OPENER: (&str, bool) = ("mocp", true);
pub static DEFAULT_IMAGE_OPENER: (&str, bool) = ("viewnior", false);
pub static DEFAULT_OFFICE_OPENER: (&str, bool) = ("libreoffice", false);
pub static DEFAULT_READABLE_OPENER: (&str, bool) = ("zathura", false);
pub static DEFAULT_TEXT_OPENER: (&str, bool) = ("nvim", true);
pub static DEFAULT_OPENER: (&str, bool) = ("xdg-open", false);
pub static DEFAULT_VECTORIAL_OPENER: (&str, bool) = ("inkscape", false);
pub static DEFAULT_VIDEO_OPENER: (&str, bool) = ("mpv", false);
pub static OPENER_PATH: &str = "~/.config/fm/opener.yaml";
pub static DEFAULT_DRAGNDROP: &str = "dragon-drop";
pub static PERMISSIONS_STR: [&str; 8] = ["---", "--x", "-w-", "-wx", "r--", "r-x", "rw-", "rwx"];
pub static HELP_FIRST_SENTENCE: &str = "fm: a dired / ranger like file manager. ";
pub static HELP_SECOND_SENTENCE: &str = "Keybindings";
pub static NVIM_RPC_SENDER: &str = "nvim-send";
pub static FILTER_PRESENTATION: &str =
"By name: n expr, by ext: e expr, only directories: d, reset: a";
pub static HARDCODED_SHORTCUTS: [&str; 9] = [
"/",
"/dev",
"/etc",
"/media",
"/mnt",
"/opt",
"/run/media",
"/tmp",
"/usr",
];
pub static TRASH_FOLDER_FILES: &str = "~/.local/share/Trash/files";
pub static TRASH_FOLDER_INFO: &str = "~/.local/share/Trash/info";