vercel / vercel/hyper

Add cwd to redux state

Open
#1,357 8 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Should be added to the current session PID session.session[pid].cwd. There is already some code in place for getting the cwd from hterm. For example the path in hyper's title.

Would allow plugins like https://github.com/hharnisc/hypercwd to not execute a command, which will be faster.
Will also allow for cross platform consistency (hypercwd doesn't run on windows).

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

Start by tracing the Redux session state around session.session[pid] and the existing hterm code that obtains cwd for Hyper's title. The change is done when cwd is populated in that state and plugins can read it without executing a command, including on Windows; verify the existing title behavior remains consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.