diff --git a/.config/helix/config.toml b/.config/helix/config.toml index d4880eca..eabc1e85 100644 --- a/.config/helix/config.toml +++ b/.config/helix/config.toml @@ -161,9 +161,8 @@ space = [ ':set mouse true', ] -m = ''' -@:sh cat % -''' +# insert markdown toc :) +m = {t = {o = {c = '@:insert-output cat % | markdown-toc --bullets - --no-firsth1 -'}}} p = ''' :append-output clipcat-menu --finder custom --custom-finder-program-path fuzzel --custom-finder-arguments=--dmenu,--placeholder=Clipboard --config <(printf "[log]\nemit_stdout = true\n") | grep -q 'Nothing is selected' && exit 1 || wl-paste'''