Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Plumbing stuff.

  • Loading branch information...
commit 9149115cc647e782d9506b24cdfb0ed083454c0b 1 parent 58dba6d
Jesper Louis Andersen authored

Showing 4 changed files with 22 additions and 7 deletions. Show diff stats Hide diff stats

  1. +4 0 README.md
  2. +1 1  bin/a+
  3. +1 1  bin/a-
  4. +16 5 lib/plumbing
4 README.md
Source Rendered
@@ -4,6 +4,10 @@ This repository contains some configuration I did for Plan9 from user space. A q
4 4 is in here is:
5 5
6 6 * The `gg` command, which is a shorthand `git grep -n` helper for use with acme
  7 +* The `a+` and `a-` commands which does indentation.
  8 +* The `nocr` command which kills CR
  9 +* The `q` command which quotes a selection
  10 +* ...
7 11
8 12 Furthermore plumbing rules for:
9 13
2  bin/a+
... ... @@ -1,5 +1,5 @@
1 1 #!/usr/bin/env rc
2 2 if(~ $#* 0){
3   - * = ' ' # tab
  3 + * = ' ' # tab
4 4 }
5 5 9 sed 's☺^☺'^$1^☺
2  bin/a-
... ... @@ -1,5 +1,5 @@
1 1 #!/usr/bin/env rc
2 2 if(~ $#* 0){
3   - * = ' '
  3 + * = ' '
4 4 }
5 5 9 sed 's☺^'^$1^'☺☺'
21 lib/plumbing
@@ -2,14 +2,25 @@
2 2
3 3 editor = acme
4 4
5   -# existing files, possibly tagged by line number, go to editor
  5 +# Ocaml error messages
6 6 type is text
7   -data matches 'File "([.a-zA-Z¡-￿0-9_/\-]*[a-zA-Z¡-￿0-9_/\-])", line ([0-9]+)?'
8   -arg isfile $1
9   -data set $file
10   -attr add addr=$2
  7 +data matches 'File "([.a-zA-Z¡-<U+FFFF>0-9_/\-]*[a-zA-Z¡-<U+FFFF>0-9_/\-])", line ([0-9]+)?'
  8 +arg isfile $1
  9 +data set $file
  10 +attr add addr=$2
11 11 plumb to edit
12 12 plumb client $editor
13 13
  14 +# Trac tickets
  15 +type is text
  16 +data matches 'Trac #([0-9]+)'
  17 +plumb to web
  18 +plumb start web http://trac.tissuu.com:8000/trac/ticket/$1
  19 +
  20 +type is text
  21 +data matches 'Trac #R([0-9]+)'
  22 +plumb to web
  23 +plumb start web http://trac.tissuu.com:8000/trac/report/$1
  24 +
14 25 include basic
15 26

0 comments on commit 9149115

Please sign in to comment.
Something went wrong with that request. Please try again.