Coder Social home page Coder Social logo

hediet / browser-ext-github-monaco Goto Github PK

View Code? Open in Web Editor NEW
246.0 7.0 32.0 3.63 MB

This extension brings the famous Monaco editor to Github

Home Page: https://chrome.google.com/webstore/detail/monaco-markdown-editor-fo/mmpbdjdnmhgkpligeniippcgfmkgkpnf?hl=de&authuser=0

TypeScript 75.65% SCSS 1.90% HTML 22.45%
monaco-editor chrome-extension github

browser-ext-github-monaco's Introduction

Monaco Markdown Editor For GitHub (Chrome/Firefox)

[ Install For Chrome ] [ Install For Firefox ]

This Chrome/Firefox extension brings the famous Monaco editor to GitHub!


Monaco Features

  • Syntax Highlighting of Markdown and Code Snippets
  • Tab to indent and Shift+Tab to outdent entire selections
  • Multi-Cursor Editing
  • and much more

Additional Features

  • Press F11 to toggle full screen (F10 for wide full screen).
  • The full screen mode previews the markdown if enough space is available.

Github Features

  • Autocompletion for issues, mentions and emojis.

This extension replaces all GitHub text areas for authoring markdown with a monaco editor.

Demo

Full-Screen-Mode

Building

You need nodejs and yarn. Just run these commands to produce extension.zip in the dist folder:

yarn
yarn build

browser-ext-github-monaco's People

Contributors

ackvf avatar chayimfriedman2 avatar distortedsignal avatar hediet avatar mathiasose avatar mickmister avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

browser-ext-github-monaco's Issues

Support for other similar sites (Trello)

I mentioned this in a HN comment but figured I should bring it here.

Trello uses a similar system for all its user-editable fields: plain browser text fields (non-monospaced font) to write markdown. This is probably my least favourite thing about it.

Example:

image
image

Adding any form of Monaco functionality, even just syntax highlighting, would be incredible.

Additional tilde when triggering code format on a selected word

When selecting text and triggering code format, it adds an extra tilde ´ (using the inverse so it does not trigger here).

* Triggering the button before writing a word: ``
* Triggering the button on a selected word: `tmp``

Seem to happen in two steps, if I ctrl+Z the additional tilde is removed and goes back to the word being selected. Maybe related to how the cursor stops selection and goes to the right of the tilde.

I use the last version of the extension (0.5.2), chrome.

Support for FireFox?

If I recall correctly, it's quite easy to publish a Chrome extension to FireFox. This extension looks awesome, but as a FireFox user, I'm unable to use it...

Configurable tab stop spaces

Hi! 👋 Thanks for this great extension.

I use a lot of ruby and standard ruby formatting is two spaces for tab stops. Unfortunately, this defaults to 4 spaces, which makes it very clumsy to paste and format Ruby code. Is there or can there be a way to configure this? Thanks!

Add Support for GitHub Releases

Currently, this extension doesn't run on the "Edit release" page for GitHub releases. It'd be great to see Monaco work with the releases page.

Bug: Inline Code Review Discussion

When starting an inline code review discussion, it looks like this
image

It seems like it tried to insert two monaco editors for whatever reason.

Allow resizing of text areas

Hello,

I've used this extension for a few minutes now, and so far I'm loving it! Great work!

When I was first playing with the extension, I quickly realized I could no longer resize text areas. I didn't realize the F11 shortcut existed until I scanned through this project's README. Some ideas:

  1. Would it be difficult to add support for resizing text areas? Otherwise,
  2. Consider advertising the F11 shortcut at the bottom of the editor:

image

Intellisense for emojis?

Eheh, I'm getting very excited with this project!

On the regular GH input box, one can type : and get emoji proposals. It would be pretty cool to keep that going in the Monaco editor, to keep the trigger memory going.

Let me know if you'd like a contribution from me, I don't mind helping out.

Editor height should have a soft limit

When editing a large comment post or wiki page, the editor takes the same height as its content. This is problematic because the users can't scroll inside the editor area, not can they click and drag text selection to scroll down.

I suggest to just cap the editor widget height, like GH normally does. What do you think?

recording (2)

Support for on premise github instances

It would be nice to support on premise instances of Github as well. Perhaps some sort of configuration option that allows users to list all URL patterns?

Thanks!

Harden Security & Automate Releases

As more and more people use this and this extension has access to github cookies, a transparent release process that does not involve my computer would be nice to have.
This would require automating the release process.
Ideally, the version in the changelog is used as ground truth.

Mention autocomplete has stopped working

When I try to mention someone in a comment, no usernames show when I type @. In developer tools I see requests go out when I type @, and results come back in the response, but no results show in the UI.

Is it possible to prevent autocomplete/autosuggest for plain english words?

I love this extension! But, I've noticed that it pops up autocomplete suggestions for what seem like regular words, for lack of a better term.

The README mentions "Autocompletion for issues, mentions and emojis.", so I would not expect the behavior I'm observing. Here's a gif displaying the behavior:

CleanShot 2021-03-01 at 13 07 41

I didn't find any configuration options page or anything that would allow changing this.

Happy to help/provide more information however I can!

Allow for custom theme

It would be awesome if we could customize the editor to use specific colors. Currently I'm using the User CSS extension as a hacky way to accomplish this.

Thanks for making such a great extension!

Add python as language

Hello,

Can you add python as language for this monaco editor ?
Can sponsor you if you need.
thanks

5 digit long line numbers don't show up correctly unless there are 6 digit ones too

When line numbers get 5 digit long the last two digits are rendered on top of each other:

Screenshot from 2021-02-10 22-58-13

Screenshot from 2021-02-10 22-45-17

But when they become 6 digits long this is no more the case, and even the 6 digit numbers show up correctly:

Screenshot from 2021-02-10 22-59-48

Screenshot from 2021-02-10 22-45-28

This will most probably not impact any real usecase, but I just happened to find this issue so I'm reporting it. Also, this extension is very helpful, so thanks for developing it!

The license

Thank you for implementing nice codes for this one 😃👍

There is no license file in this project.
Would you be willing to add an OSI-approved license like
the MIT, the Apache, or the GPL License to the project ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.