{"id":19430289,"url":"https://github.com/8dcc/plumber","last_synced_at":"2025-07-09T12:08:31.715Z","repository":{"id":198100494,"uuid":"700011358","full_name":"8dcc/plumber","owner":"8dcc","description":"Run different commands depending on the text format","archived":false,"fork":false,"pushed_at":"2025-04-18T08:19:45.000Z","size":62,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-27T19:12:33.000Z","etag":null,"topics":["plan9","plumber","regex","utility"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/8dcc.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-03T19:17:04.000Z","updated_at":"2025-04-18T08:18:51.000Z","dependencies_parsed_at":"2023-11-27T02:27:14.328Z","dependency_job_id":"a9f920bf-bd3b-40d0-bc9e-3bb8b3d6b51d","html_url":"https://github.com/8dcc/plumber","commit_stats":null,"previous_names":["8dcc/plumber"],"tags_count":1,"template":false,"template_full_name":"8dcc/c-template","purl":"pkg:github/8dcc/plumber","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fplumber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fplumber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fplumber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fplumber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/8dcc","download_url":"https://codeload.github.com/8dcc/plumber/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8dcc%2Fplumber/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264455991,"owners_count":23611066,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["plan9","plumber","regex","utility"],"created_at":"2024-11-10T14:24:16.629Z","updated_at":"2025-07-09T12:08:31.689Z","avatar_url":"https://github.com/8dcc.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+TITLE: Plumber\n#+AUTHOR: 8dcc\n#+OPTIONS: toc:2\n#+STARTUP: showeverything\n\n*Run different commands depending on the text format.*\n\nThis program is inspired by the [[https://st.suckless.org/patches/right_click_to_plumb/][right click to plumb]] patch for the [[https://st.suckless.org/][Simple\nTerminal]], and was originally designed to be used with [[https://github.com/8dcc/linux-dotfiles][my build of ST]].\n\nI started using the patch with [[https://surf.suckless.org/][surf]] (lighweight suckless browser) as my plumb\ncommand, but after looking at the [[https://9p.io/wiki/plan9/using_plumbing/index.html][Plan9 plumbing page]], I decided to make my own\npersonal version.\n\n* Building\n\nTo build the program, simply run =make=.\n\n#+begin_src console\n$ git clone https://github.com/8dcc/plumber\n$ cd plumber\n$ make\n...\n#+end_src\n\nYou can also install it with the =install= target.\n\n#+begin_src console\n$ sudo make install\n...\n#+end_src\n\n* Usage\n\nNote that the commands on the right are the default ones but can be changed from\n[[https://github.com/8dcc/plumber/blob/main/src/config.h][src/config.h]].\n\n#+begin_src console\n$ plumber --help\nUsage: plumber [REGEXP]\nExamples:\n    plumber https://example.com  - Open in browser (firefox)\n    plumber file.pdf             - Open in PDF viewer (firefox)\n    plumber cmd(1)               - Open man page (man)\n    plumber image.png            - Open in image viewer (nsxiv)\n    plumber video.mkv            - Open in video player (mpv)\n    plumber file.txt             - Open in text editor (nvim)\n    plumber source.c:13:5        - Open at line and column (nvim)\n#+end_src\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8dcc%2Fplumber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F8dcc%2Fplumber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8dcc%2Fplumber/lists"}