dot

packages and services management
Log | Files | Refs | README

commit 908947e9d1453189ed2108ec44e9876815860f29
parent 83065c537ac7e070a61376d731b47d3f18ca1c73
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun, 16 Apr 2017 15:42:42 +0200

fixed tabs, I was doing silly things!

Diffstat:
M.xinitrc | 2+-
Mbin/io-grep | 9++++++++-
Mbin/madown | 22+++++++---------------
3 files changed, 16 insertions(+), 17 deletions(-)

diff --git a/.xinitrc b/.xinitrc @@ -1,6 +1,6 @@ #!/bin/sh -setxkbmap us -option compose:lalt +setxkbmap us -option compose:ralt xset +fp "$CONFIG/fonts" while xsetroot -name "$(status)" diff --git a/bin/io-grep b/bin/io-grep @@ -1 +1,8 @@ -find "$HOME" -type d | iomenu -p path | xargs grep -rw +# interactively search string in code + +find "$HOME" -type d | iomenu -p path | +xargs -I % find % -type f ! -path '*/.git/*' | +xargs awk ' + BEGIN { printf("# %s\n", FILENAME); } + { printf("%7s\t%s\n", FNR, $0); } +' | iomenu -s -h diff --git a/bin/madown b/bin/madown @@ -5,8 +5,7 @@ BEGIN { } -# --- head --------------------------------------------------------------------- - +# document head head == 1 && /^[\t ]*$/ { head = 0; @@ -25,8 +24,7 @@ head == 1 { } -# --- h2 - headings ------------------------------------------------------------ - +# h2 - headings !tag && /\n_+$/ { sub(/\n_+_/, ""); @@ -34,8 +32,7 @@ head == 1 { } -# --- h3 - subheadings --------------------------------------------------------- - +# h3 - subheadings !tag && /^\| / { sub(/^\| /, ""); @@ -43,9 +40,7 @@ head == 1 { } -# --- div - tags --------------------------------------------------------------- - - +# div - tags !tag && /^\{.*\}$/ { sub(/^\{ */, ""); sub(/ *\}$/, ""); @@ -53,8 +48,7 @@ head == 1 { } -# --- ul - unordered lists ----------------------------------------------------- - +# ul - unordered lists !tag && /^- / && previous != "li" { print "<ul>"; @@ -70,16 +64,14 @@ tag != "li" && previous == "li" { } -# --- p - paragraphs ----------------------------------------------------------- - +# p - paragraphs !tag { tag = "p"; } -# ------------------------------------------------------------------------------ - +# inline markup { # strip remaining newlines