Преглед изворни кода

Add gowork and related menus

Alois Mahdal пре 10 месеци
родитељ
комит
fc8dc8c299
2 измењених фајлова са 14 додато и 0 уклоњено
  1. 12
    0
      dotfiles/config/bmo/menu.ini
  2. 2
    0
      dotfiles/config/i3/config

+ 12
- 0
dotfiles/config/bmo/menu.ini Прегледај датотеку

@@ -73,3 +73,15 @@
73 73
 [menu.def.windows]
74 74
     generator = ~/.i3/bin/i3-lswin
75 75
     consumer = ~/.i3/bin/i3-focuswin
76
+
77
+[menu.def.go_vcs]
78
+    mode = command+history
79
+    histsize = 20
80
+    generator = find -L ~/vcs.brani ~/vcs.mystream ~/vcs.vinfra ~/vcs.jats ~/st/vcs.private -maxdepth 2 -type d | grep -Eo '\<(st/)?vcs[.][^/]+/[^/]+' | sort | uniq
81
+    consumer = cd $(cat) && twinner bash
82
+
83
+[menu.def.gowork_focused]
84
+    mode = command+history
85
+    selector_args = -p "nvim "
86
+    generator = gowork -f
87
+    consumer = gowork -o

+ 2
- 0
dotfiles/config/i3/config Прегледај датотеку

@@ -372,6 +372,8 @@ bindsym $mod+Shift+Return   exec "xfce4-terminal"
372 372
 bindsym $mod+End            exec "$spn bmo menu tikrs"
373 373
 bindsym $mod+Home           exec "$spn bmo menu home"
374 374
 bindsym $mod+Shift+Home     exec "thunar"
375
+bindsym $mod+minus          exec "$spn bmo menu go_vcs"
376
+bindsym $mod+equal          exec "$spn pybmo menu gowork_focused"
375 377
 bindsym $mod+p              exec "$spn bmo menu run"
376 378
 bindsym $mod+Shift+p        exec "$spn bmo menu run_hist"
377 379
 bindsym $mod+o              exec "xclock"