diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 01:42:25 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:01 -0300 |
| commit | b3d32656413734952bc918c2d4cfd12fede6c214 (patch) | |
| tree | 04386fab10b9ed803ec31251cb733cc32852390a /src/plumbing | |
| parent | 4a33b8d2bd409d4a06205f28e0eb1b4cdaf49889 (diff) | |
| parent | e6e81a6bc544c5ab5a47c21d85e6868020031abb (diff) | |
| download | pardes-b3d32656413734952bc918c2d4cfd12fede6c214.tar.gz pardes-b3d32656413734952bc918c2d4cfd12fede6c214.zip | |
integration: the diff viewer on general mechanisms, and the plumber's first phase, together
A merge of diff-lib and plumber-1; the changelog keeps both sides' entries; core-test 984/984 on tui, the process suite's tree cases pass (fs-help.txt holds both the rows and the plumb lines in its 45).
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'src/plumbing')
| -rw-r--r-- | src/plumbing | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/plumbing b/src/plumbing new file mode 100644 index 00000000..74c1f306 --- /dev/null +++ b/src/plumbing @@ -0,0 +1,23 @@ +# pardes's plumbing rules, in plumb(6)'s language: a plumbing file of +# your own names this one as `include basic`. A message (plumb/send) is +# matched against the rule sets in order; the first whose patterns all +# hold takes it, and its actions say where it goes: a port pardes reads +# itself (edit: a file or directory opened as Look opens one; web: the +# host's browser; a loaded kind by its name, `image`, `pdf`), another +# port a program reads, or a word or command started. + +# urls go to the web browser (the host's: xdg-open, open on macOS) +type is text +data matches 'https?://.*' +plumb to web + +# existing directories, and existing files at the place written after +# them, go to the editor; a file a kind shows (a picture, a PDF) to +# that kind +type is text +arg isdir $data +plumb to edit + +type is text +arg isfile $data +plumb to edit |
