소스 검색

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