blob: 3d9784f05b28cb1f8fbfe15d0640ca9937cafc7d (
plain)
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
|
use clap::Parser;
#[derive(Parser, Debug)]
#[clap(author, version, about)]
/// FM : dired like file manager{n}
/// Default key bindings:{n}
///{n}
/// q: quit{n}
/// h: help{n}
///{n}
/// - Navigation -{n}
/// ←: cd to parent directory{n}
/// →: cd to child directory{n}
/// ↑: one line up {n}
/// ↓: one line down{n}
/// Home: go to first line{n}
/// End: go to last line{n}
/// PgUp: 10 lines up{n}
/// PgDown: 10 lines down{n}
///{n}
/// a: toggle hidden{n}
/// s: shell in current directory{n}
/// o: xdg-open this file{n}
/// i: open with current NVIM session{n}
///{n}
/// - Action on flagged files -{n}
/// space: toggle flag on a file{n}
/// *: flag all{n}
/// u: clear flags{n}
/// v: reverse flags{n}
/// c: copy to current dir{n}
/// p: move to current dir{n}
/// x: delete flagged files{n}
///{n}
/// - MODES -{n}
/// m: CHMOD{n}
/// e: EXEC{n}
/// d: NEWDIR{n}
/// n: NEWFILE{n}
/// r: RENAME{n}
/// g: GOTO{n}
/// w: REGEXMATCH{n}
/// j: JUMP{n}
/// O: SORT{n}
/// H: HISTORY{n}
/// Enter: Execute mode then NORMAL{n}
/// Esc: NORMAL{n}
pub struct Args {
/// Starting path
#[arg(short, long, default_value_t = String::from("."))]
pub path: String,
/// Display all files
#[arg(short, long, default_value_t = false)]
pub all: bool,
/// Nvim server
#[arg(short, long, default_value_t = String::from(""))]
pub server: String,
}
|