riazj.com

source code for this website
git clone https://riazj.com/git/riazj.com
Log | Files | Refs | LICENSE

commit 2f2e2ec3378399224ee3f5e3a3997bb4860957d7
parent 6ae3fbab32bcd3d38ea52ec9250f11718bffbd64
Author: Riaz <riaz@riazj.com>
Date:   Tue, 22 Jul 2025 15:28:20 -0700

Use HTML entity for literal tab

Diffstat:
Marticles/dictionaries.html | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/articles/dictionaries.html b/articles/dictionaries.html @@ -17,13 +17,14 @@ <pre> cd ~/.local/state cp /usr/share/dictd/wn.index . -sed "s/ .*//g" wn.index | sort -n &gt; wn.tmp &amp;& mv wn.tmp wn.index +sed "s/&#9;.*//g" wn.index | sort -n &gt; wn.tmp &amp;& mv wn.tmp wn.index </pre> +<p>Note that in the sed command above, there is a tab, but your browser might show a space. If you copy it to your clipboard, it should work regardless.</p> <p>To use this with sxhkd:</p> <pre> alt + shift + d - dict "$(dmenu -i -l 10 &lt; $XDG_STATE_HOME/wn.index)" &gt; $XDG_RUNTIME_DIR/dmenu_dict; \ - st less -+F -c $XDG_RUNTIME_DIR/dmenu_dict + dict "$(dmenu -i -l 10 &lt; $XDG_STATE_HOME/wn.index)" &gt; $XDG_RUNTIME_DIR/dmenu_dict; \ + st less -+F -c $XDG_RUNTIME_DIR/dmenu_dict </pre> <p>I no longer use the following hacky setup with GCIDE. Its custom markup sucks.</p> <pre>