瀏覽代碼

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 年之前
父節點
當前提交
4965c76990
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2
    3
      dotfiles/config/bmo/menu.ini

+ 2
- 3
dotfiles/config/bmo/menu.ini 查看文件

@@ -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