about summary refs log tree commit diff stats
path: root/hm/soispha/conf/lf/keybindings/default.nix
blob: 282b20760ef9b2402350b5ccfe4ef1952b40b53f (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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{nixosConfig, ...}: {
  # 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\"";
  es = "\$ nvim -S \"$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
  "." = "set hidden!";
  DD = "delete";
  p = "paste";
  x = "cut";
  y = "copy";
  "<enter>" = "open";

  mk = "mk_ln";
  mf = "mk_file";
  me = "mk_file_and_edit";
  md = "mk_dir";
  ms = "mk_scr_default";
  mt = "mk_scr_temp";

  ch = "chmod";
  bg = "set_wall_paper";
  o = "open_config";
  r = ":rename; cmd-end";
  H = "go_project_base_directory";
  L = "bottom";
  R = "reload";
  C = "clear";
  U = "unselect";

  # Movement
  gjr = "cd ~/.local/share/Trash/files";
  gus = "cd /run/user/${builtins.toString nixosConfig.users.users.soispha.uid}";

  "gr." = "cd ~/repos";
  grah = "cd ~/repos/auto_hot_key";
  graw = "cd ~/repos/awk";
  grcc = "cd ~/repos/c";
  grcp = "cd ~/repos/cpp";
  grg = "cd ~/repos/go";
  grh = "cd ~/repos/html";
  grja = "cd ~/repos/java";
  grjs = "cd ~/repos/java_script";
  grl = "cd ~/repos/lua";
  grmd = "cd ~/repos/mark_down";
  grni = "cd ~/repos/nix";
  grno = "cd ~/repos/notes";
  grnp = "cd ~/repos/nix/reference/nix/official/nixpkgs";
  grpe = "cd ~/repos/perl";
  grpy = "cd ~/repos/python";
  grr = "cd ~/repos/rust";
  grs = "cd ~/repos/shell";
  grte = "cd ~/repos/tex";
  grty = "cd ~/repos/typst";
  grv = "cd ~/repos/vim";
  grz = "cd ~/repos/zig";
  # -------------
  "gm." = "cd ~/media";
  gmd = "cd ~/media/downloads";
  gmi = "cd ~/media/isos";
  gmm = "cd ~/media/music";
  gmp = "cd ~/media/pictures";
  # -------------
  "gs." = "cd ~/school";
  gsb = "cd ~/school/biologie";
  gsc = "cd ~/school/chemie";
  gsd = "cd ~/school/deutsch";
  gse = "cd ~/school/english";
  gsgo = "cd ~/school/geographie";
  gsgs = "cd ~/school/geschichte";
  gsi = "cd ~/school/infomatik";
  gskr = "cd ~/school/katholische_religion";
  gsl = "cd ~/school/latein";
  gsma = "cd ~/school/mathematik";
  gsmu = "cd ~/school/musik";
  gspi = "cd ~/school/philosophie";
  gspy = "cd ~/school/physik";
  gsso = "cd ~/school/sozialkunde";
  gssp = "cd ~/school/sport";
  # -------------

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

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

  gt = "cd /tmp";
}