jerone / UserScripts

🐵 My UserScripts
https://github.com/jerone/UserScripts#readme
GNU General Public License v3.0
339 stars 39 forks source link

(Github Comment Enhancer) Integrate into GitHubs new own buttons #98

Closed rugk closed 8 years ago

rugk commented 8 years ago

You probably already read it: GitHub enhanced it's Markdown commenting system

With your userscript we now have duplicated buttons with the same function, so this is not really good. So you might want to adjust your userscript to fit to the new GitHub update.

jerone commented 8 years ago

Thanks for the heads-up. This requires a complete overhaul of GCE. Not sure what I'm going to do next...

Do you think the new toolbar is sufficient or do you miss something that GCE provides?

rugk commented 8 years ago

What's still missing by default in GitHubs buttons is:

And you cannot use GitHubs new toolbar when editing a wiki site.

jerone commented 8 years ago

Thank you for your input!

For me the missing features I use are:

thomaslevesque commented 8 years ago

The feature I miss from Github's toolbar is the keyboard shortcuts. Only a few commands have shortcuts:

PhiLhoSoft commented 8 years ago

Actually, I would just disable entirely GitHub's toolbar and rely only on the one your create... :grin: If it is in the power of GM.

A major annoyance with the new feature is conflicting key shortcuts: when I use Ctrl+K (the most common for me), eg. around 'with', I get

[`with` ](url)

which is a pain... At least, Undo (Ctrl+Z) leaves only the wanted code markup...

jerone commented 8 years ago

I'm kind of leaning towards separating the reply feature out of GCE and making that a separate userscript. That part still works and can work with GitHub's new toolbar.

For making GCE working again I'm still not sure what do yet...

  1. I can extend GitHub's toolbar with the missing features.
  2. I can replace GitHub's toolbar with GCE features.
  3. Remove GitHub's toolbar and keep things as is.

Option 2 & 3 relatively aren't very much work. Option 1 is probably more work. Then there's the choice to follow GitHub's new buttons design or not...

rugk commented 8 years ago

Now the buttons really look broken: brokenlayout

jerone commented 8 years ago

Even the reply button isn't working anymore :(

jerone commented 8 years ago

Looks like they moved away from glyph fonts and are using SVG now for all icons.

joeytwiddle commented 8 years ago

I don't know why they didn't just install your userscript on their site! :heart:

Trubbel commented 8 years ago

First of all, thank you for making my (and everyone else) life easier with this userscript. Have been using it for quite some time now.

Anyway, me personally would prefer option 3, as that's the one I'm (we?) most used to. It also looks generally better with the buttons above the textare rather than in the tabs.

mikhoul commented 8 years ago

I would go with option #2 since bypassing Github toolbar will resolve the issue for a long time.

http://i.imgur.com/0vXIbUh.png

rugk commented 8 years ago

I think the new GitHub toolbar looks quite good and it saves space. And as only a few features are missing in this new toolbar I'm fine with options 1 or 2.

jerone commented 8 years ago

Just a heads-up to all; I'm slowly working on option 3.

jerone commented 8 years ago

I've put a PR online for following the current progress. If people want to test they can download the raw version of the userscript. I'm going to test it a little more before merging the PR.

rinopo commented 8 years ago

Hi, Thanks a lot for the great userscript!

The version 2.8.3 seems to wipe other add-on's functionality which tries to add buttons to GitHub's native toolbar.

"GitHub Canned Responses" is an example of such add-on.

jerone commented 8 years ago

@rinopo Supporting other addons isn't on the roadmap for this release. Please open another issue so I can have a look at it later.

rinopo commented 8 years ago

Thanks for the reply. Point taken.

PhiLhoSoft commented 8 years ago

Looks fine! I am happy to see this fine script to work again! :smiley: I see you now use the new SVG icons (octicon) of GitHub... :grinning: Code fences?

<div ng-if="loggedIn" class="content-container">
    <div ui-view="leftPanel"  class="side-panel left"  role="region"></div>
    <div ui-view              class="page-content"     role="region"></div>
    <div ui-view="rightPanel" class="side-panel right" role="region"></div>
</div>

Yup, OK too. Can't tell it is a thorough test, but keyboard shortcuts and toolbar icons work fine. Thanks for your work.

jerone commented 8 years ago

I released the new version of GCE aldo I'm noticing that GitHub is still making changes to the website.

Trubbel commented 8 years ago

@jerone Thank you so much!

rugk commented 8 years ago

Nice, but I'm also in favour of separating the "reply feature" into a single user script or at least making it configurable. Because now there may be users who would like to use GItHubs new toolbar, but still like to use your reply feature. It would be nice if this could be separated...