vercel / vercel/hyper

Hyper workflow automation (scripting)

Open
#4,557 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
44.7k
Forks
3.6k
Avg merge
21m
Merged PRs (30d)
1

Description

  • I am on the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate

Feature request

Everyday I get to the office, I open 2 terminal tabs and 2 panes each, 1 tab dedicated to 2 backend services and the other dedicated to 2 frontend tasks.

I think it'd be very cool if I could launch Hyper and just Cmd + P to open "Command Palette" and just fuzzy type "wrk start" and hit Enter on first autocomplete item called "Workflows: Start <workflow_name>"

The workflow would open 2 tabs w/ 2 panes each and run the commands that otherwise I would manually, all in a blink of an eye, and I'm ready-to-go for the day.

Proposal

Hyper would expose simple API to Workflow scripts, example of above scenario:

$ cat ~/.hyper-workflows/<workflow_name>.js
import * as hyper from 'hyper'

const backendPane1 = hyper.createTab({ /* ...opts */ });
const backendPane2 = backendPane1.splitHorizontally();

const frontendPane1 = hyper.createTab({ /* ...opts */ });
const frontendPane2 = frontendPane1.splitHorizontally();

backendPane1.exec('cd ~/Projects/acme/backend && bundle exec rails s');
backendPane2.exec('cd ~/Projects/acme/backend && bundle exec rake jobs:work');

fronendPane1.exec('cd ~/Projects/acme/dashboard && yarn start');
frontendPane2.exec('cd ~/Projects/acme/app && yarn start');

backendPane2.focus();

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No implementation files or tests are named. Start by locating Hyper's Command Palette and tab/pane APIs, then inspect existing extension or plugin entry points; completion would require a named workflow to create tabs and panes, execute commands, focus a pane, and launch from the palette.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, developer-experience
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.