aboutsummaryrefslogtreecommitdiff
path: root/bin/onl.awk
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-05 20:47:45 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-05 20:47:45 +1300
commitf3bf70e6011fa19d3aa8e4f2c86fa725a54e3034 (patch)
tree5506c1705d2deb2a1a618c69f921176a0b21cf89 /bin/onl.awk
parentUse more portable awk stderr write (diff)
downloaddotfiles-f3bf70e6011fa19d3aa8e4f2c86fa725a54e3034.tar.gz
dotfiles-f3bf70e6011fa19d3aa8e4f2c86fa725a54e3034.zip
I didn't know about :cntrl:
Diffstat (limited to 'bin/onl.awk')
-rw-r--r--bin/onl.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/onl.awk b/bin/onl.awk
index 10daafed..466b8451 100644
--- a/bin/onl.awk
+++ b/bin/onl.awk
@@ -3,7 +3,7 @@
# For each line of input ...
{
# Strip out non-printable characters and rebuild the fields
- gsub(/[^[:print:]]+/, "")
+ gsub(/[[:cntrl:]]/, "")
# Print each field, without a newline; add a leading space if it's not the
# very first one
{ color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
Ideas
=====

* A wrapper `ksw(1df)` (kill-switch) that traps `SIGINT` to kill a called
  program or loop immediately, rather than aborting a loop (is this possible?)
* A wrapper `sil(1df)` or `nec(1df)` to turn `stty -echo` off for the duration
  of a paste?
* I can probably share my `psql()` completions/shortcuts after sanitizing them
  a bit
* Wouldn't be too hard to add some HTTP BASIC authentication to `ix(1df)` to
  make pastes manageable
* Have `eds(1df)` accept standard input with the "starting content" for the
  script
* Convert all the manual pages to Mandoc format maybe?
  <https://en.wikipedia.org/wiki/Mandoc>
* `qmp(1df)`--quick man page
* The solution to `chn(1df)` not running in parallel is probably backgrounded
  processes and `mkfifo(1)`.
* Write something like `hcat(1df)` or `tcat(1df)` that includes filename
  headings for each concatenated file.
* I can probably get rid of all that nasty templated shell by writing something
  that wraps around `mktd(1df)` and generates shell script to run, and calls
  that via `eval`.
* Ideally, the AWK and/or sed scripts in the bin and games directories should
  be syntax-checked or linted.  I could at least add some patient application
  of appropriate `gawk --lint` calls for each of the .awk scripts.
* Write a ftplugin for Perl to switch between punctuation variable names and
  English variable names., i.e. \e on `$?` would change to `$CHILD_ERROR`, and
  vice-versa.
* Almost definitely going to want to try a runparts layout for Git hooks at
  some point
* I'd like a Git hook that pre-fills out "Version X.Y.Z" if making an annotated
  tag named `vX.Y.Z`.
* There's no reason to limit `digraph_search.vim` to insert mode only
* fortune.vim can be spun out into its own repository
* put\_date.vim can be spun out into its own repository