avibrazil / RDM

Easily set Mac Retina display to higher unsupported resolutions
4.12k stars 353 forks source link

Refresh status menu on display configuration change #15

Open usr-sse2 opened 6 years ago

usr-sse2 commented 6 years ago

Refresh status menu when a display is connected, disconnected or its resolution is changed through System Preferences

seanpoulter commented 6 years ago

@avibrazil, can I help you merge this PR?

briansoule commented 6 years ago

Bump^

avibrazil commented 6 years ago

@seanpoulter yes, I'm not very proficient with Git. Can you help me please with the commands to integrate this ?

seanpoulter commented 6 years ago

Sure can @avibrazil! There's two ways to go about this: you can hit the green button to merge the changes or go through the steps to "tag" the current version of code as v2.2, merge the changes, and maybe create a new release.

If you're doing it the long way you'll want to:

  1. Tag the current code as version 2.2
  2. Merge these changes
  3. Update your copy of the code so you can build it
  4. Tag the new merged code as a new version

Tagging the current code as version 2.2

You can create a new tag on GitHub from the Releases page. You'll likely see something like this:

image

If you hit the "Create a new release" button you'll be prompted to create a new "tag" which points to a specific commit in the repository. You can fill it in as the current version, v2.2.0, and hit the big green button the publish the release.

image

This will create the first release of the code so everyone knows it's v2.2. Here's a few screenshots from me doing the same thing to one of my repositories on GitHub:

image

You'll see it also created a new tag which is really just a pointer to a specific commit:

image

That's it. There's a release for v2.2. 🎉

Merging

To merge the changes, you'll want to scroll down a bit on this pull request. It's your repository, so unless you add a collaborator you're the only one who will see the button like this:

image

For other folks like Brian and I, we don't have the ability to merge in these changes:

image

If you hit that big merge button, the 1 commit that was suggested will be merged into the master branch of this repository 🎉. I'm getting that info from the top of the page:

image

Updating your local copy of the code

Once the code has been merged on GitHub, you'll probably want to go get a copy of the latest changes by fetching the changes from the repository on GitHub and checking out the latest commit. You've probably already configured this repository as your "origin" repository, so if you were doing it the long way you'd run:

git fetch origin master
git checkout origin/master

We do that really often though, so there's a combined operation for the "fetch" and "checkout" -- the "pull":

git pull origin master

Creating a new release

The open-ended question for you is, when do you want to increment the version number? Who should add the release notes to the change log and text in the "About RDM" menu? 🤔

My two cents is: build a community of folks who contribute to the repository and address the list of open issues. It's always hard to find time to juggle these things solo. I'm sure @briansoule or I can find a few minutes to help update the changelog and prep v2.3 with you. 👍

References

For a general overview of working with git and GitHub I'd have a look at these two video series:

If you've got any questions, send me an email and I'll be happy to help.


Good luck and don't be shy if you've got any questions! Thanks for getting RDM together. It's made my dev experience much more enjoyable these last few weeks.

MiracleBlue commented 5 years ago

Wow, that was one of the best github comments I think I've ever read. I just wanted to say that I think it was very kind of you to write that out, @seanpoulter. Moments like these really remind me why Open Source is so great.

purrloftruth commented 5 years ago

Hi @avibrazil,

I think it would be great if you would give @briansoule and @seanpoulter write access to the repository, as it's been something like 9 months since the instructions on how to proceed were provided and the community is still waiting for this change to land almost a year and a half after the code was written. I'm hoping that, even now, they'll still be interested in potentially helping maintain this software into the future.

Thanks for your consideration and the work you've put in up til now!

ntessore commented 5 years ago

This helps a lot when on a MacBook that gets connected/disconnected to external displays a lot. It would be great if this was merged.

usr-sse2 commented 5 years ago

@ntessore, newer and more functional version of RDM is here: https://github.com/usr-sse2/RDM/releases

yashLadha commented 5 years ago

Hey any updates @seanpoulter . Would love to have this feature in RDM. 👍

seanpoulter commented 4 years ago

Hey any updates @seanpoulter . Would love to have this feature in RDM. 👍

I haven't heard anything from @avibrazil, @yashLadha. Looks like @usr-sse2's made a clone.