Implementation of the "open" command that uses Syndicate and PCRE pattern matching to open URIs.
Go to file
Emery Hemingway a959565fb5 New protocol and configuration from Tony
The uri_matcher now makes a proper relay over stdio to the
dataspace shared with xdg_open.

Fix ehmry/xdg_open_ng#3
2022-03-18 19:31:48 -05:00
src New protocol and configuration from Tony 2022-03-18 19:31:48 -05:00
.gitignore Initial commit 2022-03-17 14:30:41 -05:00
README.md New protocol and configuration from Tony 2022-03-18 19:31:48 -05:00
protocol.prs New protocol and configuration from Tony 2022-03-18 19:31:48 -05:00
uri_runner.pr New protocol and configuration from Tony 2022-03-18 19:31:48 -05:00
xdg_open_ng.nimble New protocol and configuration from Tony 2022-03-18 19:31:48 -05:00

README.md

xdg-open-ng

An xdg-open replacement that uses Syndicate and PCRE pattern matching to open URIs.

There are two utilites, uri_runner and xdg-open; both expect to be able to connect to a shared Syndicate dataspace via a UNIX socket at $SYNDICATE_SOCK otherwise $XDG_RUNTIME_DIR/dataspace. The xdg-open component has no other configuration. The uri_runner component is intended to be managed by the Syndicate server thru which it receives configuration, see uri_runner.pr as an example.

The protocol.nim file is generated from the protocol.prs schema, a Tupfile file is provided to do this.

TODO

  • Pattern back-references in commands
  • Fallback commands?