Pārlūkot izejas kodu

Re-implement run_hist with new bmo superpowers

The 'history' mode allows incrementally creating item list by typing
items directly to dmenu.

Also, stderr and stdout are now kept automatically for all menus.
Alois Mahdal 6 gadus atpakaļ
vecāks
revīzija
4965c76990
1 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  1. 2
    3
      dotfiles/config/bmo/menu.ini

+ 2
- 3
dotfiles/config/bmo/menu.ini Parādīt failu

@@ -1,6 +1,5 @@
1 1
 [menu._default_]
2 2
 
3
-    name        = status
4 3
     selector    = bmo dmenu
5 4
 
6 5
 [menu.def.uris]
@@ -48,8 +47,8 @@
48 47
 
49 48
 [menu.def.run_hist]
50 49
 
51
-    generator   = tac .local/share/bmo/menu/run_hist.history | awk '!seen[$0]++'
52
-    consumer    = tee -a .local/share/bmo/menu/run_hist.history | sed 's/$/ \&/' | sh - >> .local/share/bmo/menu/run_hist.out 2>&1
50
+    mode = history
51
+    consumer = sed 's/$/ \&/' | sh -
53 52
 
54 53
 [menu.def.browsers]
55 54