From 6b035c9991bbc1d56a18d893289b643d29780ed9 Mon Sep 17 00:00:00 2001 From: gotbletu Date: Wed, 29 Oct 2014 20:10:50 -0700 Subject: [PATCH] fzf dmenu2 --- fzf_dmenu.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/fzf_dmenu.md b/fzf_dmenu.md index 8de1c47..c2e7b74 100644 --- a/fzf_dmenu.md +++ b/fzf_dmenu.md @@ -1,4 +1,4 @@ -Notes for video: https://www.youtube.com/watch?v=jeImdUnW4R4 +Notes for video: https://www.youtube.com/watch?v=9qkK3RmPSS4 ## 1. requirements (depends on what u using) @@ -14,7 +14,7 @@ tmux nohup `grep '^Exec' "/usr/share/applications/$selected" | tail -1 | sed 's/^Exec=//' | sed 's/%.//'` >/dev/null 2>&1& } - # hotkey to fun the function (Ctrl+O) + # hotkey to run the function (Ctrl+O) bindkey -s '^O' "fzf-dmenu\n" ## 3. for ~/.bashrc @@ -24,15 +24,12 @@ tmux nohup `grep '^Exec' "/usr/share/applications/$selected" | tail -1 | sed 's/^Exec=//' | sed 's/%.//'` >/dev/null 2>&1& } - # hotkey to fun the function (Ctrl+O) + # hotkey to run the function (Ctrl+O) bind '"\C-O":"fzf-dmenu\n"' ## 4. for ~/.tmux.conf bind-key -n C-Space new-window -n fzf-dmenu -c $HOME \; \ - # run commmand then kill tmux window send-keys 'fzf-dmenu && sleep 1 && tmux kill-window' 'Enter' - # if error then kill tmux window - send-keys 'if [[ $? != 0 ]] ; then tmux kill-window; fi' 'Enter' ## 5. related video https://www.youtube.com/watch?v=hO8vd1y0h6g