mitranim / mitranim/gow

Mac: reload from the same window that started the process, if possible

Open
#39 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
906
Forks
29
PR merge metrics
No merged PRs in 30d

Description

Hi, I have the following scenario:

  • monitor 1 (M1) running VSCode
  • monitor 2 (M2) running zsh, where I call gow run .

Desired behaviour:
First time the app is loaded on M2, then when I change the focus to M1 and update the code, gow will reload the app in M2.

Current behaviour:
First time the app is loaded on M2, then when I change the focus to M1 and update the code, gow will reload the app in M1

The reason why I want this is to be able to keep editing the code in VSCode in full screen and watch the changes at the same time.
Currently it switches to the app on reload and moves away from VSCode. So I have to switch back at each save.

I don't know if it's possible, maybe it's a Mac behaviour. But checking anyway.

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

Reproduce the reported setup with VSCode on monitor 1, zsh running gow run . on monitor 2, and a code change while focus is on monitor 1. Trace the reload behavior from the gow run . entry point and determine whether macOS permits reloading in the originating window; done means reloads stay on monitor 2 without moving focus from VSCode.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, macos, zsh
Domain
cli, desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.