Remove blank lines from the suggestions
My Neovim configuration always adds a blank line to the end of a file that I don't want to be included in my suggestions. Using `grep "\S"` was working in a Terminal but this broke when adding it to my dwm configuration. This approach works in dwm when triggered with the keyboard shortcut.
This commit is contained in:
parent
f893caefac
commit
60152f2e92
|
@ -118,7 +118,7 @@ with lib;
|
|||
{ MODKEY|ShiftMask, XK_q, quit, {0} },
|
||||
{ MODKEY|ShiftMask, XK_b, spawn, SHCMD("${pkgs.firefox}/bin/firefox") },
|
||||
{ MODKEY|ShiftMask, XK_f, spawn, SHCMD("${pkgs.xfce.thunar}/bin/thunar") },
|
||||
{ MODKEY|ShiftMask, XK_i, spawn, SHCMD("${pkgs.xdotool}/bin/xdotool type $(grep -v '^#' ~/snippets.txt | grep "\S" | sort | dmenu -i -l 50 | cut -d' ' -f1)") },
|
||||
{ MODKEY|ShiftMask, XK_i, spawn, SHCMD("${pkgs.xdotool}/bin/xdotool type $(cat ~/snippets.txt | grep -v '^#' | grep -v '^$' | sort | dmenu -i -l 50 | cut -d' ' -f1)") },
|
||||
{ MODKEY|ShiftMask, XK_s, spawn, SHCMD("${pkgs.flameshot}/bin/flameshot gui") },
|
||||
{ MODKEY|ShiftMask, XK_y, spawn, SHCMD("${pkgs.copyq}/bin/copyq toggle") },
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue