about summary refs log tree commit diff stats
path: root/home-manager/config/lf/keybindings/default.nix
blob: bc2178cfe1deffa2adfb58bad6606da5a2257cfb (plain) (blame)
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{config, ...}: {
  # Remove some defaults
  m = null;
  "\"'\"" = null;
  "'\"'" = null;
  d = null;
  c = null;
  e = null;
  j = null;
  k = null;
  l = null;
  ";" = null;

  # File Openers
  ee = "\$\$EDITOR \"$f\"";
  u = "%\$IVIEWER \"$f\"";
  cc = "\$sudo -e \"$f\"";

  # Archive Mappings
  au = "unarchive";
  aa = "archive";

  # Trash Mappings
  dd = "trash";
  jc = "clear_trash";
  jr = "restore_trash";

  # Broot Mapping
  f = "fzf_jump";

  # Dragon Mapping
  dr = "dragon";
  ds = "dragon-stay";
  di = "dragon-individual";
  #dm = "mvdragon";
  #dc = "cpdragon";
  dl = "dlfile";

  cs = "stripspace";

  # Vim keys
  h = "updir";
  t = "down";
  n = "up";
  s = "open";

  # Basic Functions
  bn = "help";
  kk = "mk_ln";
  "." = "set hidden!";
  DD = "delete";
  p = "paste";
  x = "cut";
  y = "copy";
  "<enter>" = "open";
  mf = "mk_file";
  md = "mk_dir";
  ms = "mk_scr";
  ch = "chmod";
  bg = "set_wall_paper";
  o = "open_config";
  br = "\$vimv \$fx"; # TODO what is this command?
  r = "rename";
  H = "top";
  L = "bottom";
  R = "reload";
  C = "clear";
  U = "unselect";

  # Movement
  gjr = "cd ~/.local/share/Trash/files";
  gus = "cd /run/${config.home.username}";

  "gr." = "cd ~/repos";
  grr = "cd ~/repos/rust";
  grp = "cd ~/repos/python";
  grc = "cd ~/repos/c";
  gra = "cd ~/repos/auto_hot_key";
  grn = "cd ~/repos/nix";
  grt = "cd ~/repos/tex";
  grs = "cd ~/repos/shell";
  grpe = "cd ~/repos/perl";
  grja = "cd ~/repos/java";
  grjs = "cd ~/repos/java_script";
  # -------------
  "gm." = "cd ~/media";
  gmpi = "cd ~/media/pictures";
  gmd = "cd ~/media/downloads";
  gmm = "cd ~/media/music";
  gmi = "cd ~/media/isos";
  # -------------
  "gs." = "cd ~/school";
  gsgs = "cd ~/school/geschichte";
  gsch = "cd ~/school/chemie";
  gsen = "cd ~/school/english";
  gsgo = "cd ~/school/geographie";
  gsin = "cd ~/school/infomatik";
  gsso = "cd ~/school/sozialkunde";
  gskr = "cd ~/school/katholische_religion";
  gsmu = "cd ~/school/musik";
  gsla = "cd ~/school/latein";
  gsde = "cd ~/school/deutsch";
  gsma = "cd ~/school/mathematik";
  gsbi = "cd ~/school/biologie";
  gssp = "cd ~/school/sport";
  gsphy = "cd ~/school/physik";
  gsphi = "cd ~/school/philosophie";

  gc = "cd ~/.config";
  gl = "cd ~/.local";
  gE = "cd /etc";

  "gU." = "cd /usr";
  gUs = " cd /usr/share";

  gt = "cd /tmp";
}